r58617 - in /branches/upstream/libconfig-mvp-perl/current: ./ lib/Config/ lib/Config/MVP/ lib/Config/MVP/Assembler/ lib/Config/MVP/Reader/ lib/Config/MVP/Reader/Findable/
ansgar-guest at users.alioth.debian.org
ansgar-guest at users.alioth.debian.org
Sat May 29 09:35:23 UTC 2010
Author: ansgar-guest
Date: Sat May 29 09:34:48 2010
New Revision: 58617
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=58617
Log:
[svn-upgrade] Integrating new upstream version, libconfig-mvp-perl (2.101480)
Modified:
branches/upstream/libconfig-mvp-perl/current/Changes
branches/upstream/libconfig-mvp-perl/current/META.json
branches/upstream/libconfig-mvp-perl/current/META.yml
branches/upstream/libconfig-mvp-perl/current/Makefile.PL
branches/upstream/libconfig-mvp-perl/current/README
branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP.pm
branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Assembler.pm
branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Assembler/WithBundles.pm
branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Reader.pm
branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Reader/Findable.pm
branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Reader/Findable/ByExtension.pm
branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Reader/Finder.pm
branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Reader/Hash.pm
branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Section.pm
branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Sequence.pm
Modified: branches/upstream/libconfig-mvp-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libconfig-mvp-perl/current/Changes?rev=58617&op=diff
==============================================================================
--- branches/upstream/libconfig-mvp-perl/current/Changes (original)
+++ branches/upstream/libconfig-mvp-perl/current/Changes Sat May 29 09:34:48 2010
@@ -1,4 +1,7 @@
Revision history for Config-MVP
+
+2.101480 2010-05-28 22:59:18 America/New_York
+ add an if_none callback to Reader::Finder; for now, private
2.101460 2010-05-26 22:29:43 America/New_York
[BREAKS BACKWARD COMPATIBILITY]
Modified: branches/upstream/libconfig-mvp-perl/current/META.json
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libconfig-mvp-perl/current/META.json?rev=58617&op=diff
==============================================================================
--- branches/upstream/libconfig-mvp-perl/current/META.json (original)
+++ branches/upstream/libconfig-mvp-perl/current/META.json Sat May 29 09:34:48 2010
@@ -26,7 +26,8 @@
"Moose::Util::TypeConstraints" : "0",
"Params::Util" : "0",
"Test::More" : "0.88",
- "Tie::IxHash" : "0"
+ "Tie::IxHash" : "0",
+ "Try::Tiny" : "0"
}
},
"test" : {
@@ -40,7 +41,7 @@
"url" : "git://git.codesimply.com/Config-MVP.git"
}
},
- "version" : "2.101460",
+ "version" : "2.101480",
"x_Dist_Zilla" : {
"plugins" : [
{
Modified: branches/upstream/libconfig-mvp-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libconfig-mvp-perl/current/META.yml?rev=58617&op=diff
==============================================================================
--- branches/upstream/libconfig-mvp-perl/current/META.yml (original)
+++ branches/upstream/libconfig-mvp-perl/current/META.yml Sat May 29 09:34:48 2010
@@ -7,7 +7,7 @@
configure_requires:
ExtUtils::MakeMaker: 6.31
dynamic_config: 0
-generated_by: 'Dist::Zilla version 3.101460, CPAN::Meta::Converter version 2.101460'
+generated_by: 'Dist::Zilla version 3.101460, CPAN::Meta::Converter version 2.101461'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -22,9 +22,10 @@
Params::Util: 0
Test::More: 0.88
Tie::IxHash: 0
+ Try::Tiny: 0
resources:
repository: git://git.codesimply.com/Config-MVP.git
-version: 2.101460
+version: 2.101480
x_Dist_Zilla:
plugins:
-
Modified: branches/upstream/libconfig-mvp-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libconfig-mvp-perl/current/Makefile.PL?rev=58617&op=diff
==============================================================================
--- branches/upstream/libconfig-mvp-perl/current/Makefile.PL (original)
+++ branches/upstream/libconfig-mvp-perl/current/Makefile.PL Sat May 29 09:34:48 2010
@@ -29,9 +29,10 @@
'Moose::Util::TypeConstraints' => '0',
'Params::Util' => '0',
'Test::More' => '0.88',
- 'Tie::IxHash' => '0'
+ 'Tie::IxHash' => '0',
+ 'Try::Tiny' => '0'
},
- 'VERSION' => '2.101460',
+ 'VERSION' => '2.101480',
'test' => {
'TESTS' => 't/*.t'
}
Modified: branches/upstream/libconfig-mvp-perl/current/README
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libconfig-mvp-perl/current/README?rev=58617&op=diff
==============================================================================
--- branches/upstream/libconfig-mvp-perl/current/README (original)
+++ branches/upstream/libconfig-mvp-perl/current/README Sat May 29 09:34:48 2010
@@ -1,7 +1,7 @@
This archive contains the distribution Config-MVP,
-version 2.101460:
+version 2.101480:
multivalue-property package-oriented configuration
Modified: branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP.pm?rev=58617&op=diff
==============================================================================
--- branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP.pm (original)
+++ branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP.pm Sat May 29 09:34:48 2010
@@ -1,6 +1,6 @@
package Config::MVP;
BEGIN {
- $Config::MVP::VERSION = '2.101460';
+ $Config::MVP::VERSION = '2.101480';
}
# ABSTRACT: multivalue-property package-oriented configuration
use strict;
@@ -18,7 +18,7 @@
=head1 VERSION
-version 2.101460
+version 2.101480
=head1 SYNOPSIS
Modified: branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Assembler.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Assembler.pm?rev=58617&op=diff
==============================================================================
--- branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Assembler.pm (original)
+++ branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Assembler.pm Sat May 29 09:34:48 2010
@@ -1,6 +1,6 @@
package Config::MVP::Assembler;
BEGIN {
- $Config::MVP::Assembler::VERSION = '2.101460';
+ $Config::MVP::Assembler::VERSION = '2.101480';
}
use Moose;
# ABSTRACT: multivalue-property config-loading state machine
@@ -123,7 +123,7 @@
=head1 VERSION
-version 2.101460
+version 2.101480
=head1 DESCRIPTION
Modified: branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Assembler/WithBundles.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Assembler/WithBundles.pm?rev=58617&op=diff
==============================================================================
--- branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Assembler/WithBundles.pm (original)
+++ branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Assembler/WithBundles.pm Sat May 29 09:34:48 2010
@@ -1,6 +1,6 @@
package Config::MVP::Assembler::WithBundles;
BEGIN {
- $Config::MVP::Assembler::WithBundles::VERSION = '2.101460';
+ $Config::MVP::Assembler::WithBundles::VERSION = '2.101480';
}
use Moose::Role;
# ABSTRACT: a role to make assemblers expand bundles
@@ -96,7 +96,7 @@
=head1 VERSION
-version 2.101460
+version 2.101480
=head1 DESCRIPTION
Modified: branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Reader.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Reader.pm?rev=58617&op=diff
==============================================================================
--- branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Reader.pm (original)
+++ branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Reader.pm Sat May 29 09:34:48 2010
@@ -1,6 +1,6 @@
package Config::MVP::Reader;
BEGIN {
- $Config::MVP::Reader::VERSION = '2.101460';
+ $Config::MVP::Reader::VERSION = '2.101480';
}
use Moose;
# ABSTRACT: object to read config from storage into an assembler
@@ -41,7 +41,7 @@
=head1 VERSION
-version 2.101460
+version 2.101480
=head1 SYNOPSIS
Modified: branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Reader/Findable.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Reader/Findable.pm?rev=58617&op=diff
==============================================================================
--- branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Reader/Findable.pm (original)
+++ branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Reader/Findable.pm Sat May 29 09:34:48 2010
@@ -1,6 +1,6 @@
package Config::MVP::Reader::Findable;
BEGIN {
- $Config::MVP::Reader::Findable::VERSION = '2.101460';
+ $Config::MVP::Reader::Findable::VERSION = '2.101480';
}
use Moose::Role;
# ABSTRACT: a config class that Config::MVP::Reader::Finder can find
@@ -21,7 +21,7 @@
=head1 VERSION
-version 2.101460
+version 2.101480
=head1 DESCRIPTION
Modified: branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Reader/Findable/ByExtension.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Reader/Findable/ByExtension.pm?rev=58617&op=diff
==============================================================================
--- branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Reader/Findable/ByExtension.pm (original)
+++ branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Reader/Findable/ByExtension.pm Sat May 29 09:34:48 2010
@@ -1,6 +1,6 @@
package Config::MVP::Reader::Findable::ByExtension;
BEGIN {
- $Config::MVP::Reader::Findable::ByExtension::VERSION = '2.101460';
+ $Config::MVP::Reader::Findable::ByExtension::VERSION = '2.101480';
}
use Moose::Role;
# ABSTRACT: a Findable Reader that looks for files by extension
@@ -33,7 +33,7 @@
=head1 VERSION
-version 2.101460
+version 2.101480
=head1 METHODS
Modified: branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Reader/Finder.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Reader/Finder.pm?rev=58617&op=diff
==============================================================================
--- branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Reader/Finder.pm (original)
+++ branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Reader/Finder.pm Sat May 29 09:34:48 2010
@@ -1,6 +1,6 @@
package Config::MVP::Reader::Finder;
BEGIN {
- $Config::MVP::Reader::Finder::VERSION = '2.101460';
+ $Config::MVP::Reader::Finder::VERSION = '2.101480';
}
use Moose;
extends 'Config::MVP::Reader';
@@ -8,6 +8,7 @@
use Module::Pluggable::Object;
+use Try::Tiny;
sub default_search_path {
@@ -54,6 +55,11 @@
};
}
+has if_none => (
+ is => 'ro',
+ isa => 'Maybe[Str|CodeRef]',
+);
+
sub read_config {
my ($self, $location, $arg) = @_;
$self = $self->new unless blessed($self);
@@ -61,7 +67,14 @@
local $arg->{assembler} = $arg->{assembler} || $self->build_assembler;
- my $which = $self->_which_reader($location);
+ my $which = try {
+ $self->_which_reader($location);
+ } catch {
+ die $_ unless $_ =~ /^no viable configuration/;
+ die $_ unless defined (my $handler = $self->if_none);
+ return $self->$handler($location, $arg);
+ };
+
my $reader = $which->{package}->new;
return $reader->read_config( $which->{location}, $arg );
@@ -86,7 +99,7 @@
=head1 VERSION
-version 2.101460
+version 2.101480
=head1 DESCRIPTION
Modified: branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Reader/Hash.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Reader/Hash.pm?rev=58617&op=diff
==============================================================================
--- branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Reader/Hash.pm (original)
+++ branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Reader/Hash.pm Sat May 29 09:34:48 2010
@@ -1,6 +1,6 @@
package Config::MVP::Reader::Hash;
BEGIN {
- $Config::MVP::Reader::Hash::VERSION = '2.101460';
+ $Config::MVP::Reader::Hash::VERSION = '2.101480';
}
use Moose;
extends 'Config::MVP::Reader';
@@ -43,7 +43,7 @@
=head1 VERSION
-version 2.101460
+version 2.101480
=head1 SYNOPSIS
Modified: branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Section.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Section.pm?rev=58617&op=diff
==============================================================================
--- branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Section.pm (original)
+++ branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Section.pm Sat May 29 09:34:48 2010
@@ -1,6 +1,6 @@
package Config::MVP::Section;
BEGIN {
- $Config::MVP::Section::VERSION = '2.101460';
+ $Config::MVP::Section::VERSION = '2.101480';
}
use Moose;
# ABSTRACT: one section of an MVP configuration sequence
@@ -165,7 +165,7 @@
=head1 VERSION
-version 2.101460
+version 2.101480
=head1 DESCRIPTION
Modified: branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Sequence.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Sequence.pm?rev=58617&op=diff
==============================================================================
--- branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Sequence.pm (original)
+++ branches/upstream/libconfig-mvp-perl/current/lib/Config/MVP/Sequence.pm Sat May 29 09:34:48 2010
@@ -1,6 +1,6 @@
package Config::MVP::Sequence;
BEGIN {
- $Config::MVP::Sequence::VERSION = '2.101460';
+ $Config::MVP::Sequence::VERSION = '2.101480';
}
use Moose;
# ABSTRACT: an ordered set of named configuration sections
@@ -129,7 +129,7 @@
=head1 VERSION
-version 2.101460
+version 2.101480
=head1 DESCRIPTION
More information about the Pkg-perl-cvs-commits
mailing list