[libpath-tiny-perl] 07/11: update Changes, stopwords and meta files
Jonas Smedegaard
js at alioth.debian.org
Wed Aug 7 16:10:31 UTC 2013
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository libpath-tiny-perl.
commit df8ecadddae0f7af696b740484fb4639fd8ffd1b
Author: David Golden <dagolden at cpan.org>
Date: Thu Jul 25 19:32:14 2013 -0400
update Changes, stopwords and meta files
---
Changes | 5 +++++
META.json | 9 ++++++---
README.pod | 17 ++++++++++++++++-
dist.ini | 7 ++-----
4 files changed, 29 insertions(+), 9 deletions(-)
diff --git a/Changes b/Changes
index be91d0b..4bedbb6 100644
--- a/Changes
+++ b/Changes
@@ -2,6 +2,11 @@ Revision history for Path-Tiny
{{$NEXT}}
+ [ADDED]
+
+ - Added the 'digest' method to produce a hexadecimal SHA-256
+ (or user-specified) digest of a file
+
0.026 2013-07-14 21:25:22 America/New_York
[FIXED]
diff --git a/META.json b/META.json
index 844cc55..f7c2922 100644
--- a/META.json
+++ b/META.json
@@ -4,7 +4,7 @@
"David Golden <dagolden at cpan.org>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 4.300035, CPAN::Meta::Converter version 2.131560",
+ "generated_by" : "Dist::Zilla version 4.300035, CPAN::Meta::Converter version 2.130880",
"license" : [
"apache_2_0"
],
@@ -45,6 +45,8 @@
"requires" : {
"Carp" : "0",
"Cwd" : "0",
+ "Digest" : "1.03",
+ "Digest::SHA" : "5.45",
"Exporter" : "5.57",
"Fcntl" : "0",
"File::Copy" : "0",
@@ -81,7 +83,7 @@
"provides" : {
"Path::Tiny" : {
"file" : "lib/Path/Tiny.pm",
- "version" : "0.026"
+ "version" : "0.027"
}
},
"release_status" : "stable",
@@ -96,10 +98,11 @@
"web" : "https://github.com/dagolden/path-tiny"
}
},
- "version" : "0.026",
+ "version" : "0.027",
"x_contributors" : [
"Chris Williams <bingos at cpan.org>",
"David Steinbrunner <dsteinbrunner at pobox.com>",
+ "Gabor Szabo <szabgab at gmail.com>",
"George Hartzell <hartzell at cpan.org>",
"Goro Fuji <gfuji at cpan.org>",
"Karen Etheridge <ether at cpan.org>",
diff --git a/README.pod b/README.pod
index c40b181..021ac9d 100644
--- a/README.pod
+++ b/README.pod
@@ -8,7 +8,7 @@ Path::Tiny - File path utility
=head1 VERSION
-version 0.026
+version 0.027
=head1 SYNOPSIS
@@ -226,6 +226,15 @@ within a directory. Excludes "." and ".." automatically.
Copies a file using L<File::Copy>'s C<copy> function.
+=head2 digest
+
+ $obj = path("/tmp/foo.txt")->digest; # SHA-256
+ $obj = path("/tmp/foo.txt")->digest("MD5"); # user-selected
+
+Returns a hexadecimal digest for a file. Any arguments are passed to the
+constructor for L<Digest> to select an algorithm. If no arguments are given,
+the default is SHA-256.
+
=head2 dirname
$name = path("/tmp/foo.txt")->dirname; # "/tmp/"
@@ -291,6 +300,8 @@ L<Path::Iterator::Rule>.
@contents = path("/tmp/foo.txt")->lines_raw;
@contents = path("/tmp/foo.txt")->lines_utf8;
+ @contents = path("/tmp/foo.txt")->lines( { chomp => 1, count => 4 } );
+
Returns a list of lines from a file. Optionally takes a hash-reference of
options. Valid options are C<binmode>, C<count> and C<chomp>. If C<binmode>
is provided, it will be set on the handle prior to reading. If C<count> is
@@ -590,6 +601,10 @@ David Steinbrunner <dsteinbrunner at pobox.com>
=item *
+Gabor Szabo <szabgab at gmail.com>
+
+=item *
+
George Hartzell <hartzell at cpan.org>
=item *
diff --git a/dist.ini b/dist.ini
index d5a4e75..cdf9141 100644
--- a/dist.ini
+++ b/dist.ini
@@ -9,12 +9,8 @@ copyright_year = 2013
AutoMetaResources.bugtracker.rt = 0
AutoMetaResources.bugtracker.github = user:dagolden
stopwords = BENCHMARKING
-stopwords = BinGOs
stopwords = CRLF
-stopwords = Etheridge
-stopwords = Goro
-stopwords = Hartzell
-stopwords = Stringifying
+stopwords = SHA
stopwords = canonpath
stopwords = codepoints
stopwords = cwd
@@ -26,6 +22,7 @@ stopwords = openr
stopwords = openrw
stopwords = openw
stopwords = realpath
+stopwords = stringifying
stopwords = subclasses
stopwords = touchpath
stopwords = unlinked
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libpath-tiny-perl.git
More information about the Pkg-perl-cvs-commits
mailing list