[libconfig-gitlike-perl] 01/05: Imported Upstream version 1.12
Salvatore Bonaccorso
carnil at debian.org
Fri Aug 9 18:06:36 UTC 2013
This is an automated email from the git hooks/post-receive script.
carnil pushed a commit to annotated tag debian/1.12-1
in repository libconfig-gitlike-perl.
commit b58da330972c80599ce03d5b0391aa280fe17fda
Author: Salvatore Bonaccorso <carnil at debian.org>
Date: Fri Aug 9 19:55:17 2013 +0200
Imported Upstream version 1.12
---
Changes | 128 ++++++++++++++++++++++------------------
META.yml | 5 +-
Makefile.PL | 3 +-
SIGNATURE | 22 +++----
lib/Config/GitLike.pm | 29 ++++-----
lib/Config/GitLike/Cascaded.pm | 6 +-
lib/Config/GitLike/Git.pm | 4 +-
t/lib/TestConfig.pm | 7 ++-
8 files changed, 110 insertions(+), 94 deletions(-)
diff --git a/Changes b/Changes
index 8f5daa3..668bbd1 100644
--- a/Changes
+++ b/Changes
@@ -1,85 +1,97 @@
+Revision history for perl module Config::GitLike
+
+1.12 2013-08-05
+
+ - Reformat Changes file to follow CPAN::Changes::Spec; no functional
+ changes.
+
+1.11 2013-08-04
+
+ - Switch from the deprecated Any::Moose to Moo
+
1.10 2012-11-07
-* Provide and API got accessing the original key that a value was set
- with, in a case-preserving way. If the case of the key in a file
- matters, it is now possible to determine.
-* The 'name' value passed to the 'callback' parameter is now no longer
- forced to lower-case, as a consequence.
+ - Provide and API got accessing the original key that a value was set
+ with, in a case-preserving way. If the case of the key in a file
+ matters, it is now possible to determine.
+ - The 'name' value passed to the 'callback' parameter is now no longer
+ forced to lower-case, as a consequence.
1.09 2012-08-10
-* Multiple bug fixes concerning filters, including empty filters,
- valueless keys, and applying filters to single values.
-* Add "human" argument to get_all and get_regexp, to match get
-* Add an add_comment method
-* Add an encoding attribute, which adds the appropriate layer on file
- I/O
-* Enforce that all keys must have sections, as git 1.7.4.4 began doing
+ - Multiple bug fixes concerning filters, including empty filters,
+ valueless keys, and applying filters to single values.
+ - Add "human" argument to get_all and get_regexp, to match get
+ - Add an add_comment method
+ - Add an encoding attribute, which adds the appropriate layer on file I/O
+ - Enforce that all keys must have sections, as git 1.7.4.4 began doing
1.08 2012-02-15
-* Fix loading of user_file, broken in dcdd01f, due to unexpanded ~
- (alexmv, clkao at clkao.org)
+ - Fix loading of user_file, broken in dcdd01f, due to unexpanded ~
+ (alexmv, clkao at clkao.org)
1.07 2011-10-25
-* Fix a spelling mistake in Config::GitLike::Cascaded
- (gregoa at debian.org, forwarded by carnil at debian.org)
+ - Fix a spelling mistake in Config::GitLike::Cascaded
+ (gregoa at debian.org, forwarded by carnil at debian.org)
1.06 2011-10-12
-* Allow calling ->load_file as a class method, for simple use cases
- (alexmv)
-* Fix a parsing bug when quoted strings directly adjoined to unquoted
- strings (alexmv)
-* Calling ->load_file on a nonexistant file no longer sets ->is_loaded
- (alexmv)
-* Document that getters implicitly call ->load (alexmv)
-* Make ->dump implicitly call ->load as well (alexmv)
-* Minor POD fixes (alexmv, spang)
+ - Allow calling ->load_file as a class method, for simple use cases
+ (alexmv)
+ - Fix a parsing bug when quoted strings directly adjoined to unquoted
+ strings (alexmv)
+ - Calling ->load_file on a nonexistant file no longer sets ->is_loaded
+ (alexmv)
+ - Document that getters implicitly call ->load (alexmv)
+ - Make ->dump implicitly call ->load as well (alexmv)
+ - Minor POD fixes (alexmv, spang)
1.05 2011-01-07
-* support Module::Install::ExtraTests 0.007 (sunnavy)
-* properly set is => 'rw' in inherited classes (trs, alexmv)
-* silence lc warnings on undef under perl 5.12 (iarnell at gmail.com)
+ - support Module::Install::ExtraTests 0.007 (sunnavy)
+ - properly set is => 'rw' in inherited classes (trs, alexmv)
+ - silence lc warnings on undef under perl 5.12 (iarnell at gmail.com)
+
+1.04 2010-04-03
-1.04 - 2010-04-03
+ - The functionality of Config::GitLike::Cascaded has been folded into
+ Config::GitLike as a "cascade" option, and the subpackage is now
+ deprecated. (alexmv)
+ - Config::GitLike::Git->new->load("/path/to/git") when the path is
+ lacking a ".git", or is a bare repository, now works. (alexmv)
+ - Fixed a bug wherein the home directory config file would be loaded
+ twice, causing all values to be multiple, if that was your cwd.
+ Reported by rjbs. (alexmv)
+ - Allow explicitly calling ->load_file without previously having
+ called ->load (alexmv)
-* The functionality of Config::GitLike::Cascaded has been folded into
- Config::GitLike as a "cascade" option, and the subpackage is now
- deprecated. (alexmv)
-* Config::GitLike::Git->new->load("/path/to/git") when the path is
- lacking a ".git", or is a bare repository, now works. (alexmv)
-* Fixed a bug wherein the home directory config file would be loaded
- twice, causing all values to be multiple, if that was your cwd.
- Reported by rjbs. (alexmv)
-* Allow explicitly calling ->load_file without previously having
- called ->load (alexmv)
+1.03 2010-01-03
-1.03 - 2010-01-03
+ - Filter without replace_all should only replace the _first_ match
+ (alexmv)
+ - Having a matching filter with multiple and not replace_all does mean
+ replacement (alexmv)
+ - Fix a test that failed because multiple now works, and we're too smart
+ (alexmv)
+ - Fix for when ->set_multiple called with no arguments (alexmv)
-* Filter without replace_all should only replace the _first_ match (alexmv)
-* Having a matching filter with multiple and not replace_all does mean
- replacement (alexmv)
-* Fix a test that failed because multiple now works, and we're too smart
- (alexmv)
-* Fix for when ->set_multiple called with no arguments (alexmv)
+1.02 2009-08-19
-1.02 - 2009-08-19
+ - Bugfixes and extra tests for escaped \ and " in subsections (sunnavy)
+ - win32 fixes (sunnavy)
+ - auto-escape \ and " in subsections on set (sunnavy)
-* Bugfixes and extra tests for escaped \ and " in subsections (sunnavy)
-* win32 fixes (sunnavy)
-* auto-escape \ and " in subsections on set (sunnavy)
+1.01 2009-08-11
-1.01 - 2009-08-11
+ - Fix breakage under Mouse due to Moose references
+ - New Config::GitLike::Git module for loading config
+ files from the git locations
+ - various cleanups of Makefile.PL
+ - remove extraneous dep Regexp::Common
-* Fix breakage under Mouse due to Moose references
-* New Config::GitLike::Git module for loading config
- files from the git locations
-* various cleanups of Makefile.PL
-* remove extraneous dep Regexp::Common
+1.00 2009-07-08
-1.00 - 2009-07-08
+ - Initial release
-* Initial release
diff --git a/META.yml b/META.yml
index 8284211..0c4e5de 100644
--- a/META.yml
+++ b/META.yml
@@ -21,9 +21,10 @@ no_index:
- t
- xt
requires:
- Any::Moose: 0
+ Moo: 0
+ MooX::Types::MooseLike: 0
perl: 5.8.0
resources:
license: http://dev.perl.org/licenses/
repository: http://github.com/bestpractical/config-gitlike
-version: 1.10
+version: 1.12
diff --git a/Makefile.PL b/Makefile.PL
index 31bd0ee..4dcec4a 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -4,7 +4,8 @@ all_from('lib/Config/GitLike.pm');
repository('http://github.com/bestpractical/config-gitlike');
perl_version '5.008';
-requires 'Any::Moose';
+requires 'Moo';
+requires 'MooX::Types::MooseLike';
build_requires 'Test::Exception';
extra_tests();
sign();
diff --git a/SIGNATURE b/SIGNATURE
index 155828d..e4bd087 100644
--- a/SIGNATURE
+++ b/SIGNATURE
@@ -1,5 +1,5 @@
This file contains message digests of all files listed in MANIFEST,
-signed via the Module::Signature module, version 0.68.
+signed via the Module::Signature module, version 0.69.
To verify the content in this distribution, first make sure you have
Module::Signature installed, then type:
@@ -14,10 +14,10 @@ not run its Makefile.PL or Build.PL.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-SHA1 42afa8ce54d6dfb583505fad7d5597d99b8ae3b2 Changes
+SHA1 8711d1583126203dd593f8a9bcf6f4a3b812bd35 Changes
SHA1 a5f44319e842c051869036cc24fc6e336166716b MANIFEST
-SHA1 753bf370d9c7bba4eca5f93459a688132a0cf4ef META.yml
-SHA1 14f45ca5f7c2a1117289045d76281a8eab0ca2e8 Makefile.PL
+SHA1 20dda454357d1d5fce5281f166500f3c4c1097b8 META.yml
+SHA1 f9754df5160a87231baa88c358e169f3fa5ca24b Makefile.PL
SHA1 8a924add836b60fb23b25c8506d45945e02f42f4 inc/Module/Install.pm
SHA1 2d0fad3bf255f8c1e7e1e34eafccc4f595603ddc inc/Module/Install/Base.pm
SHA1 f0e01fff7d73cd145fbf22331579918d4628ddb0 inc/Module/Install/Can.pm
@@ -27,20 +27,20 @@ SHA1 b62ca5e2d58fa66766ccf4d64574f9e1a2250b34 inc/Module/Install/Makefile.pm
SHA1 1aa925be410bb3bfcd84a16985921f66073cc1d2 inc/Module/Install/Metadata.pm
SHA1 e4196994fa75e98bdfa2be0bdeeffef66de88171 inc/Module/Install/Win32.pm
SHA1 c3a6d0d5b84feb3280622e9599e86247d58b0d18 inc/Module/Install/WriteAll.pm
-SHA1 3705e960cc403e81f4fd4a21f3eef42234f2dd45 lib/Config/GitLike.pm
-SHA1 f87bd57755c1973e80f988b6bfecc498b7bb4604 lib/Config/GitLike/Cascaded.pm
-SHA1 7ada70145453fc5adbacf1d1d22af3e2932a5a33 lib/Config/GitLike/Git.pm
+SHA1 50b1bfef824733541149e7afde5008d4accfd9cf lib/Config/GitLike.pm
+SHA1 7cff3c4e4acc21bf68132f4616e3c59d4d03e979 lib/Config/GitLike/Cascaded.pm
+SHA1 a15b556bdedea16668a170ea52e2ff6f415b7295 lib/Config/GitLike/Git.pm
SHA1 8c30f69743e7a9d743d7206f2306ff9f12bb59a0 t/00_use.t
SHA1 21719c6e6474a3ef23a0e73dabeb7259835b146f t/casing.t
SHA1 34c0acc86d479971c0723abac2dc4bbbca3247bb t/comment.t
SHA1 0e98fd5383d929fbe63e3513a7697478c3abbf51 t/encoding.t
-SHA1 ee64f33ab3c8be5994f76b698d00964ed2c0717c t/lib/TestConfig.pm
+SHA1 e884df4ffae7428768c76b54882ba3872d5a3b47 t/lib/TestConfig.pm
SHA1 24a4fbfdeb3268280fa1a10ac5934274c33a9a55 t/t1300-repo-config.t
SHA1 53b21b0f0227909dd299d8adb033f5aff8f5fc42 t/util/translate.pl
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
-iEYEARECAAYFAlCampIACgkQMflWJZZAbqCuhgCgvei/oRjb4H0H2dtwgdueTLJf
-8HMAoJSnQquLFuE1vJcvDUn3Ib1Zg8az
-=pzeZ
+iEYEARECAAYFAlH/J0YACgkQMflWJZZAbqDMTwCeNcj75Zb/1O/geF+2DqLoZuh+
+McUAnRZRip1XbZ3nEy32IiZqBQ6+JB7J
+=Li1j
-----END PGP SIGNATURE-----
diff --git a/lib/Config/GitLike.pm b/lib/Config/GitLike.pm
index 7e29ead..15de2fc 100644
--- a/lib/Config/GitLike.pm
+++ b/lib/Config/GitLike.pm
@@ -1,5 +1,6 @@
package Config::GitLike;
-use Any::Moose;
+use Moo;
+use MooX::Types::MooseLike::Base qw(Bool HashRef ArrayRef Maybe Str);
use File::Spec;
use Cwd;
@@ -7,13 +8,13 @@ use Scalar::Util qw(openhandle);
use Fcntl qw(O_CREAT O_EXCL O_WRONLY);
use 5.008;
-our $VERSION = '1.10';
+our $VERSION = '1.12';
has 'confname' => (
is => 'rw',
required => 1,
- isa => 'Str',
+ isa => Str,
);
# not defaulting to {} allows the predicate is_loaded
@@ -21,32 +22,32 @@ has 'confname' => (
has 'data' => (
is => 'rw',
predicate => 'is_loaded',
- isa => 'HashRef',
+ isa => HashRef,
);
# key => bool
has 'multiple' => (
is => 'rw',
- isa => 'HashRef',
+ isa => HashRef,
default => sub { +{} },
);
has 'casing' => (
is => 'rw',
- isa => 'HashRef',
+ isa => HashRef,
default => sub { +{} },
);
# filename where the definition of each key was loaded from
has 'origins' => (
is => 'rw',
- isa => 'HashRef',
+ isa => HashRef,
default => sub { +{} },
);
has 'config_files' => (
is => 'rw',
- isa => 'ArrayRef',
+ isa => ArrayRef,
default => sub { [] },
);
@@ -54,19 +55,19 @@ has 'config_files' => (
# of only-write-things-that-git-config-can-read if you want to
has 'compatible' => (
is => 'rw',
- isa => 'Bool',
- default => 0,
+ isa => Bool,
+ default => sub { 0 },
);
has 'cascade' => (
is => 'rw',
- isa => 'Bool',
- default => 0,
+ isa => Bool,
+ default => sub { 0 },
);
has 'encoding' => (
is => 'rw',
- isa => 'Maybe[Str]',
+ isa => Maybe[Str],
);
sub set_multiple {
@@ -1319,7 +1320,7 @@ 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 L<DIFFERENCES FROM GIT-CONFIG> for details.)
-This is an object-oriented module using L<Any::Moose|Any::Moose>. All
+This is an object-oriented module using L<Moo|Moo>. All
subroutines are object method calls.
A few methods have parameters that are always used for the same purpose:
diff --git a/lib/Config/GitLike/Cascaded.pm b/lib/Config/GitLike/Cascaded.pm
index 16c9533..b674961 100644
--- a/lib/Config/GitLike/Cascaded.pm
+++ b/lib/Config/GitLike/Cascaded.pm
@@ -1,17 +1,17 @@
package Config::GitLike::Cascaded;
-use Any::Moose;
+use Moo;
use Cwd;
use File::Spec;
extends 'Config::GitLike';
has 'cascade' => (
- default => 1,
+ default => sub { 1 },
is => 'rw',
);
__PACKAGE__->meta->make_immutable;
-no Any::Moose;
+no Moo;
1;
diff --git a/lib/Config/GitLike/Git.pm b/lib/Config/GitLike/Git.pm
index 4961070..492195c 100644
--- a/lib/Config/GitLike/Git.pm
+++ b/lib/Config/GitLike/Git.pm
@@ -1,5 +1,5 @@
package Config::GitLike::Git;
-use Any::Moose;
+use Moo;
use strict;
use warnings;
@@ -48,7 +48,7 @@ sub load_dirs {
}
__PACKAGE__->meta->make_immutable;
-no Any::Moose;
+no Moo;
1;
diff --git a/t/lib/TestConfig.pm b/t/lib/TestConfig.pm
index 0ab1721..409a02d 100644
--- a/t/lib/TestConfig.pm
+++ b/t/lib/TestConfig.pm
@@ -1,12 +1,13 @@
package TestConfig;
-use Any::Moose;
+use Moo;
+use MooX::Types::MooseLike::Base qw(Str);
use File::Spec;
extends 'Config::GitLike';
has 'tmpdir' => (
is => 'rw',
required => 1,
- isa => 'Str',
+ isa => Str,
);
# override these methods so:
@@ -57,7 +58,7 @@ sub burp {
}
__PACKAGE__->meta->make_immutable;
-no Any::Moose;
+no Moo;
1;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libconfig-gitlike-perl.git
More information about the Pkg-perl-cvs-commits
mailing list