Hello community, here is the log from the commit of package perl-Config-GitLike for openSUSE:Factory checked in at 2012-03-01 17:22:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Config-GitLike (Old) and /work/SRC/openSUSE:Factory/.perl-Config-GitLike.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "perl-Config-GitLike", Maintainer is "" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Config-GitLike/perl-Config-GitLike.changes 2011-12-25 17:38:25.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.perl-Config-GitLike.new/perl-Config-GitLike.changes 2012-03-01 17:22:54.000000000 +0100 @@ -1,0 +2,7 @@ +Mon Feb 27 08:47:27 UTC 2012 - coolo@suse.com + +- updated to 1.08 +* Fix loading of user_file, broken in dcdd01f, due to unexpanded ~ + (alexmv, clkao@clkao.org) + +------------------------------------------------------------------- Old: ---- Config-GitLike-1.07.tar.gz New: ---- Config-GitLike-1.08.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Config-GitLike.spec ++++++ --- /var/tmp/diff_new_pack.Nz4AR9/_old 2012-03-01 17:22:55.000000000 +0100 +++ /var/tmp/diff_new_pack.Nz4AR9/_new 2012-03-01 17:22:55.000000000 +0100 @@ -1,8 +1,7 @@ -# vim: set sw=4 ts=4 et nu: # # spec file for package perl-Config-GitLike # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,60 +14,88 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + + Name: perl-Config-GitLike -Version: 1.07 +Version: 1.08 Release: 0 +%define cpan_name Config-GitLike Summary: Git-compatible config file parsing License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl -Source: http://search.cpan.org/CPAN/authors/id/A/AL/ALEXMV/Config-GitLike-%{version}.tar.gz -Url: http://search.cpan.org/dist/Config-GitLike +Url: http://search.cpan.org/dist/Config-GitLike/ +Source: http://www.cpan.org/authors/id/A/AL/ALEXMV/%{cpan_name}-%{version}.tar.gz +BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} -BuildRequires: make BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Any::Moose) -BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42 -BuildRequires: perl(File::Spec) -BuildRequires: perl(File::Temp) BuildRequires: perl(Test::Exception) -BuildRequires: perl(Test::More) +#BuildRequires: perl(Config::GitLike) +#BuildRequires: perl(inc::Module::Install) +#BuildRequires: perl(JSON) +#BuildRequires: perl(LWP::Simple) +#BuildRequires: perl(Module::Build) +#BuildRequires: perl(Module::Install::Base) +#BuildRequires: perl(Parse::CPAN::Meta) +#BuildRequires: perl(TestConfig) +#BuildRequires: perl(YAML::Tiny) Requires: perl(Any::Moose) +%{perl_requires} %description This module handles interaction with configuration files of the style used by the version control system Git. It can both parse and modify these files, as well as create entirely new ones. +You only need to know a few things about the configuration format in order +to use this module. First, a configuration file is made up of key/value +pairs. Every key must be contained in a section. Sections can have +subsections, but they don't have to. For the purposes of setting and +getting configuration variables, we join the section name, subsection name, +and variable name together with dots to get a key name that looks like +"section.subsection.variable". These are the strings that you'll be passing +in to 'key' arguments. + +Configuration files inherit from each other. By default, 'Config::GitLike' +loads data from a system-wide configuration file, a per-user configuration +file, and a per-directory configuration file, but by subclassing and +overriding methods you can obtain any combination of configuration files. +By default, configuration files that don't exist are just skipped. + +See the +http://www.kernel.org/pub/software/scm/git/docs/git-config.html#_configurat +ion_file manpage for details on the syntax of git configuration files. We +won't waste pixels on the nitty gritty here. + +While the behavior of a couple of this module's methods differ slightly +from the 'git config' equivalents, this module can read any config file +written by git. The converse is usually true, but only if you don't take +advantage of this module's increased permissiveness when it comes to key +names. (See the DIFFERENCES FROM GIT-CONFIG manpage for details.) + +This is an object-oriented module using Any::Moose. All subroutines are +object method calls. + +A few methods have parameters that are always used for the same purpose: + %prep -%setup -q -n "Config-GitLike-%{version}" -%__sed -i '/^auto_install/d' Makefile.PL +%setup -q -n %{cpan_name}-%{version} %build -%__perl Makefile.PL PREFIX="%{_prefix}" -%__make %{?jobs:-j%{jobs}} +%{__perl} Makefile.PL INSTALLDIRS=vendor +%{__make} %{?_smp_mflags} + +%check +%{__make} test %install %perl_make_install %perl_process_packlist +%perl_gen_filelist -%check -%__make test - -%clean -%{?buildroot:%__rm -rf "%{buildroot}"} - -%files -%defattr(-,root,root) +%files -f %{name}.files +%defattr(-,root,root,755) %doc Changes -%dir %{perl_vendorlib}/Config -%{perl_vendorlib}/Config/GitLike.pm -%{perl_vendorlib}/Config/GitLike -%dir %{perl_vendorarch}/auto/Config -%{perl_vendorarch}/auto/Config/GitLike -%doc %{perl_man3dir}/Config::GitLike.%{perl_man3ext}%{ext_man} -%doc %{perl_man3dir}/Config::GitLike::*.%{perl_man3ext}%{ext_man} %changelog ++++++ Config-GitLike-1.07.tar.gz -> Config-GitLike-1.08.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-GitLike-1.07/Changes new/Config-GitLike-1.08/Changes --- old/Config-GitLike-1.07/Changes 2011-10-26 04:57:40.000000000 +0200 +++ new/Config-GitLike-1.08/Changes 2012-02-16 05:16:37.000000000 +0100 @@ -1,3 +1,8 @@ +1.08 2012-02-15 + +* Fix loading of user_file, broken in dcdd01f, due to unexpanded ~ + (alexmv, clkao@clkao.org) + 1.07 2011-10-25 * Fix a spelling mistake in Config::GitLike::Cascaded diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-GitLike-1.07/META.yml new/Config-GitLike-1.08/META.yml --- old/Config-GitLike-1.07/META.yml 2011-10-26 05:07:34.000000000 +0200 +++ new/Config-GitLike-1.08/META.yml 2012-02-16 05:24:31.000000000 +0100 @@ -25,4 +25,4 @@ resources: license: http://dev.perl.org/licenses/ repository: http://github.com/bestpractical/config-gitlike -version: 1.07 +version: 1.08 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-GitLike-1.07/SIGNATURE new/Config-GitLike-1.08/SIGNATURE --- old/Config-GitLike-1.07/SIGNATURE 2011-10-26 05:10:15.000000000 +0200 +++ new/Config-GitLike-1.08/SIGNATURE 2012-02-22 03:30:20.000000000 +0100 @@ -14,9 +14,9 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -SHA1 d927e040b1552f8139aca51826ba82a30614ff6a Changes +SHA1 618657d3e94d75ea3eb0210214ba317e9fb34bc9 Changes SHA1 c978a1d6e9ccefe9c8512ce409451c70004db59c MANIFEST -SHA1 3a2dd13ea080aa9dace3bedfda3849f126b584b2 META.yml +SHA1 2a1698a924867daa5305daf5e548932d4b8df285 META.yml SHA1 14f45ca5f7c2a1117289045d76281a8eab0ca2e8 Makefile.PL SHA1 7b4ae50ebac72d20761171c4c2b50c206344ea40 inc/Module/Install.pm SHA1 d9fe55a427fe2fd75b5029afeeaa61b592e07f79 inc/Module/Install/Base.pm @@ -27,7 +27,7 @@ SHA1 8ce3f2b414e4617e6233dd4ba10830f8c5d672ec inc/Module/Install/Metadata.pm SHA1 3b0acd2eeac93a0afe48120f5648f0db362e5bbf inc/Module/Install/Win32.pm SHA1 f08924f051e623f8e09fa6a121993c4a9cf7d9eb inc/Module/Install/WriteAll.pm -SHA1 124dff75ccebd8b8c363b9110f44c8450fdf464c lib/Config/GitLike.pm +SHA1 92ef71379489cfa4d5410c15ae92c8967728ac25 lib/Config/GitLike.pm SHA1 f87bd57755c1973e80f988b6bfecc498b7bb4604 lib/Config/GitLike/Cascaded.pm SHA1 7ada70145453fc5adbacf1d1d22af3e2932a5a33 lib/Config/GitLike/Git.pm SHA1 8c30f69743e7a9d743d7206f2306ff9f12bb59a0 t/00_use.t @@ -37,7 +37,7 @@ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) -iEYEARECAAYFAk6nehcACgkQMflWJZZAbqDyeQCcDAHg4REPDxJssN+C4ScTsfTd -lc4AniahLg3rVPAEwdMqVPrv2u2P+EsX -=LETn +iEYEARECAAYFAk9EUzYACgkQMflWJZZAbqBf7gCfWJ87ZothsUpUK3A2W2j+WffM +xfwAoK2GUknpP+ZOZiuoqgvcw5NZivjc +=WA2D -----END PGP SIGNATURE----- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-GitLike-1.07/lib/Config/GitLike.pm new/Config-GitLike-1.08/lib/Config/GitLike.pm --- old/Config-GitLike-1.07/lib/Config/GitLike.pm 2011-10-26 04:56:22.000000000 +0200 +++ new/Config-GitLike-1.08/lib/Config/GitLike.pm 2012-02-16 05:17:29.000000000 +0100 @@ -7,7 +7,7 @@ use Fcntl qw(O_CREAT O_EXCL O_WRONLY); use 5.008; -our $VERSION = '1.07'; +our $VERSION = '1.08'; has 'confname' => ( @@ -114,7 +114,6 @@ sub load_global { my $self = shift; - return unless -f $self->global_file; return $self->load_file( $self->global_file ); } @@ -126,7 +125,6 @@ sub load_user { my $self = shift; - return unless -f $self->user_file; return $self->load_file( $self->user_file ); } @@ -135,6 +133,7 @@ my $self = shift; my $filename = shift; + return unless -f $filename and -r $filename; open(my $fh, '<', $filename) or return; my $c = do {local $/; <$fh>}; @@ -1554,7 +1553,8 @@ variables (a hashref). This method can also be called as a class method, which will die if the -file cannot be read. +file cannot be read. If called as an instance method, returns undef on +failure. =head2 parse_content -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org