package files overhaul
Barbie
11 years ago
0 | 0 | # Changes log for Data::Phrasebook::Loader::YAML |
1 | 1 | |
2 | 0.10 current | |
3 | - removed 5.006 dependency. | |
2 | 0.10 29/07/2012 | |
3 | - spelling fix. (thanks to Nicholas Bamber, Florian Schlichting & | |
4 | Gregor Herrmann). | |
5 | - removed License files from distro. | |
6 | - Artistic License v2 now sole license. | |
7 | - removed DSLIP info. | |
8 | - added minimum perl version (5.006). | |
9 | - reworked Makefile.PL for clarity. | |
4 | 10 | |
5 | 11 | 0.09 01/03/2007 |
6 | - Fixed META.yml typos. | |
7 | - Added META.yml test script. | |
12 | - Fixed META.yml typos. | |
13 | - Added META.yml test script. | |
8 | 14 | |
9 | 15 | 0.08 22/02/2007 |
10 | - Fixed a mistake in the META.yml. | |
16 | - Fixed a mistake in the META.yml. | |
11 | 17 | |
12 | 18 | 0.07 22/02/2007 |
13 | - Handwritten META.yml to conform to current specs. | |
14 | - Changed all instances of LICENCE to LICENSE as *apparently*, to all | |
15 | non-British users of this module, this a bug! I beg to differ - | |
16 | http://dictionary.reference.com/search?q=licence | |
17 | - Added an examples directory. Nothing in it yet, except a request | |
18 | for interesting scripts. | |
19 | - Handwritten META.yml to conform to current specs. | |
20 | - Changed all instances of LICENCE to LICENSE as *apparently*, to all | |
21 | non-British users of this module, this a bug! I beg to differ - | |
22 | http://dictionary.reference.com/search?q=licence | |
23 | - Added an examples directory. Nothing in it yet, except a request | |
24 | for interesting scripts. | |
19 | 25 | |
20 | 26 | 0.06 27/09/2006 |
21 | 27 | - Added support for dictionaries. This was a major patch submitted |
22 | 28 | by Oliver Gorwits. Thanks Oliver :) |
23 | - more tests | |
29 | - more tests | |
24 | 30 | - Devel::Cover - 99.2% |
25 | 31 | |
26 | 32 | 0.05 25/03/2005 |
31 | 37 | 0.04 03/03/2005 |
32 | 38 | - POD updates. |
33 | 39 | |
34 | 0.03 02 Mar 2005 | |
40 | 0.03 02/03/2005 | |
35 | 41 | - Removed Test::MockObject from tests. No longer needed. |
36 | 42 | |
37 | 0.02 24 Feb 2005 | |
43 | 0.02 24/02/2005 | |
38 | 44 | - revamped and renamed as part of the Data::Phrasebook framework |
39 | 45 | |
40 | 0.01 31 Jan 2004 | |
46 | 0.01 31/01/2004 | |
41 | 47 | - New maintainer - Barbie. |
42 | 48 | - Extracted from main Phrasebook distribution |
110 | 110 | |
111 | 111 | cheers, |
112 | 112 | Barbie. |
113 | http://birmingham.pm.org/ | |
113 | http://barbie.missbarbell.co.uk/ | |
114 | 114 | |
115 | 115 | with much appreciation to Iain (aka Spoon). |
0 | 0 | LICENSE FOR Data-Phrasebook-Loader-YAML |
1 | 1 | |
2 | 2 | Copyright © 2003 Iain Truskett. |
3 | Copyright © 2004-2007 Barbie for Miss Barbell Productions. | |
3 | Copyright © 2004-2012 Barbie for Miss Barbell Productions. | |
4 | 4 | |
5 | This library is free software; you can redistribute it and/or modify | |
6 | it under the same terms as Perl itself. | |
7 | ||
8 | The full text of the licenses can be found in the Artistic and | |
9 | COPYING files included with this module, or in perlartistic and | |
10 | perlgpl in Perl 5.8.1 or later. | |
11 | ||
5 | This module is free software; you can redistribute it and/or | |
6 | modify it under the Artistic License 2.0. |
0 | Artistic | |
1 | COPYING | |
2 | 0 | Changes |
3 | 1 | INSTALL |
4 | 2 | LICENSE |
5 | 3 | MANIFEST |
6 | 4 | MANIFEST.SKIP |
5 | META.json | |
7 | 6 | META.yml |
8 | 7 | Makefile.PL |
9 | 8 | README |
21 | 20 | t/91podcover.t |
22 | 21 | t/92distribution.t |
23 | 22 | t/94metatest.t |
23 | t/95changedate.t | |
24 | t/96metatest.t |
0 | { | |
1 | "name": "Data-Phrasebook-Loader-YAML", | |
2 | "version": "0.10", | |
3 | "abstract": "Loader class for phrasebook implementations using YAML files", | |
4 | "author": [ | |
5 | "Barbie (BARBIE) <barbie@cpan.org>" | |
6 | ], | |
7 | ||
8 | "license": "artistic_2", | |
9 | "dynamic_config" : 0, | |
10 | "release_status" : "stable", | |
11 | "meta-spec": { | |
12 | "version": "2", | |
13 | "url": "http://search.cpan.org/dist/CPAN-Meta/lib/CPAN/Meta/Spec.pm" | |
14 | }, | |
15 | "generated_by": "Hand 1.0", | |
16 | "keywords" : [ | |
17 | "phrasebook" | |
18 | ], | |
19 | ||
20 | "prereqs" : { | |
21 | "runtime" : { | |
22 | "requires" : { | |
23 | "perl": "5.006", | |
24 | "Data::Phrasebook": "0.24", | |
25 | "Config::IniFiles": "0" | |
26 | } | |
27 | }, | |
28 | "test" : { | |
29 | "requires": { | |
30 | "IO::File": "0", | |
31 | "Test::More": "0.70" | |
32 | }, | |
33 | "recommends": { | |
34 | "Test::CPAN::Meta": "0", | |
35 | "Test::CPAN::Meta::JSON": "0", | |
36 | "Test::Pod": "1.00", | |
37 | "Test::Pod::Coverage": "0.08" | |
38 | } | |
39 | } | |
40 | }, | |
41 | ||
42 | "provides": { | |
43 | "Data::Phrasebook::Loader::YAML": { | |
44 | "file": "lib/Data/Phrasebook/Loader/YAML.pm", | |
45 | "version": "0.10" | |
46 | } | |
47 | }, | |
48 | "no_index": { | |
49 | "directory": ["t","examples"] | |
50 | }, | |
51 | ||
52 | "resources": { | |
53 | "license": "http://dev.perl.org/licenses/", | |
54 | "bugtracker": { "web": "http://rt.cpan.org/Public/Dist/Display.html?Name=Data-Phrasebook-Loader-YAML" }, | |
55 | "repository": { | |
56 | "url": "git://github.com/barbie/data-phrasebook-loader-yaml.git", | |
57 | "web": "http://github.com/barbie/data-phrasebook-loader-yaml", | |
58 | "type": "git" | |
59 | } | |
60 | } | |
61 | }⏎ |
0 | 0 | --- #YAML:1.0 |
1 | 1 | name: Data-Phrasebook-Loader-YAML |
2 | version: 0.09 | |
3 | abstract: This module provides a loader class for phrasebook implementations using YAML. | |
2 | version: 0.10 | |
3 | abstract: Loader class for phrasebook implementations using YAML files | |
4 | 4 | author: |
5 | 5 | - Barbie <barbie@cpan.org> |
6 | 6 | |
7 | license: gpl | |
8 | distribution_type: module | |
9 | installdirs: site | |
7 | license: artistic_2 | |
8 | distribution_type: module | |
9 | installdirs: site | |
10 | 10 | |
11 | 11 | requires: |
12 | Data::Phrasebook: 0.18 | |
13 | YAML: 0.35 | |
14 | Test::More: 0.47 | |
12 | perl: 5.006 | |
13 | Data::Phrasebook: 0.24 | |
14 | YAML: 0.35 | |
15 | 15 | recommends: |
16 | Test::More: 0.47 | |
17 | Test::Pod: 1.00 | |
18 | Test::Pod::Coverage: 0.08 | |
19 | Test::YAML::Meta: 0 | |
16 | Test::CPAN::Meta: 0 | |
17 | Test::CPAN::Meta::JSON: 0 | |
18 | Test::Pod: 1.00 | |
19 | Test::Pod::Coverage: 0.08 | |
20 | 20 | build_requires: |
21 | Test::More: 0.47 | |
21 | IO::File: 0 | |
22 | Test::More: 0.70 | |
22 | 23 | |
23 | 24 | provides: |
24 | 25 | Data::Phrasebook::Loader::YAML: |
25 | 26 | file: lib/Data/Phrasebook/Loader/YAML.pm |
26 | version: 0.09 | |
27 | version: 0.10 | |
28 | ||
27 | 29 | no_index: |
28 | 30 | directory: |
29 | 31 | - t |
0 | #!/usr/bin/perl | |
1 | ||
2 | use strict; | |
3 | use warnings; | |
4 | use 5.006; | |
5 | ||
0 | 6 | use ExtUtils::MakeMaker; |
7 | ||
1 | 8 | WriteMakefile( |
2 | NAME => 'Data::Phrasebook::Loader::YAML', | |
3 | VERSION_FROM => 'lib/Data/Phrasebook/Loader/YAML.pm', | |
4 | PREREQ_PM => { | |
5 | 'Data::Phrasebook' => '0.18', | |
6 | 'YAML' => '0.35', | |
7 | 'Test::More' => '0.47', | |
8 | }, | |
9 | NO_META => 1, | |
9 | AUTHOR => 'Barbie <barbie@cpan.org>', | |
10 | NAME => 'Data::Phrasebook::Loader::YAML', | |
11 | VERSION_FROM => 'lib/Data/Phrasebook/Loader/YAML.pm', | |
12 | ABSTRACT => 'Loader class for phrasebook implementations using YAML files', | |
13 | NO_META => 1, | |
14 | PREREQ_PM => { | |
10 | 15 | |
11 | ($] >= 5.005 ? | |
12 | (ABSTRACT_FROM => 'lib/Data/Phrasebook/Loader/YAML.pm', | |
13 | AUTHOR => 'Barbie <barbie@cpan.org>') : ()), | |
16 | # runtime prereqs | |
17 | 'Data::Phrasebook' => '0.24', | |
18 | 'YAML' => '0.35', | |
19 | ||
20 | # build/test prereqs | |
21 | 'Test::More' => '0.70', | |
22 | 'IO::File' => '0' | |
23 | ||
24 | } | |
14 | 25 | ); |
12 | 12 | |
13 | 13 | The distribution requires the following modules: |
14 | 14 | |
15 | Data::Phrasebook >= 0.18 | |
16 | YAML >= 0.35 | |
15 | Data::Phrasebook >= 0.24 | |
16 | YAML >= 0.35 | |
17 | 17 | |
18 | 18 | For testing purposes, the following modules are required: |
19 | 19 | |
20 | Test::More >= 0.47 | |
20 | Test::More >= 0.70 | |
21 | IO::File >= 0 | |
21 | 22 | |
22 | 23 | For testing purposes, the following modules are desireable, but not essential: |
23 | 24 | |
24 | Test::Pod >= 1.00 | |
25 | Test::Pod::Coverage >= 0.08 | |
26 | Pod::Coverage | |
25 | Test::CPAN::Meta >= 0 | |
26 | Test::CPAN::Meta::JSON >= 0 | |
27 | Test::Pod >= 1.00 | |
28 | Test::Pod::Coverage >= 0.08 | |
29 | Pod::Coverage >= 0 | |
27 | 30 | |
28 | 31 | INSTALLATION |
29 | 32 | |
51 | 54 | submit a bug to the RT system (http://rt.cpan.org/). It would help greatly |
52 | 55 | if you are able to pinpoint problems or even supply a patch. |
53 | 56 | |
54 | Fixes are dependant upon their severity and my availablity. Should a fix not | |
57 | Fixes are dependent upon their severity and my availability. Should a fix not | |
55 | 58 | be forthcoming, please feel free to (politely) remind me. |
56 | ||
57 | DSLIP | |
58 | ||
59 | b - Beta testing | |
60 | d - Developer | |
61 | p - Perl-only | |
62 | O - Object oriented | |
63 | p - Standard-Perl: user may choose between GPL and Artistic | |
64 | 59 | |
65 | 60 | AUTHOR |
66 | 61 | |
71 | 66 | |
72 | 67 | COPYRIGHT AND LICENSE |
73 | 68 | |
74 | Copyright (C) 2004-2005 Barbie for Miss Barbell Productions. | |
69 | Copyright (C) 2004-2012 Barbie for Miss Barbell Productions. | |
75 | 70 | Copyright (C) 2003 Iain Truskett. |
76 | 71 | |
77 | This module is free software; you can redistribute it and/or | |
78 | modify it under the same terms as Perl itself. | |
72 | This module is free software; you can redistribute it and/or | |
73 | modify it under the Artistic License 2.0. | |
79 | 74 |
4 | 4 | use Carp qw( croak ); |
5 | 5 | use YAML; |
6 | 6 | |
7 | my $VERSION = '0.10'; | |
7 | our $VERSION = '0.10'; | |
8 | 8 | |
9 | 9 | =head1 NAME |
10 | 10 | |
22 | 22 | |
23 | 23 | $q->delimiters( qr{ \[% \s* (\w+) \s* %\] }x ); |
24 | 24 | my $phrase = $q->fetch($keyword); |
25 | ||
26 | =head1 ABSTRACT | |
27 | ||
28 | This module provides a loader class for phrasebook implementations using YAML. | |
29 | 25 | |
30 | 26 | =head1 DESCRIPTION |
31 | 27 | |
273 | 269 | RT system (http://rt.cpan.org/). However, it would help greatly if you are |
274 | 270 | able to pinpoint problems or even supply a patch. |
275 | 271 | |
276 | Fixes are dependant upon their severity and my availablity. Should a fix not | |
272 | Fixes are dependent upon their severity and my availability. Should a fix not | |
277 | 273 | be forthcoming, please feel free to (politely) remind me. |
278 | ||
279 | =head1 DSLIP | |
280 | ||
281 | b - Beta testing | |
282 | d - Developer | |
283 | p - Perl-only | |
284 | O - Object oriented | |
285 | p - Standard-Perl: user may choose between GPL and Artistic | |
286 | 274 | |
287 | 275 | =head1 AUTHOR |
288 | 276 | |
293 | 281 | =head1 COPYRIGHT AND LICENSE |
294 | 282 | |
295 | 283 | Copyright (C) 2003 Iain Truskett. |
296 | Copyright (C) 2004-2007 Barbie for Miss Barbell Productions. | |
297 | ||
298 | This library is free software; you can redistribute it and/or modify | |
299 | it under the same terms as Perl itself. | |
300 | ||
301 | The full text of the licenses can be found in the F<Artistic> and | |
302 | F<COPYING> files included with this module, or in L<perlartistic> and | |
303 | L<perlgpl> in Perl 5.8.1 or later. | |
304 | ||
305 | =cut | |
284 | Copyright (C) 2004-2012 Barbie for Miss Barbell Productions. | |
285 | ||
286 | This module is free software; you can redistribute it and/or | |
287 | modify it under the Artistic License 2.0. | |
288 | ||
289 | =cut |
0 | 0 | use Test::More; |
1 | eval "use Test::YAML::Meta"; | |
2 | plan skip_all => "Test::YAML::Meta required for testing META.yml" if $@; | |
3 | meta_yaml_ok(); | |
4 | 1 | |
2 | # Skip if doing a regular install | |
3 | plan skip_all => "Author tests not required for installation" | |
4 | unless ( $ENV{AUTOMATED_TESTING} ); | |
5 | 5 | |
6 | eval "use Test::CPAN::Meta"; | |
7 | plan skip_all => "Test::CPAN::Meta required for testing META.yml" if $@; | |
8 | ||
9 | plan no_plan; | |
10 | ||
11 | my $meta = meta_spec_ok(undef,undef,@_); | |
12 | ||
13 | use Data::Phrasebook::Loader::YAML; | |
14 | my $version = $Data::Phrasebook::Loader::YAML::VERSION; | |
15 | ||
16 | is($meta->{version},$version, | |
17 | 'META.yml distribution version matches'); | |
18 | ||
19 | if($meta->{provides}) { | |
20 | for my $mod (keys %{$meta->{provides}}) { | |
21 | is($meta->{provides}{$mod}{version},$version, | |
22 | "META.yml entry [$mod] version matches"); | |
23 | } | |
24 | } |
0 | use Test::More; | |
1 | use IO::File; | |
2 | use Data::Phrasebook::Loader::YAML; | |
3 | ||
4 | # Skip if doing a regular install | |
5 | plan skip_all => "Author tests not required for installation" | |
6 | unless ( $ENV{AUTOMATED_TESTING} ); | |
7 | ||
8 | my $fh = IO::File->new('Changes','r') or plan skip_all => "Cannot open Changes file"; | |
9 | ||
10 | plan no_plan; | |
11 | ||
12 | my $latest = 0; | |
13 | while(<$fh>) { | |
14 | next unless(m!^\d!); | |
15 | $latest = 1 if(m!^$Data::Phrasebook::Loader::YAML::VERSION!); | |
16 | like($_, qr!\d[\d._]+\s+\d{2}/\d{2}/\d{4}!,'... version has a date'); | |
17 | } | |
18 | ||
19 | is($latest,1,'... latest version not listed'); |
0 | use Test::More; | |
1 | ||
2 | # Skip if doing a regular install | |
3 | plan skip_all => "Author tests not required for installation" | |
4 | unless ( $ENV{AUTOMATED_TESTING} ); | |
5 | ||
6 | eval "use Test::CPAN::Meta::JSON"; | |
7 | plan skip_all => "Test::CPAN::Meta::JSON required for testing META.json files" if $@; | |
8 | ||
9 | plan no_plan; | |
10 | ||
11 | my $meta = meta_spec_ok(undef,undef,@_); | |
12 | ||
13 | use Data::Phrasebook::Loader::YAML; | |
14 | my $version = $Data::Phrasebook::Loader::YAML::VERSION; | |
15 | ||
16 | is($meta->{version},$version, | |
17 | 'META.json distribution version matches'); | |
18 | ||
19 | if($meta->{provides}) { | |
20 | for my $mod (keys %{$meta->{provides}}) { | |
21 | is($meta->{provides}{$mod}{version},$version, | |
22 | "META.json entry [$mod] version matches"); | |
23 | } | |
24 | } |