Hello community,
here is the log from the commit of package perl-Mixin-Linewise for
openSUSE:Factory checked in at 2013-11-26 19:26:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Mixin-Linewise (Old)
and /work/SRC/openSUSE:Factory/.perl-Mixin-Linewise.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Mixin-Linewise"
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Mixin-Linewise/perl-Mixin-Linewise.changes
2013-07-30 16:45:20.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.perl-Mixin-Linewise.new/perl-Mixin-Linewise.changes
2013-11-26 19:26:44.000000000 +0100
@@ -1,0 +2,13 @@
+Mon Nov 25 07:36:06 UTC 2013 - [email protected]
+
+- updated to 0.102
+ - revert the IO::String changes found in 0.101
+
+ [THIS MIGHT BREAK YOUR CODE]
+ - tweak how read_string handles non-ASCII strings; needs further
+ automated testing, so be sure to run your test suites
+ - add binmode option to set binmode on opened filehandles; this
+ defaults to encoding(UTF-8); thanks, David Golden!
+ - typo fix by the inimitable David Steinbrunner
+
+-------------------------------------------------------------------
Old:
----
Mixin-Linewise-0.004.tar.gz
New:
----
Mixin-Linewise-0.102.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Mixin-Linewise.spec ++++++
--- /var/tmp/diff_new_pack.kYLOoN/_old 2013-11-26 19:26:45.000000000 +0100
+++ /var/tmp/diff_new_pack.kYLOoN/_new 2013-11-26 19:26:45.000000000 +0100
@@ -17,7 +17,7 @@
Name: perl-Mixin-Linewise
-Version: 0.004
+Version: 0.102
Release: 0
%define cpan_name Mixin-Linewise
Summary: write your linewise code for handles; this does the rest
++++++ Mixin-Linewise-0.004.tar.gz -> Mixin-Linewise-0.102.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Mixin-Linewise-0.004/Changes
new/Mixin-Linewise-0.102/Changes
--- old/Mixin-Linewise-0.004/Changes 2013-06-18 23:30:33.000000000 +0200
+++ new/Mixin-Linewise-0.102/Changes 2013-11-02 16:36:25.000000000 +0100
@@ -1,5 +1,19 @@
Changelog for Mixin-Linewise
+0.102 2013-11-02 11:36:22 America/New_York
+ - revert the IO::String changes found in 0.101
+
+0.101 2013-11-02 08:00:43 America/New_York
+ [THIS MIGHT BREAK YOUR CODE]
+ - tweak how read_string handles non-ASCII strings; needs further
+ automated testing, so be sure to run your test suites
+
+0.100 2013-10-18 15:55:59 America/New_York (TRIAL RELEASE)
+ [THIS MIGHT BREAK YOUR CODE]
+ - add binmode option to set binmode on opened filehandles; this
+ defaults to encoding(UTF-8); thanks, David Golden!
+ - typo fix by the inimitable David Steinbrunner
+
0.004 2013-06-18 17:30:31 America/New_York
repackage
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Mixin-Linewise-0.004/MANIFEST
new/Mixin-Linewise-0.102/MANIFEST
--- old/Mixin-Linewise-0.004/MANIFEST 2013-06-18 23:30:33.000000000 +0200
+++ new/Mixin-Linewise-0.102/MANIFEST 2013-11-02 16:36:25.000000000 +0100
@@ -9,10 +9,11 @@
lib/Mixin/Linewise.pm
lib/Mixin/Linewise/Readers.pm
lib/Mixin/Linewise/Writers.pm
-t/00-compile.t
t/000-report-versions-tiny.t
t/data.txt
+t/encoding.t
t/lib/MLTests.pm
t/reader.t
+t/utf8.txt
xt/release/changes_has_content.t
xt/release/pod-syntax.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Mixin-Linewise-0.004/META.json
new/Mixin-Linewise-0.102/META.json
--- old/Mixin-Linewise-0.004/META.json 2013-06-18 23:30:33.000000000 +0200
+++ new/Mixin-Linewise-0.102/META.json 2013-11-02 16:36:25.000000000 +0100
@@ -4,7 +4,7 @@
"Ricardo SIGNES <[email protected]>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 4.300034, CPAN::Meta::Converter
version 2.131560",
+ "generated_by" : "Dist::Zilla version 5.004, CPAN::Meta::Converter version
2.132830",
"license" : [
"perl_5"
],
@@ -31,42 +31,42 @@
"IO::File" : "0",
"IO::String" : "0",
"Sub::Exporter" : "0",
- "perl" : "5.006",
+ "perl" : "v5.8.1",
"strict" : "0",
"warnings" : "0"
}
},
"test" : {
"requires" : {
- "File::Find" : "0",
- "File::Temp" : "0",
+ "Encode" : "0",
"Test::More" : "0.96",
- "lib" : "0"
+ "lib" : "0",
+ "utf8" : "0"
}
}
},
"release_status" : "stable",
"resources" : {
"bugtracker" : {
- "web" : "https://github.com/rjbs/mixin-linewise/issues"
+ "web" : "https://github.com/rjbs/Mixin-Linewise/issues"
},
- "homepage" : "https://github.com/rjbs/mixin-linewise",
+ "homepage" : "https://github.com/rjbs/Mixin-Linewise",
"repository" : {
"type" : "git",
- "url" : "https://github.com/rjbs/mixin-linewise.git",
- "web" : "https://github.com/rjbs/mixin-linewise"
+ "url" : "https://github.com/rjbs/Mixin-Linewise.git",
+ "web" : "https://github.com/rjbs/Mixin-Linewise"
}
},
- "version" : "0.004",
+ "version" : "0.102",
"x_Dist_Zilla" : {
"perl" : {
- "version" : "5.019000"
+ "version" : "5.019005"
},
"plugins" : [
{
"class" : "Dist::Zilla::Plugin::Git::GatherDir",
"name" : "@RJBS/Git::GatherDir",
- "version" : "2.013"
+ "version" : "2.017"
},
{
"class" : "Dist::Zilla::Plugin::CheckPrereqsIndexed",
@@ -76,97 +76,107 @@
{
"class" : "Dist::Zilla::Plugin::CheckExtraTests",
"name" : "@RJBS/CheckExtraTests",
- "version" : "0.011"
+ "version" : "0.015"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::PromptIfStale",
+ "name" : "@RJBS/RJBS-Outdated",
+ "version" : "0.008"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::PromptIfStale",
+ "name" : "@RJBS/CPAN-Outdated",
+ "version" : "0.008"
},
{
"class" : "Dist::Zilla::Plugin::PruneCruft",
"name" : "@RJBS/@Filter/PruneCruft",
- "version" : "4.300034"
+ "version" : "5.004"
},
{
"class" : "Dist::Zilla::Plugin::ManifestSkip",
"name" : "@RJBS/@Filter/ManifestSkip",
- "version" : "4.300034"
+ "version" : "5.004"
},
{
"class" : "Dist::Zilla::Plugin::MetaYAML",
"name" : "@RJBS/@Filter/MetaYAML",
- "version" : "4.300034"
+ "version" : "5.004"
},
{
"class" : "Dist::Zilla::Plugin::License",
"name" : "@RJBS/@Filter/License",
- "version" : "4.300034"
+ "version" : "5.004"
},
{
"class" : "Dist::Zilla::Plugin::Readme",
"name" : "@RJBS/@Filter/Readme",
- "version" : "4.300034"
+ "version" : "5.004"
},
{
"class" : "Dist::Zilla::Plugin::ExecDir",
"name" : "@RJBS/@Filter/ExecDir",
- "version" : "4.300034"
+ "version" : "5.004"
},
{
"class" : "Dist::Zilla::Plugin::ShareDir",
"name" : "@RJBS/@Filter/ShareDir",
- "version" : "4.300034"
+ "version" : "5.004"
},
{
"class" : "Dist::Zilla::Plugin::MakeMaker",
"name" : "@RJBS/@Filter/MakeMaker",
- "version" : "4.300034"
+ "version" : "5.004"
},
{
"class" : "Dist::Zilla::Plugin::Manifest",
"name" : "@RJBS/@Filter/Manifest",
- "version" : "4.300034"
+ "version" : "5.004"
},
{
"class" : "Dist::Zilla::Plugin::TestRelease",
"name" : "@RJBS/@Filter/TestRelease",
- "version" : "4.300034"
+ "version" : "5.004"
},
{
"class" : "Dist::Zilla::Plugin::ConfirmRelease",
"name" : "@RJBS/@Filter/ConfirmRelease",
- "version" : "4.300034"
+ "version" : "5.004"
},
{
"class" : "Dist::Zilla::Plugin::UploadToCPAN",
"name" : "@RJBS/@Filter/UploadToCPAN",
- "version" : "4.300034"
+ "version" : "5.004"
},
{
"class" : "Dist::Zilla::Plugin::AutoPrereqs",
"name" : "@RJBS/AutoPrereqs",
- "version" : "4.300034"
+ "version" : "5.004"
},
{
"class" : "Dist::Zilla::Plugin::Git::NextVersion",
"name" : "@RJBS/Git::NextVersion",
- "version" : "2.013"
+ "version" : "2.017"
},
{
"class" : "Dist::Zilla::Plugin::PkgVersion",
"name" : "@RJBS/PkgVersion",
- "version" : "4.300034"
+ "version" : "5.004"
},
{
"class" : "Dist::Zilla::Plugin::MetaConfig",
"name" : "@RJBS/MetaConfig",
- "version" : "4.300034"
+ "version" : "5.004"
},
{
"class" : "Dist::Zilla::Plugin::MetaJSON",
"name" : "@RJBS/MetaJSON",
- "version" : "4.300034"
+ "version" : "5.004"
},
{
"class" : "Dist::Zilla::Plugin::NextRelease",
"name" : "@RJBS/NextRelease",
- "version" : "4.300034"
+ "version" : "5.004"
},
{
"class" : "Dist::Zilla::Plugin::Test::ChangesHasContent",
@@ -176,17 +186,12 @@
{
"class" : "Dist::Zilla::Plugin::PodSyntaxTests",
"name" : "@RJBS/PodSyntaxTests",
- "version" : "4.300034"
+ "version" : "5.004"
},
{
"class" : "Dist::Zilla::Plugin::ReportVersions::Tiny",
"name" : "@RJBS/ReportVersions::Tiny",
- "version" : "1.08"
- },
- {
- "class" : "Dist::Zilla::Plugin::Test::Compile",
- "name" : "@RJBS/Test::Compile",
- "version" : "2.002"
+ "version" : "1.10"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
@@ -197,67 +202,76 @@
}
},
"name" : "@RJBS/TestMoreWithSubtests",
- "version" : "4.300034"
+ "version" : "5.004"
},
{
"class" : "Dist::Zilla::Plugin::PodWeaver",
+ "config" : {
+ "Dist::Zilla::Plugin::PodWeaver" : {
+ "config_plugin" : "@RJBS",
+ "finder" : [
+ ":InstallModules",
+ ":ExecFiles"
+ ]
+ }
+ },
"name" : "@RJBS/PodWeaver",
- "version" : "3.101641"
+ "version" : "3.102000"
},
{
"class" : "Dist::Zilla::Plugin::GithubMeta",
"name" : "@RJBS/GithubMeta",
- "version" : "0.28"
+ "version" : "0.42"
},
{
"class" : "Dist::Zilla::Plugin::Git::Check",
"name" : "@RJBS/@Git/Check",
- "version" : "2.013"
+ "version" : "2.017"
},
{
"class" : "Dist::Zilla::Plugin::Git::Commit",
"name" : "@RJBS/@Git/Commit",
- "version" : "2.013"
+ "version" : "2.017"
},
{
"class" : "Dist::Zilla::Plugin::Git::Tag",
"name" : "@RJBS/@Git/Tag",
- "version" : "2.013"
+ "version" : "2.017"
},
{
"class" : "Dist::Zilla::Plugin::Git::Push",
"name" : "@RJBS/@Git/Push",
- "version" : "2.013"
+ "version" : "2.017"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":InstallModules",
- "version" : "4.300034"
+ "version" : "5.004"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":IncModules",
- "version" : "4.300034"
+ "version" : "5.004"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":TestFiles",
- "version" : "4.300034"
+ "version" : "5.004"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ExecFiles",
- "version" : "4.300034"
+ "version" : "5.004"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ShareFiles",
- "version" : "4.300034"
+ "version" : "5.004"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":MainModule",
- "version" : "4.300034"
+ "version" : "5.004"
}
],
"zilla" : {
@@ -265,7 +279,7 @@
"config" : {
"is_trial" : "0"
},
- "version" : "4.300034"
+ "version" : "5.004"
}
}
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Mixin-Linewise-0.004/META.yml
new/Mixin-Linewise-0.102/META.yml
--- old/Mixin-Linewise-0.004/META.yml 2013-06-18 23:30:33.000000000 +0200
+++ new/Mixin-Linewise-0.102/META.yml 2013-11-02 16:36:25.000000000 +0100
@@ -3,14 +3,14 @@
author:
- 'Ricardo SIGNES <[email protected]>'
build_requires:
- File::Find: 0
- File::Temp: 0
+ Encode: 0
Test::More: 0.96
lib: 0
+ utf8: 0
configure_requires:
ExtUtils::MakeMaker: 6.30
dynamic_config: 0
-generated_by: 'Dist::Zilla version 4.300034, CPAN::Meta::Converter version
2.131560'
+generated_by: 'Dist::Zilla version 5.004, CPAN::Meta::Converter version
2.132830'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -21,22 +21,22 @@
IO::File: 0
IO::String: 0
Sub::Exporter: 0
- perl: 5.006
+ perl: v5.8.1
strict: 0
warnings: 0
resources:
- bugtracker: https://github.com/rjbs/mixin-linewise/issues
- homepage: https://github.com/rjbs/mixin-linewise
- repository: https://github.com/rjbs/mixin-linewise.git
-version: 0.004
+ bugtracker: https://github.com/rjbs/Mixin-Linewise/issues
+ homepage: https://github.com/rjbs/Mixin-Linewise
+ repository: https://github.com/rjbs/Mixin-Linewise.git
+version: 0.102
x_Dist_Zilla:
perl:
- version: 5.019000
+ version: 5.019005
plugins:
-
class: Dist::Zilla::Plugin::Git::GatherDir
name: '@RJBS/Git::GatherDir'
- version: 2.013
+ version: 2.017
-
class: Dist::Zilla::Plugin::CheckPrereqsIndexed
name: '@RJBS/CheckPrereqsIndexed'
@@ -44,79 +44,87 @@
-
class: Dist::Zilla::Plugin::CheckExtraTests
name: '@RJBS/CheckExtraTests'
- version: 0.011
+ version: 0.015
+ -
+ class: Dist::Zilla::Plugin::PromptIfStale
+ name: '@RJBS/RJBS-Outdated'
+ version: 0.008
+ -
+ class: Dist::Zilla::Plugin::PromptIfStale
+ name: '@RJBS/CPAN-Outdated'
+ version: 0.008
-
class: Dist::Zilla::Plugin::PruneCruft
name: '@RJBS/@Filter/PruneCruft'
- version: 4.300034
+ version: 5.004
-
class: Dist::Zilla::Plugin::ManifestSkip
name: '@RJBS/@Filter/ManifestSkip'
- version: 4.300034
+ version: 5.004
-
class: Dist::Zilla::Plugin::MetaYAML
name: '@RJBS/@Filter/MetaYAML'
- version: 4.300034
+ version: 5.004
-
class: Dist::Zilla::Plugin::License
name: '@RJBS/@Filter/License'
- version: 4.300034
+ version: 5.004
-
class: Dist::Zilla::Plugin::Readme
name: '@RJBS/@Filter/Readme'
- version: 4.300034
+ version: 5.004
-
class: Dist::Zilla::Plugin::ExecDir
name: '@RJBS/@Filter/ExecDir'
- version: 4.300034
+ version: 5.004
-
class: Dist::Zilla::Plugin::ShareDir
name: '@RJBS/@Filter/ShareDir'
- version: 4.300034
+ version: 5.004
-
class: Dist::Zilla::Plugin::MakeMaker
name: '@RJBS/@Filter/MakeMaker'
- version: 4.300034
+ version: 5.004
-
class: Dist::Zilla::Plugin::Manifest
name: '@RJBS/@Filter/Manifest'
- version: 4.300034
+ version: 5.004
-
class: Dist::Zilla::Plugin::TestRelease
name: '@RJBS/@Filter/TestRelease'
- version: 4.300034
+ version: 5.004
-
class: Dist::Zilla::Plugin::ConfirmRelease
name: '@RJBS/@Filter/ConfirmRelease'
- version: 4.300034
+ version: 5.004
-
class: Dist::Zilla::Plugin::UploadToCPAN
name: '@RJBS/@Filter/UploadToCPAN'
- version: 4.300034
+ version: 5.004
-
class: Dist::Zilla::Plugin::AutoPrereqs
name: '@RJBS/AutoPrereqs'
- version: 4.300034
+ version: 5.004
-
class: Dist::Zilla::Plugin::Git::NextVersion
name: '@RJBS/Git::NextVersion'
- version: 2.013
+ version: 2.017
-
class: Dist::Zilla::Plugin::PkgVersion
name: '@RJBS/PkgVersion'
- version: 4.300034
+ version: 5.004
-
class: Dist::Zilla::Plugin::MetaConfig
name: '@RJBS/MetaConfig'
- version: 4.300034
+ version: 5.004
-
class: Dist::Zilla::Plugin::MetaJSON
name: '@RJBS/MetaJSON'
- version: 4.300034
+ version: 5.004
-
class: Dist::Zilla::Plugin::NextRelease
name: '@RJBS/NextRelease'
- version: 4.300034
+ version: 5.004
-
class: Dist::Zilla::Plugin::Test::ChangesHasContent
name: '@RJBS/Test::ChangesHasContent'
@@ -124,15 +132,11 @@
-
class: Dist::Zilla::Plugin::PodSyntaxTests
name: '@RJBS/PodSyntaxTests'
- version: 4.300034
+ version: 5.004
-
class: Dist::Zilla::Plugin::ReportVersions::Tiny
name: '@RJBS/ReportVersions::Tiny'
- version: 1.08
- -
- class: Dist::Zilla::Plugin::Test::Compile
- name: '@RJBS/Test::Compile'
- version: 2.002
+ version: 1.10
-
class: Dist::Zilla::Plugin::Prereqs
config:
@@ -140,57 +144,63 @@
phase: test
type: requires
name: '@RJBS/TestMoreWithSubtests'
- version: 4.300034
+ version: 5.004
-
class: Dist::Zilla::Plugin::PodWeaver
+ config:
+ Dist::Zilla::Plugin::PodWeaver:
+ config_plugin: '@RJBS'
+ finder:
+ - ':InstallModules'
+ - ':ExecFiles'
name: '@RJBS/PodWeaver'
- version: 3.101641
+ version: 3.102000
-
class: Dist::Zilla::Plugin::GithubMeta
name: '@RJBS/GithubMeta'
- version: 0.28
+ version: 0.42
-
class: Dist::Zilla::Plugin::Git::Check
name: '@RJBS/@Git/Check'
- version: 2.013
+ version: 2.017
-
class: Dist::Zilla::Plugin::Git::Commit
name: '@RJBS/@Git/Commit'
- version: 2.013
+ version: 2.017
-
class: Dist::Zilla::Plugin::Git::Tag
name: '@RJBS/@Git/Tag'
- version: 2.013
+ version: 2.017
-
class: Dist::Zilla::Plugin::Git::Push
name: '@RJBS/@Git/Push'
- version: 2.013
+ version: 2.017
-
class: Dist::Zilla::Plugin::FinderCode
name: ':InstallModules'
- version: 4.300034
+ version: 5.004
-
class: Dist::Zilla::Plugin::FinderCode
name: ':IncModules'
- version: 4.300034
+ version: 5.004
-
class: Dist::Zilla::Plugin::FinderCode
name: ':TestFiles'
- version: 4.300034
+ version: 5.004
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ExecFiles'
- version: 4.300034
+ version: 5.004
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ShareFiles'
- version: 4.300034
+ version: 5.004
-
class: Dist::Zilla::Plugin::FinderCode
name: ':MainModule'
- version: 4.300034
+ version: 5.004
zilla:
class: Dist::Zilla::Dist::Builder
config:
is_trial: 0
- version: 4.300034
+ version: 5.004
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Mixin-Linewise-0.004/Makefile.PL
new/Mixin-Linewise-0.102/Makefile.PL
--- old/Mixin-Linewise-0.004/Makefile.PL 2013-06-18 23:30:33.000000000
+0200
+++ new/Mixin-Linewise-0.102/Makefile.PL 2013-11-02 16:36:25.000000000
+0100
@@ -2,7 +2,7 @@
use strict;
use warnings;
-use 5.006;
+use 5.008001;
use ExtUtils::MakeMaker 6.30;
@@ -28,42 +28,36 @@
"warnings" => 0
},
"TEST_REQUIRES" => {
- "File::Find" => 0,
- "File::Temp" => 0,
+ "Encode" => 0,
"Test::More" => "0.96",
- "lib" => 0
+ "lib" => 0,
+ "utf8" => 0
},
- "VERSION" => "0.004",
+ "VERSION" => "0.102",
"test" => {
"TESTS" => "t/*.t"
}
);
-unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
- my $tr = delete $WriteMakefileArgs{TEST_REQUIRES};
- my $br = $WriteMakefileArgs{BUILD_REQUIRES};
- for my $mod ( keys %$tr ) {
- if ( exists $br->{$mod} ) {
- $br->{$mod} = $tr->{$mod} if $tr->{$mod} > $br->{$mod};
- }
- else {
- $br->{$mod} = $tr->{$mod};
- }
- }
-}
+my %FallbackPrereqs = (
+ "Carp" => 0,
+ "Encode" => 0,
+ "IO::File" => 0,
+ "IO::String" => 0,
+ "Sub::Exporter" => 0,
+ "Test::More" => "0.96",
+ "lib" => 0,
+ "strict" => 0,
+ "utf8" => 0,
+ "warnings" => 0
+);
-unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) {
- my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
- my $pp = $WriteMakefileArgs{PREREQ_PM};
- for my $mod ( keys %$br ) {
- if ( exists $pp->{$mod} ) {
- $pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod};
- }
- else {
- $pp->{$mod} = $br->{$mod};
- }
- }
+
+unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
+ delete $WriteMakefileArgs{TEST_REQUIRES};
+ delete $WriteMakefileArgs{BUILD_REQUIRES};
+ $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}
delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Mixin-Linewise-0.004/README
new/Mixin-Linewise-0.102/README
--- old/Mixin-Linewise-0.004/README 2013-06-18 23:30:33.000000000 +0200
+++ new/Mixin-Linewise-0.102/README 2013-11-02 16:36:25.000000000 +0100
@@ -1,7 +1,7 @@
This archive contains the distribution Mixin-Linewise,
-version 0.004:
+version 0.102:
write your linewise code for handles; this does the rest
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Mixin-Linewise-0.004/lib/Mixin/Linewise/Readers.pm
new/Mixin-Linewise-0.102/lib/Mixin/Linewise/Readers.pm
--- old/Mixin-Linewise-0.004/lib/Mixin/Linewise/Readers.pm 2013-06-18
23:30:33.000000000 +0200
+++ new/Mixin-Linewise-0.102/lib/Mixin/Linewise/Readers.pm 2013-11-02
16:36:25.000000000 +0100
@@ -2,10 +2,11 @@
use warnings;
package Mixin::Linewise::Readers;
{
- $Mixin::Linewise::Readers::VERSION = '0.004';
+ $Mixin::Linewise::Readers::VERSION = '0.102';
}
# ABSTRACT: get linewise readers for strings and filenames
+use 5.8.1; # PerlIO
use Carp ();
use IO::File;
use IO::String;
@@ -23,16 +24,27 @@
my ($self, $name, $arg) = @_;
my $method = defined $arg->{method} ? $arg->{method} : 'read_handle';
+ my $dflt_enc = defined $arg->{binmode} ? $arg->{binmode} : 'encoding(UTF-8)';
sub {
- my ($invocant, $filename) = splice @_, 0, 2;
+ my ($invocant, $options, $filename);
+ if ( ref $_[1] eq 'HASH' ) {
+ # got options before filename
+ ($invocant, $options, $filename) = splice @_, 0, 3;
+ }
+ else {
+ ($invocant, $filename) = splice @_, 0, 2;
+ }
+
+ $options->{binmode} = $dflt_enc unless defined $options->{binmode};
+ $options->{binmode} =~ s/^://; # we add it later
# Check the file
Carp::croak "no filename specified" unless $filename;
Carp::croak "file '$filename' does not exist" unless -e $filename;
Carp::croak "'$filename' is not a plain file" unless -f _;
- my $handle = IO::File->new($filename, '<')
+ my $handle = IO::File->new($filename, "<:$options->{binmode}")
or Carp::croak "couldn't read file '$filename': $!";
$invocant->$method($handle, @_);
@@ -68,7 +80,7 @@
=head1 VERSION
-version 0.004
+version 0.102
=head1 SYNOPSIS
@@ -105,13 +117,24 @@
Both can be generated with the option "method" which requests that a method
other than "read_handle" is called with the created IO::Handle.
+If given a "binmode" option, any C<read_file> type functions will use
+that as an IO layer, otherwise, the default is C<encoding(UTF-8)>.
+
+ use Mixin::Linewise::Readers -readers => { binmode => "raw" };
+ use Mixin::Linewise::Readers -readers => { binmode => "encoding(iso-8859-1)"
};
+
=head2 read_file
Your::Pkg->read_file($filename);
+ Your::Pkg->read_file($options, $filename);
If generated, the C<read_file> export attempts to open the named file for
reading, and then calls C<read_handle> on the opened handle.
+An optional hash reference may be passed before C<$filename> with options.
+The only valid option currently is C<binmode>, which overrides any
+default set from C<use> or the built-in C<encoding(UTF-8)>.
+
Any arguments after C<$filename> are passed along after to C<read_handle>.
=head2 read_string
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Mixin-Linewise-0.004/lib/Mixin/Linewise/Writers.pm
new/Mixin-Linewise-0.102/lib/Mixin/Linewise/Writers.pm
--- old/Mixin-Linewise-0.004/lib/Mixin/Linewise/Writers.pm 2013-06-18
23:30:33.000000000 +0200
+++ new/Mixin-Linewise-0.102/lib/Mixin/Linewise/Writers.pm 2013-11-02
16:36:25.000000000 +0100
@@ -2,10 +2,11 @@
use warnings;
package Mixin::Linewise::Writers;
{
- $Mixin::Linewise::Writers::VERSION = '0.004';
+ $Mixin::Linewise::Writers::VERSION = '0.102';
}
-# ABSTRACT: get linewise writeers for strings and filenames
+# ABSTRACT: get linewise writers for strings and filenames
+use 5.8.1; # PerlIO
use Carp ();
use IO::File;
use IO::String;
@@ -22,16 +23,27 @@
sub _mk_write_file {
my ($self, $name, $arg) = @_;
my $method = defined $arg->{method} ? $arg->{method} : 'write_handle';
+ my $dflt_enc = defined $arg->{binmode} ? $arg->{binmode} : 'encoding(UTF-8)';
sub {
- my ($invocant, $data, $filename) = splice @_, 0, 3;
+ my ($invocant, $data, $options, $filename);
+ if ( ref $_[2] eq 'HASH' ) {
+ # got options before filename
+ ($invocant, $data, $options, $filename) = splice @_, 0, 4;
+ }
+ else {
+ ($invocant, $data, $filename) = splice @_, 0, 3;
+ }
+
+ $options->{binmode} = $dflt_enc unless defined $options->{binmode};
+ $options->{binmode} =~ s/^://; # we add it later
# Check the file
Carp::croak "no filename specified" unless $filename;
Carp::croak "'$filename' is not a plain file" if -e $filename && ! -f _;
# Write out the file
- my $handle = IO::File->new($filename, '>')
+ my $handle = IO::File->new($filename, ">:$options->{binmode}")
or Carp::croak "couldn't write to file '$filename': $!";
$invocant->write_handle($data, $handle, @_);
@@ -63,11 +75,11 @@
=head1 NAME
-Mixin::Linewise::Writers - get linewise writeers for strings and filenames
+Mixin::Linewise::Writers - get linewise writers for strings and filenames
=head1 VERSION
-version 0.004
+version 0.102
=head1 SYNOPSIS
@@ -100,13 +112,24 @@
Both can be generated with the option "method" which requests that a method
other than "write_handle" is called with the created IO::Handle.
+If given a "binmode" option, any C<write_file> type functions will use
+that as an IO layer, otherwise, the default is C<encoding(UTF-8)>.
+
+ use Mixin::Linewise::Writers -writers => { binmode => "raw" };
+ use Mixin::Linewise::Writers -writers => { binmode => "encoding(iso-8859-1)"
};
+
=head2 write_file
Your::Pkg->write_file($data, $filename);
+ Your::Pkg->write_file($data, $options, $filename);
This method will try to open a new file with the given name. It will then call
C<write_handle> with that handle.
+An optional hash reference may be passed before C<$filename> with options.
+The only valid option currently is C<binmode>, which overrides any
+default set from C<use> or the built-in C<encoding(UTF-8)>.
+
Any arguments after C<$filename> are passed along after to C<write_handle>.
=head2 write_string
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Mixin-Linewise-0.004/lib/Mixin/Linewise.pm
new/Mixin-Linewise-0.102/lib/Mixin/Linewise.pm
--- old/Mixin-Linewise-0.004/lib/Mixin/Linewise.pm 2013-06-18
23:30:33.000000000 +0200
+++ new/Mixin-Linewise-0.102/lib/Mixin/Linewise.pm 2013-11-02
16:36:25.000000000 +0100
@@ -2,7 +2,7 @@
use warnings;
package Mixin::Linewise;
{
- $Mixin::Linewise::VERSION = '0.004';
+ $Mixin::Linewise::VERSION = '0.102';
}
# ABSTRACT: write your linewise code for handles; this does the rest
use 5.006;
@@ -22,7 +22,7 @@
=head1 VERSION
-version 0.004
+version 0.102
=head1 DESCRIPTION
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Mixin-Linewise-0.004/t/00-compile.t
new/Mixin-Linewise-0.102/t/00-compile.t
--- old/Mixin-Linewise-0.004/t/00-compile.t 2013-06-18 23:30:33.000000000
+0200
+++ new/Mixin-Linewise-0.102/t/00-compile.t 1970-01-01 01:00:00.000000000
+0100
@@ -1,74 +0,0 @@
-#!perl
-
-use strict;
-use warnings;
-
-use Test::More;
-
-
-
-use File::Find;
-use File::Temp qw{ tempdir };
-
-my @modules;
-find(
- sub {
- return if $File::Find::name !~ /\.pm\z/;
- my $found = $File::Find::name;
- $found =~ s{^lib/}{};
- $found =~ s{[/\\]}{::}g;
- $found =~ s/\.pm$//;
- return if $found =~ /^Mixin::Linewise$/;
- push @modules, $found;
- },
- 'lib',
-);
-
-sub _find_scripts {
- my $dir = shift @_;
-
- my @found_scripts = ();
- find(
- sub {
- return unless -f;
- my $found = $File::Find::name;
- return if $found =~ /^Mixin::Linewise$/;
- open my $FH, '<', $_ or do {
- note( "Unable to open $found in ( $! ), skipping" );
- return;
- };
- my $shebang = <$FH>;
- return unless $shebang =~ /^#!.*?\bperl\b\s*$/;
- push @found_scripts, $found;
- },
- $dir,
- );
-
- return @found_scripts;
-}
-
-my @scripts;
-do { push @scripts, _find_scripts($_) if -d $_ }
- for qw{ bin script scripts };
-
-my $plan = scalar(@modules) + scalar(@scripts);
-$plan ? (plan tests => $plan) : (plan skip_all => "no tests to run");
-
-{
- # fake home for cpan-testers
- # no fake requested ## local $ENV{HOME} = tempdir( CLEANUP => 1 );
-
- like( qx{ $^X -Ilib -e "require $_; print '$_ ok'" }, qr/^\s*$_ ok/s, "$_
loaded ok" )
- for sort @modules;
-
- SKIP: {
- eval "use Test::Script 1.05; 1;";
- skip "Test::Script needed to test script compilation",
scalar(@scripts) if $@;
- foreach my $file ( @scripts ) {
- my $script = $file;
- $script =~ s!.*/!!;
- script_compiles( $file, "$script script compiles" );
- }
- }
-
-}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Mixin-Linewise-0.004/t/000-report-versions-tiny.t
new/Mixin-Linewise-0.102/t/000-report-versions-tiny.t
--- old/Mixin-Linewise-0.004/t/000-report-versions-tiny.t 2013-06-18
23:30:33.000000000 +0200
+++ new/Mixin-Linewise-0.102/t/000-report-versions-tiny.t 2013-11-02
16:36:25.000000000 +0100
@@ -9,11 +9,11 @@
END { $success && done_testing; }
# List our own version used to generate this
-my $v = "\nGenerated by Dist::Zilla::Plugin::ReportVersions::Tiny v1.08\n";
+my $v = "\nGenerated by Dist::Zilla::Plugin::ReportVersions::Tiny v1.10\n";
eval { # no excuses!
# report our Perl details
- my $want = '5.006';
+ my $want = 'v5.8.1';
$v .= "perl: $] (wanted $want) on $^O from $^X\n\n";
};
defined($@) and diag("$@");
@@ -49,17 +49,15 @@
}
eval { $v .= pmver('Carp','any version') };
+eval { $v .= pmver('Encode','any version') };
eval { $v .= pmver('ExtUtils::MakeMaker','6.30') };
-eval { $v .= pmver('File::Find','any version') };
-eval { $v .= pmver('File::Temp','any version') };
eval { $v .= pmver('IO::File','any version') };
eval { $v .= pmver('IO::String','any version') };
eval { $v .= pmver('Sub::Exporter','any version') };
eval { $v .= pmver('Test::More','0.96') };
-eval { $v .= pmver('Test::Pod','1.41') };
eval { $v .= pmver('lib','any version') };
eval { $v .= pmver('strict','any version') };
-eval { $v .= pmver('version','0.9901') };
+eval { $v .= pmver('utf8','any version') };
eval { $v .= pmver('warnings','any version') };
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Mixin-Linewise-0.004/t/encoding.t
new/Mixin-Linewise-0.102/t/encoding.t
--- old/Mixin-Linewise-0.004/t/encoding.t 1970-01-01 01:00:00.000000000
+0100
+++ new/Mixin-Linewise-0.102/t/encoding.t 2013-11-02 16:36:25.000000000
+0100
@@ -0,0 +1,34 @@
+use strict;
+use warnings;
+use Test::More 0.88;
+
+use utf8;
+use lib 't/lib';
+use MLTests;
+use Encode qw/encode_utf8/;
+
+my $builder = Test::More->builder;
+binmode $builder->output, ":utf8";
+binmode $builder->failure_output, ":utf8";
+binmode $builder->todo_output, ":utf8";
+
+my $name = "®icardo Sígnes";
+my $raw = encode_utf8($name);
+
+for my $pair (
+ [ file_utf8 => 't/utf8.txt' => $name ],
+ [ file_utf8 => 't/utf8.txt' => $raw => ":raw" ],
+ [ file_raw => 't/utf8.txt' => $raw ],
+) {
+ my ($suffix, $file, $expected, $enc) = @$pair;
+ my $options = $enc ? { binmode => $enc } : undef;
+ my $method = "read_$suffix";
+ is_deeply(
+ MLTests->$method(( $options ? $options : () ), $file),
+ { author => $expected },
+ $enc ? "$method (with $enc)" : $method,
+ );
+}
+
+done_testing;
+# vim: ts=2 sts=2 sw=2 et:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Mixin-Linewise-0.004/t/lib/MLTests.pm
new/Mixin-Linewise-0.102/t/lib/MLTests.pm
--- old/Mixin-Linewise-0.004/t/lib/MLTests.pm 2013-06-18 23:30:33.000000000
+0200
+++ new/Mixin-Linewise-0.102/t/lib/MLTests.pm 2013-11-02 16:36:25.000000000
+0100
@@ -4,7 +4,9 @@
use Mixin::Linewise::Readers
-readers,
-readers => { -suffix => '_sub', method => 'read_handle_sub' },
- -readers => { -suffix => '_mul', method => 'read_handle_mul' };
+ -readers => { -suffix => '_mul', method => 'read_handle_mul' },
+ -readers => { -suffix => '_utf8', method => 'read_handle_val' },
+ -readers => { -suffix => '_raw', method => 'read_handle_val', binmode =>
':raw' };
sub read_handle {
my ($self, $fh) = @_;
@@ -43,6 +45,19 @@
};
return \%return;
+}
+
+sub read_handle_val {
+ my ($self, $fh) = @_;
+
+ my %return;
+ while (<$fh>) {
+ chomp;
+ my ($k, $v) = split /\s*=\s*/;
+ $return{$k} = $v;
+ };
+
+ return \%return;
}
1;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Mixin-Linewise-0.004/t/utf8.txt
new/Mixin-Linewise-0.102/t/utf8.txt
--- old/Mixin-Linewise-0.004/t/utf8.txt 1970-01-01 01:00:00.000000000 +0100
+++ new/Mixin-Linewise-0.102/t/utf8.txt 2013-11-02 16:36:25.000000000 +0100
@@ -0,0 +1 @@
+author = ®icardo Sígnes
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/Mixin-Linewise-0.004/xt/release/changes_has_content.t
new/Mixin-Linewise-0.102/xt/release/changes_has_content.t
--- old/Mixin-Linewise-0.004/xt/release/changes_has_content.t 2013-06-18
23:30:33.000000000 +0200
+++ new/Mixin-Linewise-0.102/xt/release/changes_has_content.t 2013-11-02
16:36:25.000000000 +0100
@@ -4,7 +4,7 @@
note 'Checking Changes';
my $changes_file = 'Changes';
-my $newver = '0.004';
+my $newver = '0.102';
my $trial_token = '-TRIAL';
SKIP: {
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]