Acme-MetaSyntactic-Themes

 view release on metacpan or  search on metacpan

lib/Acme/MetaSyntactic/ben_and_jerry.pm  view on Meta::CPAN

package Acme::MetaSyntactic::ben_and_jerry;
use strict;
use Acme::MetaSyntactic::MultiList;
our @ISA = qw( Acme::MetaSyntactic::MultiList );
our $VERSION = '1.010';
__PACKAGE__->init();

my $regex = {
   current => qr{"name":"([^"]+)"},
   retired => qr{<option value="([^"]+ )">\1</option>},
};

our %Remote = (
    source => {
        current => 'http://www.benjerry.com/flavors',
    },
    extract => sub {
        return map { s/^10th/Tenth/; s/_+/_/g; s/_$//; $_ }
            map { Acme::MetaSyntactic::RemoteList::tr_nonword($_) }
            map { Acme::MetaSyntactic::RemoteList::tr_accent($_) }
            map { s{(w)/}{$1ith }i; $_ }
            $_[0] =~ m{$regex->{$_[1]}}gm;
    },
);

1;

=head1 NAME

Acme::MetaSyntactic::ben_and_jerry - Ben & Jerry's Ice Cream Flavours

=head1 DESCRIPTION

Flavours of the I<Ben & Jerry's> ice-cream brand.

The official I<Ben & Jerry's> website is at L<http://www.benjerry.com/>.

=head1 CONTRIBUTORS

Abigail, Philippe Bruhat (BooK).

=head1 CHANGES

=over 4

=item *

2014-04-07 - v1.010

Due to a web site redesign, the source URL for the current list of flavors
has changed, and the page that listed "retired" flavors has been, well,
retired. Until the retired list becomes available again, the C<retired>
list is... frozen.

Actually, items removed from the C<current> list have been added to
the C<retired> list. Future updates will follow this procedure until an
official list is available again. Therefore the C<retired> list isn't
currently official or accurate, just a best effort.

Updated from the source web site in Acme-MetaSyntactic-Themes version 1.039.

=item *

2013-12-09 - v1.009

Updated from the source web site in Acme-MetaSyntactic-Themes version 1.038.

=item *

2013-09-16 - v1.008

Updated from the source web site in Acme-MetaSyntactic-Themes version 1.036.

=item *

2013-07-22 - v1.007

Updated from the source web site in Acme-MetaSyntactic-Themes version 1.034.

=item *

2013-06-03 - v1.006

Updated from the source web site in Acme-MetaSyntactic-Themes version 1.032.

=item *

2013-03-25 - v1.005

Updated from the source web site in Acme-MetaSyntactic-Themes version 1.031.

=item *

2013-02-18 - v1.004

Updated from the source web site in Acme-MetaSyntactic-Themes version 1.030.

=item *

2012-11-12 - v1.003

Updated from the source web site in Acme-MetaSyntactic-Themes version 1.027.

=item *

2012-10-01 - v1.002

Updated from the source web site in Acme-MetaSyntactic-Themes version 1.021.

=item *



( run in 2.029 seconds using v1.01-cache-2.11-cpan-75ffa21a3d4 )