debian/0000755000000000000000000000000012247450423007171 5ustar debian/source/0000755000000000000000000000000011637337506010501 5ustar debian/source/format0000644000000000000000000000001411614502163011673 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000306012247450423011042 0ustar libyaml-appconfig-perl (0.16-3) unstable; urgency=low [ Ansgar Burchardt ] * debian/control: Convert Vcs-* fields to Git. [ gregor herrmann ] * debian/control: update {versioned,alternative} (build) dependencies. [ Salvatore Bonaccorso ] * Change Vcs-Git to canonical URI (git://anonscm.debian.org) * Change search.cpan.org based URIs to metacpan.org based URIs [ Damyan Ivanov ] * add patch fixing missing ()s around qw() iteration [ CSILLAG Tamas ] * add patch to fix test with hash random problem Closes: #711627 [ Damyan Ivanov ] * copyright: point to GPL-1, instead of symlinked GPL * declare conformance with Policy 3.9.5 * drop trailing slash from metacpan URLs * use metacpan-based URL in debian/copyright -- Damyan Ivanov Tue, 03 Dec 2013 23:45:17 +0200 libyaml-appconfig-perl (0.16-2) unstable; urgency=low [ gregor herrmann ] * debian/control: Changed: Switched Vcs-Browser field to ViewSVN (source stanza). [ Nathan Handler ] * debian/watch: Update to ignore development releases. [ Damyan Ivanov ] * add patch removing deprecated use of UNIVERSAL::isa. Closes: #614875 * add patch fixing an error in the documentation * convert to source format '3.0 (quilt)' * claim conformance with Policy 3.9.2 * convert debian/rules to slim debhelper 8 -- Damyan Ivanov Wed, 11 May 2011 17:48:51 +0300 libyaml-appconfig-perl (0.16-1) unstable; urgency=low * Initial Release. Closes: #492203 (ITP) -- Damyan Ivanov Thu, 24 Jul 2008 13:56:58 +0300 debian/rules0000755000000000000000000000003611614502163010244 0ustar #!/usr/bin/make -f %: dh $@ debian/control0000644000000000000000000000171212247450031010570 0ustar Source: libyaml-appconfig-perl Maintainer: Debian Perl Group Uploaders: Damyan Ivanov Section: perl Priority: optional Build-Depends: debhelper (>= 8) Build-Depends-Indep: perl, libyaml-perl Standards-Version: 3.9.5 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libyaml-appconfig-perl.git Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libyaml-appconfig-perl.git Homepage: https://metacpan.org/release/YAML-AppConfig Package: libyaml-appconfig-perl Architecture: all Depends: ${perl:Depends}, ${misc:Depends}, libyaml-perl Description: manage configuration files with YAML and variable references YAML::AppConfig manages configuration files using YAML for storage. It also provides variable interpolation, similar to AppConfig. . Configuration keys can be accessed via dedicated get_foo/set_foo methods or through an all-in-one hash. debian/compat0000644000000000000000000000000211614502163010363 0ustar 8 debian/patches/0000755000000000000000000000000012247442447010627 5ustar debian/patches/hash-random-test-fix.patch0000644000000000000000000000131012247442447015605 0ustar Description: hash random test case fix Author: CSILLAG Tamas Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=711627 Last-Update: 2013-10-11 --- libyaml-appconfig-perl-0.16.orig/t/05-scoping.t +++ libyaml-appconfig-perl-0.16/t/05-scoping.t @@ -43,7 +43,7 @@ BEGIN { use_ok('YAML::AppConfig') } like( $@, qr/Circular reference in simple_circ/, "Checking circular dynamic variables." ); eval {$app->get_circ}; - like( $@, qr/Circular reference in prolog/, + like( $@, qr/Circular reference in (?:prolog|circ|cows_are_good)/, "Checking circular dynamic variables." ); eval {$app->get_bigcirc}; like( $@, qr/Circular reference in thing/, debian/patches/qw-parenthesis.patch0000644000000000000000000000214512221106247014607 0ustar Description: add ()s around qw() iteration This is mandatory with perl 5.18 Author: gregor herrmann Bug-Debian: http://bugs.debian.org/711627 Bug: http://rt.cpan.org/Public/Bug/Display.html?id=85987 --- a/t/01-basic.t +++ b/t/01-basic.t @@ -11,7 +11,7 @@ BEGIN { use_ok('YAML::AppConfig') } ok( $app, "Instantiated object from file." ); isa_ok( $app, "YAML::AppConfig", "Asserting isa YAML::AppConfig" ); my $c = 1; - for my $var qw(foo bar) { + for my $var ( qw(foo bar) ) { is( $app->get($var), $c, "Retrieving value for $var." ); my $method = "get_$var"; ok( $app->can($method), "Checking that \$app can get_$var." ); @@ -31,7 +31,7 @@ BEGIN { use_ok('YAML::AppConfig') } ok( $app, "Instantiated object from string." ); isa_ok( $app, "YAML::AppConfig", "Asserting isa YAML::AppConfig" ); my $c = 1; - for my $var qw(foo bar) { + for my $var ( qw(foo bar) ) { is( $app->get($var), $c, "Retrieving value for $var." ); my $method = "get_$var"; ok( $app->can($method), "Checking that \$app can get_$var." ); debian/patches/no-UNIVERSAL-import.patch0000644000000000000000000000251611614502163015133 0ustar Description: Replace UNIVERSAL's isa with simple ref() check Importing and using UNIVERSAL's isa is deprecated with Perl 5.12 Instead, a simple check for ref($value) brings the same result Author: Damyan Ivanov Bug-Debian: http://bugs.debian.org/614875 Bug: https://rt.cpan.org/Public/Bug/Display.html?id=65539 --- a/lib/YAML/AppConfig.pm +++ b/lib/YAML/AppConfig.pm @@ -2,7 +2,6 @@ package YAML::AppConfig; use strict; use warnings; use Carp; -use UNIVERSAL qw(isa); use Storable qw(dclone); # For Deep Copy #################### @@ -113,7 +112,7 @@ sub _resolve_refs { if ( not ref $value ) { $value = $self->_resolve_scalar($value); } - elsif ( isa $value, 'HASH' ) { + elsif ( ref($value) eq 'HASH' ) { $value = dclone($value); my @hidden = $self->_push_scope($value); for my $key ( keys %$value ) { @@ -122,13 +121,13 @@ sub _resolve_refs { $self->_pop_scope(@hidden); return $value; } - elsif ( isa $value, 'ARRAY' ) { + elsif ( ref($value) eq 'ARRAY' ) { $value = dclone($value); for my $item (@$value) { $item = $self->_resolve_refs( $item ); } } - elsif ( isa $value, 'SCALAR' ) { + elsif ( ref($value) eq 'SCALAR' ) { $value = $self->_resolve_scalar($$value); } else { debian/patches/series0000644000000000000000000000013712247442447012045 0ustar no-UNIVERSAL-import.patch fix-POD-errors.patch qw-parenthesis.patch hash-random-test-fix.patch debian/patches/fix-POD-errors.patch0000644000000000000000000000065511614502163014363 0ustar Description: Fix error in POD The =over should be really =back for closing the list Author: Damyan Ivanov Bug: https://rt.cpan.org/Ticket/Display.html?id=68118 --- a/lib/YAML/AppConfig.pm +++ b/lib/YAML/AppConfig.pm @@ -407,7 +407,7 @@ to load L and failing that i both fail then L will C when you create a new object instance. -=over +=back =head1 USING VARIABLES debian/watch0000644000000000000000000000036012247450040010214 0ustar # format version number, currently 3; this line is compulsory! version=3 # URL to the package page followed by a regex to search https://metacpan.org/release/YAML-AppConfig .*/YAML-AppConfig-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ debian/copyright0000644000000000000000000000172412247450065011132 0ustar This is the debian package for the YAML-AppConfig module. It was created by Damyan Ivanov using dh-make-perl. It was downloaded from http://metacpan.org/release/YAML-AppConfig Upstream author: Matthew O'Connor Original implementations by Kirrily "Skud" Robert (as YAML::ConfigFile) and Shawn Boyette (as Config::YAML).. Copyright 2006 Matthew O'Connor, All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Perl is distributed under your choice of the GNU General Public License or the Artistic License. On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-1' and the Artistic Licence in `/usr/share/common-licenses/Artistic'. The Debian packaging is © 2008, Damyan Ivanov and is licensed under the same terms as the software itself (see above).