diff -Nru libfile-slurp-tiny-perl-0.003/benchmark/1.pl libfile-slurp-tiny-perl-0.004/benchmark/1.pl --- libfile-slurp-tiny-perl-0.003/benchmark/1.pl 1970-01-01 00:00:00.000000000 +0000 +++ libfile-slurp-tiny-perl-0.004/benchmark/1.pl 2015-07-15 14:51:55.000000000 +0000 @@ -0,0 +1,51 @@ +#! /usr/bin/env perl + +use strict; +use warnings; +use Benchmark ':hireswallclock', 'cmpthese'; +use File::Slurp; +use File::Slurp::Tiny; + +my $filename = shift or die "No argument given"; +my $count = shift || 100; +my $factor = 10; + +print "Slurping into a scalar\n"; +cmpthese($count * $factor, { + 'Slurp' => sub { my $content = File::Slurp::read_file($filename) }, + 'Slurp-Tiny' => sub { my $content = File::Slurp::Tiny::read_file($filename) }, + 'Naive' => sub { open my $fh, '<', $filename or die $!; my $content = do { local $/; <$fh> } }, +}); + +print "\nSlurping into a scalarref\n"; +cmpthese($count * $factor, { + 'Slurp' => sub { File::Slurp::read_file($filename, buffer_ref => \my $buffer) }, + 'Slurp-Tiny' => sub { File::Slurp::Tiny::read_file($filename, buffer_ref => \my $buffer) }, +}); + +print "\nSlurping into an arrayref\n"; +cmpthese($count, { + 'Slurp' => sub { my $lines = File::Slurp::read_file($filename, { array_ref => 1 }) }, + 'Slurp-Tiny' => sub { my $lines = File::Slurp::Tiny::read_lines($filename, array_ref => 1) }, +}); + +print "\nSlurping into an arrayref, chomped\n"; +cmpthese($count, { + 'Slurp' => sub { my $lines = File::Slurp::read_file($filename, array_ref => 1, chomp => 1) }, + 'Slurp-Tiny' => sub { my $lines = File::Slurp::Tiny::read_lines($filename, array_ref => 1, chomp => 1) }, +}); + +print "\nSlurping into an array\n"; +cmpthese($count, { + 'Slurp' => sub { my @lines = File::Slurp::read_file($filename) }, + 'Slurp-Tiny' => sub { my @lines = File::Slurp::Tiny::read_lines($filename) }, + 'Naive' => sub { open my $fh, '<', $filename; my @lines = <$fh> }, +}); + +print "\nSlurping into an array, chomped\n"; +cmpthese($count, { + 'Slurp' => sub { my @lines = File::Slurp::read_file($filename, chomp => 1) }, + 'Slurp-Tiny' => sub { my @lines = File::Slurp::Tiny::read_lines($filename, chomp => 1) }, + 'Naive' => sub { open my $fh, '<', $filename; my @lines = <$fh>; chomp @lines }, +}); + diff -Nru libfile-slurp-tiny-perl-0.003/benchmark/2.pl libfile-slurp-tiny-perl-0.004/benchmark/2.pl --- libfile-slurp-tiny-perl-0.003/benchmark/2.pl 1970-01-01 00:00:00.000000000 +0000 +++ libfile-slurp-tiny-perl-0.004/benchmark/2.pl 2015-07-15 14:51:55.000000000 +0000 @@ -0,0 +1,39 @@ +use strict; +use warnings; +use Carp 'croak'; +use Benchmark ':hireswallclock', 'cmpthese'; +#use File::Slurp 'read_file'; + +sub read1 { + my ($filename, $encoding, %options) = @_; + $encoding |= 'utf-8'; + my $extra = $options{crlf} ? ':crlf' : ''; + + open my $fh, "<$extra:encoding($encoding)", $filename or croak "Couldn't open $filename: $!"; + my $size = -s $fh; + my ($pos, $read, $buf) = 0; + do { + defined($read = read $fh, $buf, $size - $pos, $pos) or croak "Couldn't read $filename: $!"; + $pos += $read; + } while ($read && $pos < $size); +} + +sub read2 { + my ($filename, $encoding, %options) = @_; + $encoding |= 'utf-8'; + my $extra = $options{crlf} ? ':crlf' : ''; + + open my $fh, "<$extra:encoding($encoding)", $filename or croak "Couldn't open $filename: $!"; + my $buf_ref = do { local $/; <$fh> }; +} + +my $filename = shift or die "No argument given"; +my $count = shift || 100; +my $factor = 1; + +print "Slurping utf8\n"; +cmpthese($count * $factor, { +# slurp => sub { read_file($filename, binmode => ':encoding(utf-8)') }, + smart => sub { read1($filename) }, + dump => sub { read2($filename) }, +}); diff -Nru libfile-slurp-tiny-perl-0.003/benchmark.pl libfile-slurp-tiny-perl-0.004/benchmark.pl --- libfile-slurp-tiny-perl-0.003/benchmark.pl 2014-01-20 23:03:03.000000000 +0000 +++ libfile-slurp-tiny-perl-0.004/benchmark.pl 1970-01-01 00:00:00.000000000 +0000 @@ -1,47 +0,0 @@ -#! /usr/bin/env perl - -use strict; -use warnings; -use Benchmark ':hireswallclock', 'cmpthese'; -use File::Slurp; -use File::Slurp::Tiny; - -my $filename = shift or die "No argument given"; -my $count = shift || 100; - -print "Slurping into a scalar\n"; -cmpthese($count, { - 'Slurp' => sub { my $content = File::Slurp::read_file($filename) }, - 'Slurp-Tiny' => sub { my $content = File::Slurp::Tiny::read_file($filename) }, -}); - -print "\nSlurping into a scalarref\n"; -cmpthese($count, { - 'Slurp' => sub { File::Slurp::read_file($filename, buffer_ref => \my $buffer) }, - 'Slurp-Tiny' => sub { File::Slurp::Tiny::read_file($filename, buffer_ref => \my $buffer) }, -}); - -print "\nSlurping into an arrayref\n"; -cmpthese($count, { - 'Slurp' => sub { my $lines = File::Slurp::read_file($filename, { array_ref => 1 }) }, - 'Slurp-Tiny' => sub { my $lines = File::Slurp::Tiny::read_lines($filename, array_ref => 1) }, -}); - -print "\nSlurping into an arrayref, chomped\n"; -cmpthese($count, { - 'Slurp' => sub { my $lines = File::Slurp::read_file($filename, array_ref => 1, chomp => 1) }, - 'Slurp-Tiny' => sub { my $lines = File::Slurp::Tiny::read_lines($filename, array_ref => 1, chomp => 1) }, -}); - -print "\nSlurping into an array\n"; -cmpthese($count, { - 'Slurp' => sub { my @lines = File::Slurp::read_file($filename) }, - 'Slurp-Tiny' => sub { my @lines = File::Slurp::Tiny::read_lines($filename) }, -}); - -print "\nSlurping into an array, chomped\n"; -cmpthese($count, { - 'Slurp' => sub { my @lines = File::Slurp::read_file($filename, chomp => 1) }, - 'Slurp-Tiny' => sub { my @lines = File::Slurp::Tiny::read_lines($filename, chomp => 1) }, -}); - diff -Nru libfile-slurp-tiny-perl-0.003/Changes libfile-slurp-tiny-perl-0.004/Changes --- libfile-slurp-tiny-perl-0.003/Changes 2014-01-20 23:03:03.000000000 +0000 +++ libfile-slurp-tiny-perl-0.004/Changes 2015-07-15 14:51:55.000000000 +0000 @@ -1,5 +1,10 @@ Revision history for File-Slurp-Tiny +0.004 2015-07-15 16:51:45+02:00 Europe/Amsterdam + Add discouragement notice + Don't skip '.\n' amd '..\n' in read_dir + Don't install benchmark.pl + 0.003 2014-01-21 00:02:40CET+0100 Europe/Amsterdam use FileHandle, for $fh->autoflush on older perls Switch over to MakeMaker diff -Nru libfile-slurp-tiny-perl-0.003/debian/changelog libfile-slurp-tiny-perl-0.004/debian/changelog --- libfile-slurp-tiny-perl-0.003/debian/changelog 2014-02-26 18:46:45.000000000 +0000 +++ libfile-slurp-tiny-perl-0.004/debian/changelog 2018-04-08 16:28:49.000000000 +0000 @@ -1,3 +1,34 @@ +libfile-slurp-tiny-perl (0.004-1) unstable; urgency=medium + + [ Salvatore Bonaccorso ] + * Update Vcs-Browser URL to cgit web frontend + + [ Lucas Kanashiro ] + * Add debian/upstream/metadata + * Import upstream version 0.004 + * Update d/examples + * Bump debhelper compatibility level to 9 + * Declare compliance with Debian policy 3.9.6 + + [ Salvatore Bonaccorso ] + * debian/control: Use HTTPS transport protocol for Vcs-Git URI + + [ gregor herrmann ] + * debian/copyright: change Copyright-Format 1.0 URL to HTTPS. + * debian/upstream/metadata: change GitHub/CPAN URL(s) to HTTPS. + * debian/upstream/metadata: use HTTPS for GitHub URLs. + + [ Salvatore Bonaccorso ] + * Update Vcs-* headers for switch to salsa.debian.org + + [ gregor herrmann ] + * Update years of packaging copyright. + * Mark package as autopkgtest-able. + * Declare compliance with Debian Policy 4.1.4. + * Bump debhelper compatibility level to 10. + + -- gregor herrmann Sun, 08 Apr 2018 18:28:49 +0200 + libfile-slurp-tiny-perl (0.003-1) unstable; urgency=low * Initial release (closes: #740191). diff -Nru libfile-slurp-tiny-perl-0.003/debian/compat libfile-slurp-tiny-perl-0.004/debian/compat --- libfile-slurp-tiny-perl-0.003/debian/compat 2014-02-26 18:46:45.000000000 +0000 +++ libfile-slurp-tiny-perl-0.004/debian/compat 2018-04-08 16:28:49.000000000 +0000 @@ -1 +1 @@ -8 +10 diff -Nru libfile-slurp-tiny-perl-0.003/debian/control libfile-slurp-tiny-perl-0.004/debian/control --- libfile-slurp-tiny-perl-0.003/debian/control 2014-02-26 18:46:45.000000000 +0000 +++ libfile-slurp-tiny-perl-0.004/debian/control 2018-04-08 16:28:49.000000000 +0000 @@ -1,18 +1,20 @@ Source: libfile-slurp-tiny-perl -Section: perl -Priority: optional Maintainer: Debian Perl Group Uploaders: gregor herrmann -Build-Depends: debhelper (>= 8) +Section: perl +Testsuite: autopkgtest-pkg-perl +Priority: optional +Build-Depends: debhelper (>= 10) Build-Depends-Indep: perl -Standards-Version: 3.9.5 -Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libfile-slurp-tiny-perl.git -Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libfile-slurp-tiny-perl.git +Standards-Version: 4.1.4 +Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libfile-slurp-tiny-perl +Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libfile-slurp-tiny-perl.git Homepage: https://metacpan.org/release/File-Slurp-Tiny Package: libfile-slurp-tiny-perl Architecture: all -Depends: ${misc:Depends}, ${perl:Depends} +Depends: ${misc:Depends}, + ${perl:Depends} Description: simple, sane and efficient file slurper File::Slurp::Tiny provides functions for fast and correct slurping and spewing. All functions are optionally exported. diff -Nru libfile-slurp-tiny-perl-0.003/debian/copyright libfile-slurp-tiny-perl-0.004/debian/copyright --- libfile-slurp-tiny-perl-0.003/debian/copyright 2014-02-26 18:46:45.000000000 +0000 +++ libfile-slurp-tiny-perl-0.004/debian/copyright 2018-04-08 16:28:49.000000000 +0000 @@ -1,4 +1,4 @@ -Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: https://metacpan.org/release/File-Slurp-Tiny Upstream-Contact: Leon Timmermans Upstream-Name: File-Slurp-Tiny @@ -8,7 +8,7 @@ License: Artistic or GPL-1+ Files: debian/* -Copyright: 2014, gregor herrmann +Copyright: 2014-2018, gregor herrmann License: Artistic or GPL-1+ License: Artistic diff -Nru libfile-slurp-tiny-perl-0.003/debian/libfile-slurp-tiny-perl.examples libfile-slurp-tiny-perl-0.004/debian/libfile-slurp-tiny-perl.examples --- libfile-slurp-tiny-perl-0.003/debian/libfile-slurp-tiny-perl.examples 2014-02-26 18:46:45.000000000 +0000 +++ libfile-slurp-tiny-perl-0.004/debian/libfile-slurp-tiny-perl.examples 2018-04-08 16:28:49.000000000 +0000 @@ -1 +1 @@ -benchmark.pl +benchmark diff -Nru libfile-slurp-tiny-perl-0.003/debian/patches/autopkgtest.patch libfile-slurp-tiny-perl-0.004/debian/patches/autopkgtest.patch --- libfile-slurp-tiny-perl-0.003/debian/patches/autopkgtest.patch 1970-01-01 00:00:00.000000000 +0000 +++ libfile-slurp-tiny-perl-0.004/debian/patches/autopkgtest.patch 2018-04-08 16:28:49.000000000 +0000 @@ -0,0 +1,21 @@ +Description: skip tests when run under autopkgtest + where the source tree is not available +Origin: vendor +Forwarded: not-needed +Author: gregor herrmann +Last-Update: 2018-04-08 + +--- a/t/10-basics.t ++++ b/t/10-basics.t +@@ -23,8 +23,11 @@ + chomp @content; + is_deeply([ read_lines($0, chomp => 1) ], \@content, 'read_lines(chomp => 1) returns the right thing'); + ++SKIP: { ++skip "No 'lib' directory available under autopkgtest", 2 if $ENV{ADTTMP}; + is_deeply([ read_dir('lib') ], [ 'File' ], 'read_dir appears to work'); + is_deeply([ read_dir('lib', prefix => 1) ], [ catfile(qw/lib File/) ], 'read_dir(prefix => 1) appears to work'); ++}; + + my $dir = tempdir( CLEANUP => 1 ); + my $filename = catfile($dir, 'out.txt'); diff -Nru libfile-slurp-tiny-perl-0.003/debian/patches/series libfile-slurp-tiny-perl-0.004/debian/patches/series --- libfile-slurp-tiny-perl-0.003/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ libfile-slurp-tiny-perl-0.004/debian/patches/series 2018-04-08 16:28:49.000000000 +0000 @@ -0,0 +1 @@ +autopkgtest.patch diff -Nru libfile-slurp-tiny-perl-0.003/debian/upstream/metadata libfile-slurp-tiny-perl-0.004/debian/upstream/metadata --- libfile-slurp-tiny-perl-0.003/debian/upstream/metadata 1970-01-01 00:00:00.000000000 +0000 +++ libfile-slurp-tiny-perl-0.004/debian/upstream/metadata 2018-04-08 16:28:49.000000000 +0000 @@ -0,0 +1,8 @@ +--- +Archive: CPAN +Bug-Database: https://rt.cpan.org/Public/Dist/Display.html?Name=File-Slurp-Tiny +Bug-Submit: bug-file-slurp-tiny@rt.cpan.org +Contact: Leon Timmermans +Name: File-Slurp-Tiny +Repository: https://github.com/Leont/file-slurp-tiny.git +Repository-Browse: https://github.com/Leont/file-slurp-tiny diff -Nru libfile-slurp-tiny-perl-0.003/lib/File/Slurp/Tiny.pm libfile-slurp-tiny-perl-0.004/lib/File/Slurp/Tiny.pm --- libfile-slurp-tiny-perl-0.003/lib/File/Slurp/Tiny.pm 2014-01-20 23:03:03.000000000 +0000 +++ libfile-slurp-tiny-perl-0.004/lib/File/Slurp/Tiny.pm 2015-07-15 14:51:55.000000000 +0000 @@ -1,5 +1,5 @@ package File::Slurp::Tiny; -$File::Slurp::Tiny::VERSION = '0.003'; +$File::Slurp::Tiny::VERSION = '0.004'; use strict; use warnings; @@ -60,7 +60,7 @@ sub read_dir { my ($dirname, %options) = @_; opendir my ($dir), $dirname or croak "Could not open $dirname: $!"; - my @ret = grep { not m/ ^ \.\.? $ /x } readdir $dir; + my @ret = grep { not m/ \A \.\.? \z /x } readdir $dir; @ret = map { catfile($dirname, $_) } @ret if $options{prefix}; closedir $dir; return @ret; @@ -68,7 +68,7 @@ 1; -# ABSTRACT: A simple, sane and efficient file slurper +# ABSTRACT: A simple, sane and efficient file slurper [DISCOURAGED] __END__ @@ -78,17 +78,23 @@ =head1 NAME -File::Slurp::Tiny - A simple, sane and efficient file slurper +File::Slurp::Tiny - A simple, sane and efficient file slurper [DISCOURAGED] =head1 VERSION -version 0.003 +version 0.004 =head1 SYNOPSIS use File::Slurp::Tiny 'read_file'; my $content = read_file($filename); +=head1 DISCOURAGED + +B>. While a useful experiment, it turned out to be both too similar to File::Slurp (still containing most problematic features of File::Slurp's interface) and yet not similar enough to be a true drop-in replacement. + +Bugs will still be fixed, but new features will probably not be added. + =head1 DESCRIPTION This module provides functions for fast and correct slurping and spewing. All functions are optionally exported. diff -Nru libfile-slurp-tiny-perl-0.003/LICENSE libfile-slurp-tiny-perl-0.004/LICENSE --- libfile-slurp-tiny-perl-0.003/LICENSE 2014-01-20 23:03:03.000000000 +0000 +++ libfile-slurp-tiny-perl-0.004/LICENSE 2015-07-15 14:51:55.000000000 +0000 @@ -22,7 +22,7 @@ Version 1, February 1989 Copyright (C) 1989 Free Software Foundation, Inc. - 51 Franklin St, Suite 500, Boston, MA 02110-1335 USA + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. diff -Nru libfile-slurp-tiny-perl-0.003/Makefile.PL libfile-slurp-tiny-perl-0.004/Makefile.PL --- libfile-slurp-tiny-perl-0.003/Makefile.PL 2014-01-20 23:03:03.000000000 +0000 +++ libfile-slurp-tiny-perl-0.004/Makefile.PL 2015-07-15 14:51:55.000000000 +0000 @@ -1,24 +1,24 @@ -# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.011. +# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.025. use strict; use warnings; use 5.008001; -use ExtUtils::MakeMaker 6.30; +use ExtUtils::MakeMaker; my %WriteMakefileArgs = ( - "ABSTRACT" => "A simple, sane and efficient file slurper", + "ABSTRACT" => "A simple, sane and efficient file slurper [DISCOURAGED]", "AUTHOR" => "Leon Timmermans ", - "BUILD_REQUIRES" => {}, "CONFIGURE_REQUIRES" => { - "ExtUtils::MakeMaker" => "6.30" + "ExtUtils::MakeMaker" => 0 }, "DISTNAME" => "File-Slurp-Tiny", "EXE_FILES" => [], "LICENSE" => "perl", + "MIN_PERL_VERSION" => "5.008001", "NAME" => "File::Slurp::Tiny", "PREREQ_PM" => { "Carp" => 0, @@ -29,13 +29,10 @@ "warnings" => 0 }, "TEST_REQUIRES" => { - "File::Spec" => 0, "File::Temp" => 0, - "IO::Handle" => 0, - "IPC::Open3" => 0, "Test::More" => 0 }, - "VERSION" => "0.003", + "VERSION" => "0.004", "test" => { "TESTS" => "t/*.t" } @@ -45,12 +42,10 @@ my %FallbackPrereqs = ( "Carp" => 0, "Exporter" => "5.57", - "File::Spec" => 0, + "ExtUtils::MakeMaker" => 0, "File::Spec::Functions" => 0, "File::Temp" => 0, "FileHandle" => 0, - "IO::Handle" => 0, - "IPC::Open3" => 0, "Test::More" => 0, "strict" => 0, "warnings" => 0 diff -Nru libfile-slurp-tiny-perl-0.003/MANIFEST libfile-slurp-tiny-perl-0.004/MANIFEST --- libfile-slurp-tiny-perl-0.003/MANIFEST 2014-01-20 23:03:03.000000000 +0000 +++ libfile-slurp-tiny-perl-0.004/MANIFEST 2015-07-15 14:51:55.000000000 +0000 @@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.011. +# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.025. Changes INSTALL LICENSE @@ -7,10 +7,12 @@ META.yml Makefile.PL README -benchmark.pl +benchmark/1.pl +benchmark/2.pl dist.ini lib/File/Slurp/Tiny.pm -t/00-compile.t t/10-basics.t -t/release-pod-coverage.t -t/release-pod-syntax.t +weaver.ini +xt/author/00-compile.t +xt/release/pod-coverage.t +xt/release/pod-syntax.t diff -Nru libfile-slurp-tiny-perl-0.003/META.json libfile-slurp-tiny-perl-0.004/META.json --- libfile-slurp-tiny-perl-0.003/META.json 2014-01-20 23:03:03.000000000 +0000 +++ libfile-slurp-tiny-perl-0.004/META.json 2015-07-15 14:51:55.000000000 +0000 @@ -1,10 +1,10 @@ { - "abstract" : "A simple, sane and efficient file slurper", + "abstract" : "A simple, sane and efficient file slurper [DISCOURAGED]", "author" : [ "Leon Timmermans " ], "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 5.011, CPAN::Meta::Converter version 2.132830", + "generated_by" : "Dist::Zilla version 5.025, CPAN::Meta::Converter version 2.143240", "license" : [ "perl_5" ], @@ -16,12 +16,16 @@ "prereqs" : { "configure" : { "requires" : { - "ExtUtils::MakeMaker" : "6.30" + "ExtUtils::MakeMaker" : "0" } }, "develop" : { "requires" : { + "File::Spec" : "0", + "IO::Handle" : "0", + "IPC::Open3" : "0", "Pod::Coverage::TrustPod" : "0", + "Test::More" : "0", "Test::Pod" : "1.41", "Test::Pod::Coverage" : "1.08" } @@ -39,10 +43,7 @@ }, "test" : { "requires" : { - "File::Spec" : "0", "File::Temp" : "0", - "IO::Handle" : "0", - "IPC::Open3" : "0", "Test::More" : "0" } } @@ -50,7 +51,7 @@ "provides" : { "File::Slurp::Tiny" : { "file" : "lib/File/Slurp/Tiny.pm", - "version" : "0.003" + "version" : "0.004" } }, "release_status" : "stable", @@ -65,6 +66,10 @@ "web" : "https://github.com/Leont/file-slurp-tiny" } }, - "version" : "0.003" + "version" : "0.004", + "x_contributors" : [ + "Leon Timmermans ", + "Matt Phillips " + ] } diff -Nru libfile-slurp-tiny-perl-0.003/META.yml libfile-slurp-tiny-perl-0.004/META.yml --- libfile-slurp-tiny-perl-0.003/META.yml 2014-01-20 23:03:03.000000000 +0000 +++ libfile-slurp-tiny-perl-0.004/META.yml 2015-07-15 14:51:55.000000000 +0000 @@ -1,35 +1,35 @@ --- -abstract: 'A simple, sane and efficient file slurper' +abstract: 'A simple, sane and efficient file slurper [DISCOURAGED]' author: - 'Leon Timmermans ' build_requires: - File::Spec: 0 - File::Temp: 0 - IO::Handle: 0 - IPC::Open3: 0 - Test::More: 0 + File::Temp: '0' + Test::More: '0' configure_requires: - ExtUtils::MakeMaker: 6.30 + ExtUtils::MakeMaker: '0' dynamic_config: 0 -generated_by: 'Dist::Zilla version 5.011, CPAN::Meta::Converter version 2.132830' +generated_by: 'Dist::Zilla version 5.025, CPAN::Meta::Converter version 2.143240' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html - version: 1.4 + version: '1.4' name: File-Slurp-Tiny provides: File::Slurp::Tiny: file: lib/File/Slurp/Tiny.pm - version: 0.003 + version: '0.004' requires: - Carp: 0 - Exporter: 5.57 - File::Spec::Functions: 0 - FileHandle: 0 - perl: 5.008001 - strict: 0 - warnings: 0 + Carp: '0' + Exporter: '5.57' + File::Spec::Functions: '0' + FileHandle: '0' + perl: '5.008001' + strict: '0' + warnings: '0' resources: bugtracker: http://rt.cpan.org/Public/Dist/Display.html?Name=File-Slurp-Tiny repository: git://github.com/Leont/file-slurp-tiny.git -version: 0.003 +version: '0.004' +x_contributors: + - 'Leon Timmermans ' + - 'Matt Phillips ' diff -Nru libfile-slurp-tiny-perl-0.003/README libfile-slurp-tiny-perl-0.004/README --- libfile-slurp-tiny-perl-0.003/README 2014-01-20 23:03:03.000000000 +0000 +++ libfile-slurp-tiny-perl-0.004/README 2015-07-15 14:51:55.000000000 +0000 @@ -1,9 +1,9 @@ This archive contains the distribution File-Slurp-Tiny, -version 0.003: +version 0.004: - A simple, sane and efficient file slurper + A simple, sane and efficient file slurper [DISCOURAGED] This software is copyright (c) 2013 by Leon Timmermans. @@ -11,5 +11,5 @@ the same terms as the Perl 5 programming language system itself. -This README file was generated by Dist::Zilla::Plugin::Readme v5.011. +This README file was generated by Dist::Zilla::Plugin::Readme v5.025. diff -Nru libfile-slurp-tiny-perl-0.003/t/00-compile.t libfile-slurp-tiny-perl-0.004/t/00-compile.t --- libfile-slurp-tiny-perl-0.003/t/00-compile.t 2014-01-20 23:03:03.000000000 +0000 +++ libfile-slurp-tiny-perl-0.004/t/00-compile.t 1970-01-01 00:00:00.000000000 +0000 @@ -1,48 +0,0 @@ -use strict; -use warnings; - -# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.036 - -use Test::More tests => 1 + ($ENV{AUTHOR_TESTING} ? 1 : 0); - - - -my @module_files = ( - 'File/Slurp/Tiny.pm' -); - - - -# no fake home requested - -my $inc_switch = q[-Mblib]; - -use File::Spec; -use IPC::Open3; -use IO::Handle; - -my @warnings; -for my $lib (@module_files) -{ - # see L - open my $stdin, '<', File::Spec->devnull or die "can't open devnull: $!"; - my $stderr = IO::Handle->new; - - my $pid = open3($stdin, '>&STDERR', $stderr, $^X, $inc_switch, '-e', "require q[$lib]"); - binmode $stderr, ':crlf' if $^O eq 'MSWin32'; - my @_warnings = <$stderr>; - waitpid($pid, 0); - is($?, 0, "$lib loaded ok"); - - if (@_warnings) - { - warn @_warnings; - push @warnings, @_warnings; - } -} - - - -is(scalar(@warnings), 0, 'no warnings found') if $ENV{AUTHOR_TESTING}; - - diff -Nru libfile-slurp-tiny-perl-0.003/t/release-pod-coverage.t libfile-slurp-tiny-perl-0.004/t/release-pod-coverage.t --- libfile-slurp-tiny-perl-0.003/t/release-pod-coverage.t 2014-01-20 23:03:03.000000000 +0000 +++ libfile-slurp-tiny-perl-0.004/t/release-pod-coverage.t 1970-01-01 00:00:00.000000000 +0000 @@ -1,22 +0,0 @@ -#!perl - -BEGIN { - unless ($ENV{RELEASE_TESTING}) { - require Test::More; - Test::More::plan(skip_all => 'these tests are for release candidate testing'); - } -} - -# This file was automatically generated by Dist::Zilla::Plugin::PodCoverageTests. - -use Test::More; - -eval "use Test::Pod::Coverage 1.08"; -plan skip_all => "Test::Pod::Coverage 1.08 required for testing POD coverage" - if $@; - -eval "use Pod::Coverage::TrustPod"; -plan skip_all => "Pod::Coverage::TrustPod required for testing POD coverage" - if $@; - -all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' }); diff -Nru libfile-slurp-tiny-perl-0.003/t/release-pod-syntax.t libfile-slurp-tiny-perl-0.004/t/release-pod-syntax.t --- libfile-slurp-tiny-perl-0.003/t/release-pod-syntax.t 2014-01-20 23:03:03.000000000 +0000 +++ libfile-slurp-tiny-perl-0.004/t/release-pod-syntax.t 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -#!perl - -BEGIN { - unless ($ENV{RELEASE_TESTING}) { - require Test::More; - Test::More::plan(skip_all => 'these tests are for release candidate testing'); - } -} - -# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. -use Test::More; - -eval "use Test::Pod 1.41"; -plan skip_all => "Test::Pod 1.41 required for testing POD" if $@; - -all_pod_files_ok(); diff -Nru libfile-slurp-tiny-perl-0.003/weaver.ini libfile-slurp-tiny-perl-0.004/weaver.ini --- libfile-slurp-tiny-perl-0.003/weaver.ini 1970-01-01 00:00:00.000000000 +0000 +++ libfile-slurp-tiny-perl-0.004/weaver.ini 2015-07-15 14:51:55.000000000 +0000 @@ -0,0 +1,29 @@ +[@CorePrep] + +[-SingleEncoding] + +[Name] +[Version] + +[Region / prelude] + +[Generic / SYNOPSIS] +[Generic / DISCOURAGED] +[Generic / DESCRIPTION] +[Generic / OVERVIEW] + +[Collect / ATTRIBUTES] +command = attr + +[Collect / METHODS] +command = method + +[Collect / FUNCTIONS] +command = func + +[Leftovers] + +[Region / postlude] + +[Authors] +[Legal] diff -Nru libfile-slurp-tiny-perl-0.003/xt/author/00-compile.t libfile-slurp-tiny-perl-0.004/xt/author/00-compile.t --- libfile-slurp-tiny-perl-0.003/xt/author/00-compile.t 1970-01-01 00:00:00.000000000 +0000 +++ libfile-slurp-tiny-perl-0.004/xt/author/00-compile.t 2015-07-15 14:51:55.000000000 +0000 @@ -0,0 +1,51 @@ +use 5.006; +use strict; +use warnings; + +# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.051 + +use Test::More; + +plan tests => 1 + ($ENV{AUTHOR_TESTING} ? 1 : 0); + +my @module_files = ( + 'File/Slurp/Tiny.pm' +); + + + +# no fake home requested + +my $inc_switch = -d 'blib' ? '-Mblib' : '-Ilib'; + +use File::Spec; +use IPC::Open3; +use IO::Handle; + +open my $stdin, '<', File::Spec->devnull or die "can't open devnull: $!"; + +my @warnings; +for my $lib (@module_files) +{ + # see L + my $stderr = IO::Handle->new; + + my $pid = open3($stdin, '>&STDERR', $stderr, $^X, $inc_switch, '-e', "require q[$lib]"); + binmode $stderr, ':crlf' if $^O eq 'MSWin32'; + my @_warnings = <$stderr>; + waitpid($pid, 0); + is($?, 0, "$lib loaded ok"); + + if (@_warnings) + { + warn @_warnings; + push @warnings, @_warnings; + } +} + + + +is(scalar(@warnings), 0, 'no warnings found') + or diag 'got warnings: ', ( Test::More->can('explain') ? Test::More::explain(\@warnings) : join("\n", '', @warnings) ) if $ENV{AUTHOR_TESTING}; + + diff -Nru libfile-slurp-tiny-perl-0.003/xt/release/pod-coverage.t libfile-slurp-tiny-perl-0.004/xt/release/pod-coverage.t --- libfile-slurp-tiny-perl-0.003/xt/release/pod-coverage.t 1970-01-01 00:00:00.000000000 +0000 +++ libfile-slurp-tiny-perl-0.004/xt/release/pod-coverage.t 2015-07-15 14:51:55.000000000 +0000 @@ -0,0 +1,7 @@ +#!perl +# This file was automatically generated by Dist::Zilla::Plugin::PodCoverageTests. + +use Test::Pod::Coverage 1.08; +use Pod::Coverage::TrustPod; + +all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' }); diff -Nru libfile-slurp-tiny-perl-0.003/xt/release/pod-syntax.t libfile-slurp-tiny-perl-0.004/xt/release/pod-syntax.t --- libfile-slurp-tiny-perl-0.003/xt/release/pod-syntax.t 1970-01-01 00:00:00.000000000 +0000 +++ libfile-slurp-tiny-perl-0.004/xt/release/pod-syntax.t 2015-07-15 14:51:55.000000000 +0000 @@ -0,0 +1,6 @@ +#!perl +# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. +use Test::More; +use Test::Pod 1.41; + +all_pod_files_ok();