| 1 | package Acme::MetaSyntactic::ben_and_jerry; | ||
| 2 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 2 | ▶ | use Acme::MetaSyntactic::MultiList; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | our @ISA = qw( Acme::MetaSyntactic::MultiList ); | |
| 5 | 2 | our $VERSION = '1.010'; | |
| 6 | 2 | __PACKAGE__->init(); | |
| 7 | |||
| 8 | 2 | my $regex = { | |
| 9 | current => qr{"name":"([^"]+)"}, | ||
| 10 | retired => qr{<option value="([^"]+ )">\1</option>}, | ||
| 11 | }; | ||
| 12 | |||
| 13 | our %Remote = ( | ||
| 14 | source => { | ||
| 15 | current => 'http://www.benjerry.com/flavors', | ||
| 16 | }, | ||
| 17 | 0 | ▶ | extract => sub { |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 18 | 0 | return map { s/^10th/Tenth/; s/_+/_/g; s/_$//; $_ } | |
| 19 | 0 | map { Acme::MetaSyntactic::RemoteList::tr_nonword($_) } | |
| 20 | 0 | map { Acme::MetaSyntactic::RemoteList::tr_accent($_) } | |
| 21 | 0 | map { s{(w)/}{$1ith }i; $_ } | |
| 22 | $_[0] =~ m{$regex->{$_[1]}}gm; | ||
| 23 | }, | ||
| 24 | 2 | ); | |
| 25 | |||
| 26 | 2 | 1; | |
| 27 | |||
| 28 | =head1 NAME | ||
| 29 | |||
| 30 | Acme::MetaSyntactic::ben_and_jerry - Ben & Jerry's Ice Cream Flavours | ||
| 31 | |||
| 32 | =head1 DESCRIPTION | ||
| 33 | |||
| 34 | Flavours of the I<Ben & Jerry's> ice-cream brand. | ||
| 35 | |||
| 36 | The official I<Ben & Jerry's> website is at L<http://www.benjerry.com/>. | ||
| 37 | |||
| 38 | =head1 CONTRIBUTORS | ||
| 39 | |||
| 40 | Abigail, Philippe Bruhat (BooK). | ||
| 41 | |||
| 42 | =head1 CHANGES | ||
| 43 | |||
| 44 | =over 4 | ||
| 45 | |||
| 46 | =item * | ||
| 47 | |||
| 48 | 2014-04-07 - v1.010 | ||
| 49 | |||
| 50 | Due to a web site redesign, the source URL for the current list of flavors | ||
| 51 | has changed, and the page that listed "retired" flavors has been, well, | ||
| 52 | retired. Until the retired list becomes available again, the C<retired> | ||
| 53 | list is... frozen. | ||
| 54 | |||
| 55 | Actually, items removed from the C<current> list have been added to | ||
| 56 | the C<retired> list. Future updates will follow this procedure until an | ||
| 57 | official list is available again. Therefore the C<retired> list isn't | ||
| 58 | currently official or accurate, just a best effort. | ||
| 59 | |||
| 60 | Updated from the source web site in Acme-MetaSyntactic-Themes version 1.039. | ||
| 61 | |||
| 62 | =item * | ||
| 63 | |||
| 64 | 2013-12-09 - v1.009 | ||
| 65 | |||
| 66 | Updated from the source web site in Acme-MetaSyntactic-Themes version 1.038. | ||
| 67 | |||
| 68 | =item * | ||
| 69 | |||
| 70 | 2013-09-16 - v1.008 | ||
| 71 | |||
| 72 | Updated from the source web site in Acme-MetaSyntactic-Themes version 1.036. | ||
| 73 | |||
| 74 | =item * | ||
| 75 | |||
| 76 | 2013-07-22 - v1.007 | ||
| 77 | |||
| 78 | Updated from the source web site in Acme-MetaSyntactic-Themes version 1.034. | ||
| 79 | |||
| 80 | =item * | ||
| 81 | |||
| 82 | 2013-06-03 - v1.006 | ||
| 83 | |||
| 84 | Updated from the source web site in Acme-MetaSyntactic-Themes version 1.032. | ||
| 85 | |||
| 86 | =item * | ||
| 87 | |||
| 88 | 2013-03-25 - v1.005 | ||
| 89 | |||
| 90 | Updated from the source web site in Acme-MetaSyntactic-Themes version 1.031. | ||
| 91 | |||
| 92 | =item * | ||
| 93 | |||
| 94 | 2013-02-18 - v1.004 | ||
| 95 | |||
| 96 | Updated from the source web site in Acme-MetaSyntactic-Themes version 1.030. | ||
| 97 | |||
| 98 | =item * | ||
| 99 | |||
| 100 | 2012-11-12 - v1.003 | ||
| 101 | |||
| 102 | Updated from the source web site in Acme-MetaSyntactic-Themes version 1.027. | ||
| 103 | |||
| 104 | =item * | ||
| 105 | |||
| 106 | 2012-10-01 - v1.002 | ||
| 107 | |||
| 108 | Updated from the source web site in Acme-MetaSyntactic-Themes version 1.021. | ||
| 109 | |||
| 110 | =item * | ||
| 111 | |||
| 112 | 2012-08-20 - v1.001 | ||
| 113 | |||
| 114 | Added a remote list for "retired" flavors and turned the existing list | ||
| 115 | into the "current" category in Acme-MetaSyntactic-Themes version 1.015. | ||
| 116 | |||
| 117 | =item * | ||
| 118 | |||
| 119 | 2012-08-13 - v1.000 | ||
| 120 | |||
| 121 | Made updatable from a source URL, | ||
| 122 | updated with the list of flavors for August 2012, | ||
| 123 | and published in Acme-MetaSyntactic-Themes version 1.014. | ||
| 124 | |||
| 125 | =item * | ||
| 126 | |||
| 127 | 2005-10-26 | ||
| 128 | |||
| 129 | Submitted by Abigail. | ||
| 130 | |||
| 131 | =back | ||
| 132 | |||
| 133 | =head1 SEE ALSO | ||
| 134 | |||
| 135 | L<Acme::MetaSyntactic>, L<Acme::MetaSyntactic::List>. | ||
| 136 | |||
| 137 | =cut | ||
| 138 | |||
| 139 | __DATA__ | ||