Codebase list libdata-phrasebook-loader-yaml-perl / d191023
package files overhaul Barbie 11 years ago
12 changed file(s) with 216 addition(s) and 96 deletion(s). Raw diff Collapse all Expand all
00 # Changes log for Data::Phrasebook::Loader::YAML
11
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.
410
511 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.
814
915 0.08 22/02/2007
10 - Fixed a mistake in the META.yml.
16 - Fixed a mistake in the META.yml.
1117
1218 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.
1925
2026 0.06 27/09/2006
2127 - Added support for dictionaries. This was a major patch submitted
2228 by Oliver Gorwits. Thanks Oliver :)
23 - more tests
29 - more tests
2430 - Devel::Cover - 99.2%
2531
2632 0.05 25/03/2005
3137 0.04 03/03/2005
3238 - POD updates.
3339
34 0.03 02 Mar 2005
40 0.03 02/03/2005
3541 - Removed Test::MockObject from tests. No longer needed.
3642
37 0.02 24 Feb 2005
43 0.02 24/02/2005
3844 - revamped and renamed as part of the Data::Phrasebook framework
3945
40 0.01 31 Jan 2004
46 0.01 31/01/2004
4147 - New maintainer - Barbie.
4248 - Extracted from main Phrasebook distribution
110110
111111 cheers,
112112 Barbie.
113 http://birmingham.pm.org/
113 http://barbie.missbarbell.co.uk/
114114
115115 with much appreciation to Iain (aka Spoon).
00 LICENSE FOR Data-Phrasebook-Loader-YAML
11
22 Copyright © 2003 Iain Truskett.
3 Copyright © 2004-2007 Barbie for Miss Barbell Productions.
3 Copyright © 2004-2012 Barbie for Miss Barbell Productions.
44
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
20 Changes
31 INSTALL
42 LICENSE
53 MANIFEST
64 MANIFEST.SKIP
5 META.json
76 META.yml
87 Makefile.PL
98 README
2120 t/91podcover.t
2221 t/92distribution.t
2322 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 }
00 --- #YAML:1.0
11 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
44 author:
55 - Barbie <barbie@cpan.org>
66
7 license: gpl
8 distribution_type: module
9 installdirs: site
7 license: artistic_2
8 distribution_type: module
9 installdirs: site
1010
1111 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
1515 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
2020 build_requires:
21 Test::More: 0.47
21 IO::File: 0
22 Test::More: 0.70
2223
2324 provides:
2425 Data::Phrasebook::Loader::YAML:
2526 file: lib/Data/Phrasebook/Loader/YAML.pm
26 version: 0.09
27 version: 0.10
28
2729 no_index:
2830 directory:
2931 - t
0 #!/usr/bin/perl
1
2 use strict;
3 use warnings;
4 use 5.006;
5
06 use ExtUtils::MakeMaker;
7
18 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 => {
1015
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 }
1425 );
1212
1313 The distribution requires the following modules:
1414
15 Data::Phrasebook >= 0.18
16 YAML >= 0.35
15 Data::Phrasebook >= 0.24
16 YAML >= 0.35
1717
1818 For testing purposes, the following modules are required:
1919
20 Test::More >= 0.47
20 Test::More >= 0.70
21 IO::File >= 0
2122
2223 For testing purposes, the following modules are desireable, but not essential:
2324
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
2730
2831 INSTALLATION
2932
5154 submit a bug to the RT system (http://rt.cpan.org/). It would help greatly
5255 if you are able to pinpoint problems or even supply a patch.
5356
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
5558 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
6459
6560 AUTHOR
6661
7166
7267 COPYRIGHT AND LICENSE
7368
74 Copyright (C) 2004-2005 Barbie for Miss Barbell Productions.
69 Copyright (C) 2004-2012 Barbie for Miss Barbell Productions.
7570 Copyright (C) 2003 Iain Truskett.
7671
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.
7974
44 use Carp qw( croak );
55 use YAML;
66
7 my $VERSION = '0.10';
7 our $VERSION = '0.10';
88
99 =head1 NAME
1010
2222
2323 $q->delimiters( qr{ \[% \s* (\w+) \s* %\] }x );
2424 my $phrase = $q->fetch($keyword);
25
26 =head1 ABSTRACT
27
28 This module provides a loader class for phrasebook implementations using YAML.
2925
3026 =head1 DESCRIPTION
3127
273269 RT system (http://rt.cpan.org/). However, it would help greatly if you are
274270 able to pinpoint problems or even supply a patch.
275271
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
277273 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
286274
287275 =head1 AUTHOR
288276
293281 =head1 COPYRIGHT AND LICENSE
294282
295283 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
00 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();
41
2 # Skip if doing a regular install
3 plan skip_all => "Author tests not required for installation"
4 unless ( $ENV{AUTOMATED_TESTING} );
55
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 }