[Bps-public-commit] Config-GitLike branch, master, updated. 1.14-2-ga9a007c

Alex Vandiver alexmv at bestpractical.com
Tue Jun 24 10:49:01 EDT 2014


The branch, master has been updated
       via  a9a007c5c9a1427185dc3918bf171640ac4e67ed (commit)
       via  c9d95fbf111dfc22d7436980ec2aeee3d402ff74 (commit)
      from  b6fac237b854ff2b14cb3510c9ed7ed0995d496c (commit)

Summary of changes:
 Changes               | 136 +++++++++++++++++++++++---------------------------
 lib/Config/GitLike.pm |   4 +-
 2 files changed, 64 insertions(+), 76 deletions(-)

- Log -----------------------------------------------------------------
commit c9d95fbf111dfc22d7436980ec2aeee3d402ff74
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Tue Jun 24 10:41:05 2014 -0400

    abs_path may die on Windows if the path does not exist
    
    See https://rt.perl.org/Public/Bug/Display.html?id=116332

diff --git a/lib/Config/GitLike.pm b/lib/Config/GitLike.pm
index 39d2a67..a20e42f 100644
--- a/lib/Config/GitLike.pm
+++ b/lib/Config/GitLike.pm
@@ -196,7 +196,7 @@ sub load_file {
 
     # Do some canonicalization
     $filename =~ s/^~/$ENV{'HOME'}/g;
-    $filename = Cwd::abs_path( File::Spec->rel2abs($filename, $args{relative}) )
+    $filename = eval { Cwd::abs_path( File::Spec->rel2abs($filename, $args{relative}) ) }
         || $filename;
 
     return $self->data if grep {$_ eq $filename} @{$self->config_files}

commit a9a007c5c9a1427185dc3918bf171640ac4e67ed
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Tue Jun 24 10:48:28 2014 -0400

    Version 1.15 releng

diff --git a/Changes b/Changes
index cfd7174..4f5544b 100644
--- a/Changes
+++ b/Changes
@@ -1,106 +1,94 @@
 Revision history for perl module Config::GitLike
 
-1.14 2014-05-20
+1.15 2014-06-24
+ - Cope with Cwd::abs_path dying on non-existant paths on Windows
 
-    - Fix tests under MacOS, where TMPDIR is, by default, under a symlink
+1.14 2014-05-20
+ - Fix tests under MacOS, where TMPDIR is, by default, under a symlink
 
 1.13 2014-04-22
-
-    - Only expand ~ in paths if they are the first character
-    - Implement include.path, as git 1.7.10 and above do
+ - Only expand ~ in paths if they are the first character
+ - Implement include.path, as git 1.7.10 and above do
 
 1.12 2013-08-05
-
-    - Reformat Changes file to follow CPAN::Changes::Spec; no functional
-      changes.
+ - Reformat Changes file to follow CPAN::Changes::Spec; no functional
+   changes.
 
 1.11 2013-08-04
-
-    - Switch from the deprecated Any::Moose to Moo
+ - 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
-
-    - 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
-
-    - 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
-
-    - 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
-
-    - 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
-
-    - Initial release
+ - Initial release
 
diff --git a/lib/Config/GitLike.pm b/lib/Config/GitLike.pm
index a20e42f..e8ae9c1 100644
--- a/lib/Config/GitLike.pm
+++ b/lib/Config/GitLike.pm
@@ -8,7 +8,7 @@ use Scalar::Util qw(openhandle);
 use Fcntl qw(O_CREAT O_EXCL O_WRONLY);
 use 5.008;
 
-our $VERSION = '1.14';
+our $VERSION = '1.15';
 
 
 has 'confname' => (

-----------------------------------------------------------------------


More information about the Bps-public-commit mailing list