File Coverage

blib/lib/Acme/MetaSyntactic/ben_and_jerry.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package Acme::MetaSyntactic::ben_and_jerry;
2 1     1   86981 use strict;
  1         3  
  1         62  
3 1     1   7 use Acme::MetaSyntactic::MultiList;
  1         2  
  1         330  
4             our @ISA = qw( Acme::MetaSyntactic::MultiList );
5             our $VERSION = '1.010';
6             __PACKAGE__->init();
7              
8             my $regex = {
9             current => qr{"name":"([^"]+)"},
10             retired => qr{},
11             };
12              
13             our %Remote = (
14             source => {
15             current => 'http://www.benjerry.com/flavors',
16             },
17             extract => sub {
18             return map { s/^10th/Tenth/; s/_+/_/g; s/_$//; $_ }
19             map { Acme::MetaSyntactic::RemoteList::tr_nonword($_) }
20             map { Acme::MetaSyntactic::RemoteList::tr_accent($_) }
21             map { s{(w)/}{$1ith }i; $_ }
22             $_[0] =~ m{$regex->{$_[1]}}gm;
23             },
24             );
25              
26             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 ice-cream brand.
35              
36             The official I website is at L.
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
53             list is... frozen.
54              
55             Actually, items removed from the C list have been added to
56             the C list. Future updates will follow this procedure until an
57             official list is available again. Therefore the C 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, L.
136              
137             =cut
138              
139             __DATA__