Hello community, here is the log from the commit of package perl-Config-Auto for openSUSE:Factory checked in at 2011-10-27 19:22:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Config-Auto (Old) and /work/SRC/openSUSE:Factory/.perl-Config-Auto.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Config-Auto", Maintainer is "" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Config-Auto/perl-Config-Auto.changes 2011-09-23 12:36:27.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Config-Auto.new/perl-Config-Auto.changes 2011-10-27 19:24:27.000000000 +0200 @@ -1,0 +2,11 @@ +Wed Oct 26 20:17:09 UTC 2011 - [email protected] + +- updated to 0.38 + - Resolve RT 69984 reported by Thomas Johnson + ( Array handling regression when using equals format ) + +- updated to 0.36 Fri Jul 1 14:38:57 2011 + - Fix for RT 68913 reported by Michael Lackhoff + ( config files with DOS line endings do not work in Linux ) + +------------------------------------------------------------------- Old: ---- Config-Auto-0.34.tar.gz New: ---- Config-Auto-0.38.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Config-Auto.spec ++++++ --- /var/tmp/diff_new_pack.WYHlX7/_old 2011-10-27 19:24:28.000000000 +0200 +++ /var/tmp/diff_new_pack.WYHlX7/_new 2011-10-27 19:24:28.000000000 +0200 @@ -18,8 +18,8 @@ Name: perl-Config-Auto -Version: 0.34 -Release: 3 +Version: 0.38 +Release: 1 License: GPL+ or Artistic %define cpan_name Config-Auto Summary: Magical config file parser @@ -31,10 +31,27 @@ BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Config::IniFiles) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Spec::Functions) +BuildRequires: perl(File::Temp) BuildRequires: perl(IO::String) +BuildRequires: perl(Test::More) +BuildRequires: perl(Text::ParseWords) BuildRequires: perl(YAML) >= 0.67 +#BuildRequires: perl(Carp) +#BuildRequires: perl(Config::Auto) +#BuildRequires: perl(File::Basename) +#BuildRequires: perl(File::Spec) +#BuildRequires: perl(Getopt::Std) +#BuildRequires: perl(vars) +#BuildRequires: perl(XML::Simple) +#BuildRequires: perl(YAML::Any) Requires: perl(Config::IniFiles) +Requires: perl(File::Spec::Functions) +Requires: perl(File::Temp) Requires: perl(IO::String) +Requires: perl(Test::More) +Requires: perl(Text::ParseWords) Requires: perl(YAML) >= 0.67 %{perl_requires} @@ -63,9 +80,6 @@ %perl_process_packlist %perl_gen_filelist -%clean -%{__rm} -rf %{buildroot} - %files -f %{name}.files %defattr(-,root,root,755) %doc Changes README ++++++ Config-Auto-0.34.tar.gz -> Config-Auto-0.38.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-Auto-0.34/Changes new/Config-Auto-0.38/Changes --- old/Config-Auto-0.34/Changes 2011-03-08 16:06:18.000000000 +0100 +++ new/Config-Auto-0.38/Changes 2011-08-08 22:39:28.000000000 +0200 @@ -1,4 +1,15 @@ +0.38 Mon Aug 8 21:38:10 2011 +================================ + - Resolve RT 69984 reported by Thomas Johnson + ( Array handling regression when using equals format ) + +0.36 Fri Jul 1 14:38:57 2011 +================================ + - Fix for RT 68913 reported by Michael Lackhoff + ( config files with DOS line endings do not work in Linux ) + 0.34 Tue Mar 8 15:02:06 2011 +================================ - Apply patch from Andrew Ruthven RT #66460 ( also Debian Bug # 617305 ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-Auto-0.34/MANIFEST new/Config-Auto-0.38/MANIFEST --- old/Config-Auto-0.34/MANIFEST 2011-03-08 16:07:36.000000000 +0100 +++ new/Config-Auto-0.38/MANIFEST 2011-08-08 22:44:06.000000000 +0200 @@ -8,8 +8,11 @@ t/02_parse.t t/03_invalid.t t/04_magic.t +t/05_rt69984.t t/20_XML_unvailable.t t/99_pod.t t/lib/XML/Simple.pm t/src/04_magic.config -META.yml Module meta-data (added by MakeMaker) +t/src/05_rt69984.conf +META.yml Module YAML meta-data (added by MakeMaker) +META.json Module JSON meta-data (added by MakeMaker) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-Auto-0.34/META.json new/Config-Auto-0.38/META.json --- old/Config-Auto-0.34/META.json 1970-01-01 01:00:00.000000000 +0100 +++ new/Config-Auto-0.38/META.json 2011-08-08 22:44:06.000000000 +0200 @@ -0,0 +1,52 @@ +{ + "abstract" : "Magical config file parser", + "author" : [ + "Jos I. Boumans <[email protected]>" + ], + "dynamic_config" : 1, + "generated_by" : "ExtUtils::MakeMaker version 6.59, CPAN::Meta::Converter version 2.112150", + "license" : [ + "perl_5" + ], + "meta-spec" : { + "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", + "version" : "2" + }, + "name" : "Config-Auto", + "no_index" : { + "directory" : [ + "t", + "inc" + ] + }, + "prereqs" : { + "build" : { + "requires" : { + "ExtUtils::MakeMaker" : 0 + } + }, + "configure" : { + "requires" : { + "ExtUtils::MakeMaker" : 0 + } + }, + "runtime" : { + "requires" : { + "Config::IniFiles" : 0, + "File::Spec::Functions" : 0, + "File::Temp" : 0, + "IO::String" : 0, + "Test::More" : 0, + "Text::ParseWords" : 0, + "YAML" : "0.67" + } + } + }, + "release_status" : "stable", + "resources" : { + "repository" : { + "url" : "https://github.com/jib/config-auto" + } + }, + "version" : "0.38" +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-Auto-0.34/META.yml new/Config-Auto-0.38/META.yml --- old/Config-Auto-0.34/META.yml 2011-03-08 16:07:36.000000000 +0100 +++ new/Config-Auto-0.38/META.yml 2011-08-08 22:44:06.000000000 +0200 @@ -1,28 +1,30 @@ ---- #YAML:1.0 -name: Config-Auto -version: 0.34 -abstract: Magical config file parser +--- +abstract: 'Magical config file parser' author: - - Jos I. Boumans <[email protected]> -license: unknown -distribution_type: module -configure_requires: - ExtUtils::MakeMaker: 0 + - 'Jos I. Boumans <[email protected]>' build_requires: - ExtUtils::MakeMaker: 0 -requires: - Config::IniFiles: 0 - File::Spec::Functions: 0 - File::Temp: 0 - IO::String: 0 - Test::More: 0 - Text::ParseWords: 0 - YAML: 0.67 -no_index: - directory: - - t - - inc -generated_by: ExtUtils::MakeMaker version 6.56 + ExtUtils::MakeMaker: 0 +configure_requires: + ExtUtils::MakeMaker: 0 +dynamic_config: 1 +generated_by: 'ExtUtils::MakeMaker version 6.59, CPAN::Meta::Converter version 2.112150' +license: perl meta-spec: - url: http://module-build.sourceforge.net/META-spec-v1.4.html - version: 1.4 + url: http://module-build.sourceforge.net/META-spec-v1.4.html + version: 1.4 +name: Config-Auto +no_index: + directory: + - t + - inc +requires: + Config::IniFiles: 0 + File::Spec::Functions: 0 + File::Temp: 0 + IO::String: 0 + Test::More: 0 + Text::ParseWords: 0 + YAML: 0.67 +resources: + repository: https://github.com/jib/config-auto +version: 0.38 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-Auto-0.34/Makefile.PL new/Config-Auto-0.38/Makefile.PL --- old/Config-Auto-0.34/Makefile.PL 2011-03-08 16:00:34.000000000 +0100 +++ new/Config-Auto-0.38/Makefile.PL 2011-08-08 22:37:39.000000000 +0200 @@ -2,7 +2,6 @@ use strict; use Getopt::Std; -use Data::Dumper; my $opts = {}; getopts( 'x', $opts ); @@ -26,13 +25,39 @@ }; delete $prereqs->{'XML::Simple'} unless $opts->{'x'}; -WriteMakefile( +WriteMakefile1( + LICENSE => 'perl', + META_MERGE => { + resources => { + repository => 'https://github.com/jib/config-auto', + }, + }, 'NAME' => 'Config::Auto', 'VERSION_FROM' => 'lib/Config/Auto.pm', # finds $VERSION 'PREREQ_PM' => $prereqs, - ( $] >= 5.005 - ? ( ABSTRACT_FROM => 'lib/Config/Auto.pm', - AUTHOR => 'Jos I. Boumans <[email protected]>') - : () - ), + ABSTRACT_FROM => 'lib/Config/Auto.pm', + AUTHOR => 'Jos I. Boumans <[email protected]>', ); + +sub WriteMakefile1 { #Written by Alexandr Ciornii, version 0.21. Added by eumm-upgrade. + my %params=@_; + my $eumm_version=$ExtUtils::MakeMaker::VERSION; + $eumm_version=eval $eumm_version; + die "EXTRA_META is deprecated" if exists $params{EXTRA_META}; + die "License not specified" if not exists $params{LICENSE}; + if ($params{BUILD_REQUIRES} and $eumm_version < 6.5503) { + #EUMM 6.5502 has problems with BUILD_REQUIRES + $params{PREREQ_PM}={ %{$params{PREREQ_PM} || {}} , %{$params{BUILD_REQUIRES}} }; + delete $params{BUILD_REQUIRES}; + } + delete $params{CONFIGURE_REQUIRES} if $eumm_version < 6.52; + delete $params{MIN_PERL_VERSION} if $eumm_version < 6.48; + delete $params{META_MERGE} if $eumm_version < 6.46; + delete $params{META_ADD} if $eumm_version < 6.46; + delete $params{LICENSE} if $eumm_version < 6.31; + delete $params{AUTHOR} if $] < 5.005; + delete $params{ABSTRACT_FROM} if $] < 5.005; + delete $params{BINARY_LOCATION} if $] < 5.005; + + WriteMakefile(%params); +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-Auto-0.34/lib/Config/Auto.pm new/Config-Auto-0.38/lib/Config/Auto.pm --- old/Config-Auto-0.34/lib/Config/Auto.pm 2011-03-08 16:06:31.000000000 +0100 +++ new/Config-Auto-0.38/lib/Config/Auto.pm 2011-08-08 22:36:26.000000000 +0200 @@ -7,7 +7,7 @@ use vars qw[$VERSION $DisablePerl $Untaint $Debug]; -$VERSION = '0.34'; +$VERSION = '0.38'; $DisablePerl = 0; $Untaint = 0; $Debug = 0; @@ -659,10 +659,9 @@ my %config; while (<$fh>) { next if /^\s*#/; - next unless /^\s*(.*?)\s*=\s*(.*)\s*$/; + next unless /^\s*(.*?)\s*=\s*(.*?)\s*$/; my ($k, $v) = ($1, $2); - my @v; ### multiple enries, but no shell tokens? if ($v=~ /,/ and $v !~ /(["']).*?,.*?\1/) { @@ -672,7 +671,7 @@ ### only load once require Text::ParseWords unless $loaded_tp++; - @v = Text::ParseWords::shellwords($v); + $config{$k} = [ Text::ParseWords::shellwords($v) ]; } else { $config{$k} = $v; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-Auto-0.34/t/05_rt69984.t new/Config-Auto-0.38/t/05_rt69984.t --- old/Config-Auto-0.34/t/05_rt69984.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Config-Auto-0.38/t/05_rt69984.t 2011-08-08 21:59:39.000000000 +0200 @@ -0,0 +1,27 @@ +use strict; +use warnings; +use Config::Auto; +use File::Spec; +use Test::More 'no_plan'; + +BEGIN { chdir 't' if -d 't'; } + +my $expecting = { + 'backup.jobs.list' => [ + 'production', + 'development', + 'infrastructure', + 'jaguararray' + ], + 'foo' => 'bar' +}; + +my $ca = Config::Auto->new( + source => File::Spec->catfile( 'src', '05_rt69984.conf' ), + format => 'equal', +); + +my $config = $ca->parse; +ok( $config, 'Got config' ); +is( ref($config), 'HASH', 'Got hash' ); +is_deeply( $config, $expecting, 'It looks like it should' ); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-Auto-0.34/t/src/05_rt69984.conf new/Config-Auto-0.38/t/src/05_rt69984.conf --- old/Config-Auto-0.34/t/src/05_rt69984.conf 1970-01-01 01:00:00.000000000 +0100 +++ new/Config-Auto-0.38/t/src/05_rt69984.conf 2011-08-08 21:37:29.000000000 +0200 @@ -0,0 +1,4 @@ +# A list of defined backup jobs +backup.jobs.list = production development infrastructure jaguararray + +foo = bar -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
