Hello community,
here is the log from the commit of package perl-MooseX-OneArgNew for openSUSE:Factory checked in at 2013-06-07 07:05:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-MooseX-OneArgNew (Old)
and /work/SRC/openSUSE:Factory/.perl-MooseX-OneArgNew.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-MooseX-OneArgNew"
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-MooseX-OneArgNew/perl-MooseX-OneArgNew.changes 2012-01-09 21:43:52.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.perl-MooseX-OneArgNew.new/perl-MooseX-OneArgNew.changes 2013-06-07 07:05:44.000000000 +0200
@@ -1,0 +2,8 @@
+Wed Jun 5 18:58:04 UTC 2013 - coolo@suse.com
+
+- updated to 0.003
+ add a "coerce" parameter to the role; now ->new can accept one arg
+ that can be coerced to the expected type; suggested by Mark Jason
+ Dominus
+
+-------------------------------------------------------------------
Old:
----
MooseX-OneArgNew-0.002.tar.gz
New:
----
MooseX-OneArgNew-0.003.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-MooseX-OneArgNew.spec ++++++
--- /var/tmp/diff_new_pack.maPK1x/_old 2013-06-07 07:05:45.000000000 +0200
+++ /var/tmp/diff_new_pack.maPK1x/_new 2013-06-07 07:05:45.000000000 +0200
@@ -1,7 +1,7 @@
#
# spec file for package perl-MooseX-OneArgNew
#
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,24 +17,24 @@
Name: perl-MooseX-OneArgNew
-Version: 0.002
+Version: 0.003
Release: 0
%define cpan_name MooseX-OneArgNew
Summary: teach ->new to accept single, non-hashref arguments
-License: GPL-1.0+ or Artistic-1.0
+License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/MooseX-OneArgNew/
-Source: http://www.cpan.org/authors/id/R/RJ/RJBS/MooseX-OneArgNew-%{version}.tar.gz
+Source: http://www.cpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
-BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Moose)
BuildRequires: perl(Moose::Util::TypeConstraints)
BuildRequires: perl(MooseX::Role::Parameterized)
BuildRequires: perl(Test::More) >= 0.96
BuildRequires: perl(namespace::autoclean)
+#BuildRequires: perl(MooseX::OneArgNew)
Requires: perl(Moose::Util::TypeConstraints)
Requires: perl(MooseX::Role::Parameterized)
Requires: perl(namespace::autoclean)
@@ -56,6 +56,13 @@
This is the string that will be used as the key for the hashref
constructed from the one-arg call to new.
+* coerce
+
+ If true, a single argument to new will be coerced into the expected type
+ if possible. Keep in mind that if there are no coercions for the type,
+ this will be an error, and that if a coercion from HashRef exists, you
+ might be getting yourself into a weird situation.
+
%prep
%setup -q -n %{cpan_name}-%{version}
@@ -71,11 +78,8 @@
%perl_process_packlist
%perl_gen_filelist
-%clean
-%{__rm} -rf %{buildroot}
-
%files -f %{name}.files
%defattr(-,root,root,755)
-%doc LICENSE README
+%doc Changes LICENSE README
%changelog
++++++ MooseX-OneArgNew-0.002.tar.gz -> MooseX-OneArgNew-0.003.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-OneArgNew-0.002/Changes new/MooseX-OneArgNew-0.003/Changes
--- old/MooseX-OneArgNew-0.002/Changes 2011-06-15 21:32:54.000000000 +0200
+++ new/MooseX-OneArgNew-0.003/Changes 2013-04-16 22:36:29.000000000 +0200
@@ -1,5 +1,10 @@
Revision history for MooseX-OneArgNew
+0.003 2013-04-16 16:36:26 America/New_York
+ add a "coerce" parameter to the role; now ->new can accept one arg
+ that can be coerced to the expected type; suggested by Mark Jason
+ Dominus
+
0.002 2011-06-15 15:32:50 America/New_York
just removed the "might change radically" warning
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-OneArgNew-0.002/LICENSE new/MooseX-OneArgNew-0.003/LICENSE
--- old/MooseX-OneArgNew-0.002/LICENSE 2011-06-15 21:32:54.000000000 +0200
+++ new/MooseX-OneArgNew-0.003/LICENSE 2013-04-16 22:36:29.000000000 +0200
@@ -1,4 +1,4 @@
-This software is copyright (c) 2011 by Ricardo Signes.
+This software is copyright (c) 2013 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
@@ -12,7 +12,7 @@
--- The GNU General Public License, Version 1, February 1989 ---
-This software is Copyright (c) 2011 by Ricardo Signes.
+This software is Copyright (c) 2013 by Ricardo Signes.
This is free software, licensed under:
@@ -22,7 +22,7 @@
Version 1, February 1989
Copyright (C) 1989 Free Software Foundation, Inc.
- 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ 51 Franklin St, Suite 500, Boston, MA 02110-1335 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
@@ -272,7 +272,7 @@
--- The Artistic License 1.0 ---
-This software is Copyright (c) 2011 by Ricardo Signes.
+This software is Copyright (c) 2013 by Ricardo Signes.
This is free software, licensed under:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-OneArgNew-0.002/MANIFEST new/MooseX-OneArgNew-0.003/MANIFEST
--- old/MooseX-OneArgNew-0.002/MANIFEST 2011-06-15 21:32:54.000000000 +0200
+++ new/MooseX-OneArgNew-0.003/MANIFEST 2013-04-16 22:36:29.000000000 +0200
@@ -7,5 +7,9 @@
README
dist.ini
lib/MooseX/OneArgNew.pm
+t/00-compile.t
+t/000-report-versions-tiny.t
t/basic.t
-t/release-pod-syntax.t
+t/coerce.t
+xt/release/changes_has_content.t
+xt/release/pod-syntax.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-OneArgNew-0.002/META.json new/MooseX-OneArgNew-0.003/META.json
--- old/MooseX-OneArgNew-0.002/META.json 2011-06-15 21:32:54.000000000 +0200
+++ new/MooseX-OneArgNew-0.003/META.json 2013-04-16 22:36:29.000000000 +0200
@@ -4,7 +4,7 @@
"Ricardo Signes "
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 4.200007, CPAN::Meta::Converter version 2.110930",
+ "generated_by" : "Dist::Zilla version 4.300034, CPAN::Meta::Converter version 2.130880",
"license" : [
"perl_5"
],
@@ -19,146 +19,169 @@
"ExtUtils::MakeMaker" : "6.30"
}
},
+ "develop" : {
+ "requires" : {
+ "Test::Pod" : "1.41",
+ "version" : "0.9901"
+ }
+ },
"runtime" : {
"requires" : {
- "Moose::Util::TypeConstraints" : 0,
- "MooseX::Role::Parameterized" : 0,
- "namespace::autoclean" : 0
+ "Moose::Util::TypeConstraints" : "0",
+ "MooseX::Role::Parameterized" : "0",
+ "namespace::autoclean" : "0"
}
},
"test" : {
"requires" : {
- "Moose" : 0,
- "Test::More" : "0.96"
+ "File::Find" : "0",
+ "File::Temp" : "0",
+ "Moose" : "0",
+ "Test::More" : "0.96",
+ "strict" : "0",
+ "warnings" : "0"
}
}
},
"release_status" : "stable",
"resources" : {
- "homepage" : "http://github.com/rjbs/moosex-oneargnew",
+ "homepage" : "https://github.com/rjbs/moosex-oneargnew",
"repository" : {
"type" : "git",
- "url" : "http://github.com/rjbs/moosex-oneargnew",
- "web" : "http://github.com/rjbs/moosex-oneargnew"
+ "url" : "https://github.com/rjbs/moosex-oneargnew.git",
+ "web" : "https://github.com/rjbs/moosex-oneargnew"
}
},
- "version" : "0.002",
+ "version" : "0.003",
"x_Dist_Zilla" : {
+ "perl" : {
+ "version" : "5.017010"
+ },
"plugins" : [
{
+ "class" : "Dist::Zilla::Plugin::Git::GatherDir",
+ "name" : "@RJBS/Git::GatherDir",
+ "version" : "2.013"
+ },
+ {
"class" : "Dist::Zilla::Plugin::CheckPrereqsIndexed",
"name" : "@RJBS/CheckPrereqsIndexed",
- "version" : "0.003"
+ "version" : "0.008"
},
{
- "class" : "Dist::Zilla::Plugin::GatherDir",
- "name" : "@RJBS/@Basic/GatherDir",
- "version" : "4.200007"
+ "class" : "Dist::Zilla::Plugin::CheckExtraTests",
+ "name" : "@RJBS/CheckExtraTests",
+ "version" : "0.011"
},
{
"class" : "Dist::Zilla::Plugin::PruneCruft",
- "name" : "@RJBS/@Basic/PruneCruft",
- "version" : "4.200007"
+ "name" : "@RJBS/@Filter/PruneCruft",
+ "version" : "4.300034"
},
{
"class" : "Dist::Zilla::Plugin::ManifestSkip",
- "name" : "@RJBS/@Basic/ManifestSkip",
- "version" : "4.200007"
+ "name" : "@RJBS/@Filter/ManifestSkip",
+ "version" : "4.300034"
},
{
"class" : "Dist::Zilla::Plugin::MetaYAML",
- "name" : "@RJBS/@Basic/MetaYAML",
- "version" : "4.200007"
+ "name" : "@RJBS/@Filter/MetaYAML",
+ "version" : "4.300034"
},
{
"class" : "Dist::Zilla::Plugin::License",
- "name" : "@RJBS/@Basic/License",
- "version" : "4.200007"
+ "name" : "@RJBS/@Filter/License",
+ "version" : "4.300034"
},
{
"class" : "Dist::Zilla::Plugin::Readme",
- "name" : "@RJBS/@Basic/Readme",
- "version" : "4.200007"
- },
- {
- "class" : "Dist::Zilla::Plugin::ExtraTests",
- "name" : "@RJBS/@Basic/ExtraTests",
- "version" : "4.200007"
+ "name" : "@RJBS/@Filter/Readme",
+ "version" : "4.300034"
},
{
"class" : "Dist::Zilla::Plugin::ExecDir",
- "name" : "@RJBS/@Basic/ExecDir",
- "version" : "4.200007"
+ "name" : "@RJBS/@Filter/ExecDir",
+ "version" : "4.300034"
},
{
"class" : "Dist::Zilla::Plugin::ShareDir",
- "name" : "@RJBS/@Basic/ShareDir",
- "version" : "4.200007"
+ "name" : "@RJBS/@Filter/ShareDir",
+ "version" : "4.300034"
},
{
"class" : "Dist::Zilla::Plugin::MakeMaker",
- "name" : "@RJBS/@Basic/MakeMaker",
- "version" : "4.200007"
+ "name" : "@RJBS/@Filter/MakeMaker",
+ "version" : "4.300034"
},
{
"class" : "Dist::Zilla::Plugin::Manifest",
- "name" : "@RJBS/@Basic/Manifest",
- "version" : "4.200007"
+ "name" : "@RJBS/@Filter/Manifest",
+ "version" : "4.300034"
},
{
"class" : "Dist::Zilla::Plugin::TestRelease",
- "name" : "@RJBS/@Basic/TestRelease",
- "version" : "4.200007"
+ "name" : "@RJBS/@Filter/TestRelease",
+ "version" : "4.300034"
},
{
"class" : "Dist::Zilla::Plugin::ConfirmRelease",
- "name" : "@RJBS/@Basic/ConfirmRelease",
- "version" : "4.200007"
+ "name" : "@RJBS/@Filter/ConfirmRelease",
+ "version" : "4.300034"
},
{
"class" : "Dist::Zilla::Plugin::UploadToCPAN",
- "name" : "@RJBS/@Basic/UploadToCPAN",
- "version" : "4.200007"
+ "name" : "@RJBS/@Filter/UploadToCPAN",
+ "version" : "4.300034"
},
{
"class" : "Dist::Zilla::Plugin::AutoPrereqs",
"name" : "@RJBS/AutoPrereqs",
- "version" : "4.200007"
+ "version" : "4.300034"
},
{
"class" : "Dist::Zilla::Plugin::Git::NextVersion",
"name" : "@RJBS/Git::NextVersion",
- "version" : "1.111460"
+ "version" : "2.013"
},
{
"class" : "Dist::Zilla::Plugin::PkgVersion",
"name" : "@RJBS/PkgVersion",
- "version" : "4.200007"
+ "version" : "4.300034"
},
{
"class" : "Dist::Zilla::Plugin::MetaConfig",
"name" : "@RJBS/MetaConfig",
- "version" : "4.200007"
+ "version" : "4.300034"
},
{
"class" : "Dist::Zilla::Plugin::MetaJSON",
"name" : "@RJBS/MetaJSON",
- "version" : "4.200007"
+ "version" : "4.300034"
},
{
"class" : "Dist::Zilla::Plugin::NextRelease",
"name" : "@RJBS/NextRelease",
- "version" : "4.200007"
+ "version" : "4.300034"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Test::ChangesHasContent",
+ "name" : "@RJBS/Test::ChangesHasContent",
+ "version" : "0.006"
},
{
"class" : "Dist::Zilla::Plugin::PodSyntaxTests",
"name" : "@RJBS/PodSyntaxTests",
- "version" : "4.200007"
+ "version" : "4.300034"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Test::Compile",
+ "name" : "@RJBS/Test::Compile",
+ "version" : "2.001"
},
{
- "class" : "Dist::Zilla::Plugin::Repository",
- "name" : "@RJBS/Repository",
- "version" : "0.18"
+ "class" : "Dist::Zilla::Plugin::ReportVersions::Tiny",
+ "name" : "@RJBS/ReportVersions::Tiny",
+ "version" : "1.08"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
@@ -169,7 +192,7 @@
}
},
"name" : "@RJBS/TestMoreWithSubtests",
- "version" : "4.200007"
+ "version" : "4.300034"
},
{
"class" : "Dist::Zilla::Plugin::PodWeaver",
@@ -179,65 +202,65 @@
{
"class" : "Dist::Zilla::Plugin::GithubMeta",
"name" : "@RJBS/GithubMeta",
- "version" : "0.12"
+ "version" : "0.28"
},
{
"class" : "Dist::Zilla::Plugin::Git::Check",
"name" : "@RJBS/@Git/Check",
- "version" : "1.111460"
+ "version" : "2.013"
},
{
"class" : "Dist::Zilla::Plugin::Git::Commit",
"name" : "@RJBS/@Git/Commit",
- "version" : "1.111460"
+ "version" : "2.013"
},
{
"class" : "Dist::Zilla::Plugin::Git::Tag",
"name" : "@RJBS/@Git/Tag",
- "version" : "1.111460"
+ "version" : "2.013"
},
{
"class" : "Dist::Zilla::Plugin::Git::Push",
"name" : "@RJBS/@Git/Push",
- "version" : "1.111460"
+ "version" : "2.013"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":InstallModules",
- "version" : "4.200007"
+ "version" : "4.300034"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":IncModules",
- "version" : "4.200007"
+ "version" : "4.300034"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":TestFiles",
- "version" : "4.200007"
+ "version" : "4.300034"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ExecFiles",
- "version" : "4.200007"
+ "version" : "4.300034"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ShareFiles",
- "version" : "4.200007"
+ "version" : "4.300034"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":MainModule",
- "version" : "4.200007"
+ "version" : "4.300034"
}
],
"zilla" : {
"class" : "Dist::Zilla::Dist::Builder",
"config" : {
- "is_trial" : 0
+ "is_trial" : "0"
},
- "version" : "4.200007"
+ "version" : "4.300034"
}
}
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-OneArgNew-0.002/META.yml new/MooseX-OneArgNew-0.003/META.yml
--- old/MooseX-OneArgNew-0.002/META.yml 2011-06-15 21:32:54.000000000 +0200
+++ new/MooseX-OneArgNew-0.003/META.yml 2013-04-16 22:36:29.000000000 +0200
@@ -3,12 +3,16 @@
author:
- 'Ricardo Signes '
build_requires:
+ File::Find: 0
+ File::Temp: 0
Moose: 0
Test::More: 0.96
+ strict: 0
+ warnings: 0
configure_requires:
ExtUtils::MakeMaker: 6.30
dynamic_config: 0
-generated_by: 'Dist::Zilla version 4.200007, CPAN::Meta::Converter version 2.110930'
+generated_by: 'Dist::Zilla version 4.300034, CPAN::Meta::Converter version 2.130880'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -19,103 +23,113 @@
MooseX::Role::Parameterized: 0
namespace::autoclean: 0
resources:
- homepage: http://github.com/rjbs/moosex-oneargnew
- repository: http://github.com/rjbs/moosex-oneargnew
-version: 0.002
+ homepage: https://github.com/rjbs/moosex-oneargnew
+ repository: https://github.com/rjbs/moosex-oneargnew.git
+version: 0.003
x_Dist_Zilla:
+ perl:
+ version: 5.017010
plugins:
-
+ class: Dist::Zilla::Plugin::Git::GatherDir
+ name: '@RJBS/Git::GatherDir'
+ version: 2.013
+ -
class: Dist::Zilla::Plugin::CheckPrereqsIndexed
name: '@RJBS/CheckPrereqsIndexed'
- version: 0.003
+ version: 0.008
-
- class: Dist::Zilla::Plugin::GatherDir
- name: '@RJBS/@Basic/GatherDir'
- version: 4.200007
+ class: Dist::Zilla::Plugin::CheckExtraTests
+ name: '@RJBS/CheckExtraTests'
+ version: 0.011
-
class: Dist::Zilla::Plugin::PruneCruft
- name: '@RJBS/@Basic/PruneCruft'
- version: 4.200007
+ name: '@RJBS/@Filter/PruneCruft'
+ version: 4.300034
-
class: Dist::Zilla::Plugin::ManifestSkip
- name: '@RJBS/@Basic/ManifestSkip'
- version: 4.200007
+ name: '@RJBS/@Filter/ManifestSkip'
+ version: 4.300034
-
class: Dist::Zilla::Plugin::MetaYAML
- name: '@RJBS/@Basic/MetaYAML'
- version: 4.200007
+ name: '@RJBS/@Filter/MetaYAML'
+ version: 4.300034
-
class: Dist::Zilla::Plugin::License
- name: '@RJBS/@Basic/License'
- version: 4.200007
+ name: '@RJBS/@Filter/License'
+ version: 4.300034
-
class: Dist::Zilla::Plugin::Readme
- name: '@RJBS/@Basic/Readme'
- version: 4.200007
- -
- class: Dist::Zilla::Plugin::ExtraTests
- name: '@RJBS/@Basic/ExtraTests'
- version: 4.200007
+ name: '@RJBS/@Filter/Readme'
+ version: 4.300034
-
class: Dist::Zilla::Plugin::ExecDir
- name: '@RJBS/@Basic/ExecDir'
- version: 4.200007
+ name: '@RJBS/@Filter/ExecDir'
+ version: 4.300034
-
class: Dist::Zilla::Plugin::ShareDir
- name: '@RJBS/@Basic/ShareDir'
- version: 4.200007
+ name: '@RJBS/@Filter/ShareDir'
+ version: 4.300034
-
class: Dist::Zilla::Plugin::MakeMaker
- name: '@RJBS/@Basic/MakeMaker'
- version: 4.200007
+ name: '@RJBS/@Filter/MakeMaker'
+ version: 4.300034
-
class: Dist::Zilla::Plugin::Manifest
- name: '@RJBS/@Basic/Manifest'
- version: 4.200007
+ name: '@RJBS/@Filter/Manifest'
+ version: 4.300034
-
class: Dist::Zilla::Plugin::TestRelease
- name: '@RJBS/@Basic/TestRelease'
- version: 4.200007
+ name: '@RJBS/@Filter/TestRelease'
+ version: 4.300034
-
class: Dist::Zilla::Plugin::ConfirmRelease
- name: '@RJBS/@Basic/ConfirmRelease'
- version: 4.200007
+ name: '@RJBS/@Filter/ConfirmRelease'
+ version: 4.300034
-
class: Dist::Zilla::Plugin::UploadToCPAN
- name: '@RJBS/@Basic/UploadToCPAN'
- version: 4.200007
+ name: '@RJBS/@Filter/UploadToCPAN'
+ version: 4.300034
-
class: Dist::Zilla::Plugin::AutoPrereqs
name: '@RJBS/AutoPrereqs'
- version: 4.200007
+ version: 4.300034
-
class: Dist::Zilla::Plugin::Git::NextVersion
name: '@RJBS/Git::NextVersion'
- version: 1.111460
+ version: 2.013
-
class: Dist::Zilla::Plugin::PkgVersion
name: '@RJBS/PkgVersion'
- version: 4.200007
+ version: 4.300034
-
class: Dist::Zilla::Plugin::MetaConfig
name: '@RJBS/MetaConfig'
- version: 4.200007
+ version: 4.300034
-
class: Dist::Zilla::Plugin::MetaJSON
name: '@RJBS/MetaJSON'
- version: 4.200007
+ version: 4.300034
-
class: Dist::Zilla::Plugin::NextRelease
name: '@RJBS/NextRelease'
- version: 4.200007
+ version: 4.300034
+ -
+ class: Dist::Zilla::Plugin::Test::ChangesHasContent
+ name: '@RJBS/Test::ChangesHasContent'
+ version: 0.006
-
class: Dist::Zilla::Plugin::PodSyntaxTests
name: '@RJBS/PodSyntaxTests'
- version: 4.200007
+ version: 4.300034
-
- class: Dist::Zilla::Plugin::Repository
- name: '@RJBS/Repository'
- version: 0.18
+ class: Dist::Zilla::Plugin::Test::Compile
+ name: '@RJBS/Test::Compile'
+ version: 2.001
+ -
+ class: Dist::Zilla::Plugin::ReportVersions::Tiny
+ name: '@RJBS/ReportVersions::Tiny'
+ version: 1.08
-
class: Dist::Zilla::Plugin::Prereqs
config:
@@ -123,7 +137,7 @@
phase: test
type: requires
name: '@RJBS/TestMoreWithSubtests'
- version: 4.200007
+ version: 4.300034
-
class: Dist::Zilla::Plugin::PodWeaver
name: '@RJBS/PodWeaver'
@@ -131,49 +145,49 @@
-
class: Dist::Zilla::Plugin::GithubMeta
name: '@RJBS/GithubMeta'
- version: 0.12
+ version: 0.28
-
class: Dist::Zilla::Plugin::Git::Check
name: '@RJBS/@Git/Check'
- version: 1.111460
+ version: 2.013
-
class: Dist::Zilla::Plugin::Git::Commit
name: '@RJBS/@Git/Commit'
- version: 1.111460
+ version: 2.013
-
class: Dist::Zilla::Plugin::Git::Tag
name: '@RJBS/@Git/Tag'
- version: 1.111460
+ version: 2.013
-
class: Dist::Zilla::Plugin::Git::Push
name: '@RJBS/@Git/Push'
- version: 1.111460
+ version: 2.013
-
class: Dist::Zilla::Plugin::FinderCode
name: ':InstallModules'
- version: 4.200007
+ version: 4.300034
-
class: Dist::Zilla::Plugin::FinderCode
name: ':IncModules'
- version: 4.200007
+ version: 4.300034
-
class: Dist::Zilla::Plugin::FinderCode
name: ':TestFiles'
- version: 4.200007
+ version: 4.300034
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ExecFiles'
- version: 4.200007
+ version: 4.300034
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ShareFiles'
- version: 4.200007
+ version: 4.300034
-
class: Dist::Zilla::Plugin::FinderCode
name: ':MainModule'
- version: 4.200007
+ version: 4.300034
zilla:
class: Dist::Zilla::Dist::Builder
config:
is_trial: 0
- version: 4.200007
+ version: 4.300034
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-OneArgNew-0.002/Makefile.PL new/MooseX-OneArgNew-0.003/Makefile.PL
--- old/MooseX-OneArgNew-0.002/Makefile.PL 2011-06-15 21:32:54.000000000 +0200
+++ new/MooseX-OneArgNew-0.003/Makefile.PL 2013-04-16 22:36:29.000000000 +0200
@@ -9,31 +9,49 @@
my %WriteMakefileArgs = (
- 'ABSTRACT' => 'teach ->new to accept single, non-hashref arguments',
- 'AUTHOR' => 'Ricardo Signes ',
- 'BUILD_REQUIRES' => {
- 'Moose' => '0',
- 'Test::More' => '0.96'
+ "ABSTRACT" => "teach ->new to accept single, non-hashref arguments",
+ "AUTHOR" => "Ricardo Signes ",
+ "BUILD_REQUIRES" => {},
+ "CONFIGURE_REQUIRES" => {
+ "ExtUtils::MakeMaker" => "6.30"
},
- 'CONFIGURE_REQUIRES' => {
- 'ExtUtils::MakeMaker' => '6.30'
+ "DISTNAME" => "MooseX-OneArgNew",
+ "EXE_FILES" => [],
+ "LICENSE" => "perl",
+ "NAME" => "MooseX::OneArgNew",
+ "PREREQ_PM" => {
+ "Moose::Util::TypeConstraints" => 0,
+ "MooseX::Role::Parameterized" => 0,
+ "namespace::autoclean" => 0
},
- 'DISTNAME' => 'MooseX-OneArgNew',
- 'EXE_FILES' => [],
- 'LICENSE' => 'perl',
- 'NAME' => 'MooseX::OneArgNew',
- 'PREREQ_PM' => {
- 'Moose::Util::TypeConstraints' => '0',
- 'MooseX::Role::Parameterized' => '0',
- 'namespace::autoclean' => '0'
+ "TEST_REQUIRES" => {
+ "File::Find" => 0,
+ "File::Temp" => 0,
+ "Moose" => 0,
+ "Test::More" => "0.96",
+ "strict" => 0,
+ "warnings" => 0
},
- 'VERSION' => '0.002',
- 'test' => {
- 'TESTS' => 't/*.t'
+ "VERSION" => "0.003",
+ "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};
+ }
+ }
+}
+
unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) {
my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
my $pp = $WriteMakefileArgs{PREREQ_PM};
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-OneArgNew-0.002/README new/MooseX-OneArgNew-0.003/README
--- old/MooseX-OneArgNew-0.002/README 2011-06-15 21:32:54.000000000 +0200
+++ new/MooseX-OneArgNew-0.003/README 2013-04-16 22:36:29.000000000 +0200
@@ -1,11 +1,11 @@
This archive contains the distribution MooseX-OneArgNew,
-version 0.002:
+version 0.003:
teach ->new to accept single, non-hashref arguments
-This software is copyright (c) 2011 by Ricardo Signes.
+This software is copyright (c) 2013 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-OneArgNew-0.002/lib/MooseX/OneArgNew.pm new/MooseX-OneArgNew-0.003/lib/MooseX/OneArgNew.pm
--- old/MooseX-OneArgNew-0.002/lib/MooseX/OneArgNew.pm 2011-06-15 21:32:54.000000000 +0200
+++ new/MooseX-OneArgNew-0.003/lib/MooseX/OneArgNew.pm 2013-04-16 22:36:29.000000000 +0200
@@ -1,6 +1,6 @@
package MooseX::OneArgNew;
-BEGIN {
- $MooseX::OneArgNew::VERSION = '0.002';
+{
+ $MooseX::OneArgNew::VERSION = '0.003';
}
use MooseX::Role::Parameterized;
# ABSTRACT: teach ->new to accept single, non-hashref arguments
@@ -23,6 +23,11 @@
required => 1,
);
+parameter coerce => (
+ isa => 'Bool',
+ default => 0,
+);
+
parameter init_arg => (
isa => 'Str',
required => 1,
@@ -36,15 +41,17 @@
my $self = shift;
return $self->$orig(@_) unless @_ == 1;
- return $self->$orig(@_) unless $p->type->check($_[0]);
+ my $value = $p->coerce ? $p->type->coerce($_[0]) : $_[0];
+ return $self->$orig(@_) unless $p->type->check($value);
- return { $p->init_arg => $_[0] }
+ return { $p->init_arg => $value }
};
};
1;
__END__
+
=pod
=head1 NAME
@@ -53,7 +60,7 @@
=head1 VERSION
-version 0.002
+version 0.003
=head1 SYNOPSIS
@@ -109,6 +116,13 @@
This is the string that will be used as the key for the hashref constructed
from the one-arg call to new.
+=item coerce
+
+If true, a single argument to new will be coerced into the expected type if
+possible. Keep in mind that if there are no coercions for the type, this will
+be an error, and that if a coercion from HashRef exists, you might be getting
+yourself into a weird situation.
+
=back
=head2 WARNINGS
@@ -126,10 +140,9 @@
=head1 COPYRIGHT AND LICENSE
-This software is copyright (c) 2011 by Ricardo Signes.
+This software is copyright (c) 2013 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-OneArgNew-0.002/t/00-compile.t new/MooseX-OneArgNew-0.003/t/00-compile.t
--- old/MooseX-OneArgNew-0.002/t/00-compile.t 1970-01-01 01:00:00.000000000 +0100
+++ new/MooseX-OneArgNew-0.003/t/00-compile.t 2013-04-16 22:36:29.000000000 +0200
@@ -0,0 +1,74 @@
+#!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$//;
+ # nothing to skip
+ push @modules, $found;
+ },
+ 'lib',
+);
+
+sub _find_scripts {
+ my $dir = shift @_;
+
+ my @found_scripts = ();
+ find(
+ sub {
+ return unless -f;
+ my $found = $File::Find::name;
+ # nothing to skip
+ 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/MooseX-OneArgNew-0.002/t/000-report-versions-tiny.t new/MooseX-OneArgNew-0.003/t/000-report-versions-tiny.t
--- old/MooseX-OneArgNew-0.002/t/000-report-versions-tiny.t 1970-01-01 01:00:00.000000000 +0100
+++ new/MooseX-OneArgNew-0.003/t/000-report-versions-tiny.t 2013-04-16 22:36:29.000000000 +0200
@@ -0,0 +1,81 @@
+use strict;
+use warnings;
+use Test::More 0.88;
+# This is a relatively nice way to avoid Test::NoWarnings breaking our
+# expectations by adding extra tests, without using no_plan. It also helps
+# avoid any other test module that feels introducing random tests, or even
+# test plans, is a nice idea.
+our $success = 0;
+END { $success && done_testing; }
+
+# List our own version used to generate this
+my $v = "\nGenerated by Dist::Zilla::Plugin::ReportVersions::Tiny v1.08\n";
+
+eval { # no excuses!
+ # report our Perl details
+ my $want = "any version";
+ $v .= "perl: $] (wanted $want) on $^O from $^X\n\n";
+};
+defined($@) and diag("$@");
+
+# Now, our module version dependencies:
+sub pmver {
+ my ($module, $wanted) = @_;
+ $wanted = " (want $wanted)";
+ my $pmver;
+ eval "require $module;";
+ if ($@) {
+ if ($@ =~ m/Can't locate .* in \@INC/) {
+ $pmver = 'module not found.';
+ } else {
+ diag("${module}: $@");
+ $pmver = 'died during require.';
+ }
+ } else {
+ my $version;
+ eval { $version = $module->VERSION; };
+ if ($@) {
+ diag("${module}: $@");
+ $pmver = 'died during VERSION check.';
+ } elsif (defined $version) {
+ $pmver = "$version";
+ } else {
+ $pmver = '<undef>';
+ }
+ }
+
+ # So, we should be good, right?
+ return sprintf('%-45s => %-10s%-15s%s', $module, $pmver, $wanted, "\n");
+}
+
+eval { $v .= pmver('ExtUtils::MakeMaker','6.30') };
+eval { $v .= pmver('File::Find','any version') };
+eval { $v .= pmver('File::Temp','any version') };
+eval { $v .= pmver('Moose','any version') };
+eval { $v .= pmver('Moose::Util::TypeConstraints','any version') };
+eval { $v .= pmver('MooseX::Role::Parameterized','any version') };
+eval { $v .= pmver('Test::More','0.96') };
+eval { $v .= pmver('Test::Pod','1.41') };
+eval { $v .= pmver('namespace::autoclean','any version') };
+eval { $v .= pmver('strict','any version') };
+eval { $v .= pmver('version','0.9901') };
+eval { $v .= pmver('warnings','any version') };
+
+
+# All done.
+$v .= <<'EOT';
+
+Thanks for using my code. I hope it works for you.
+If not, please try and include this output in the bug report.
+That will help me reproduce the issue and solve your problem.
+
+EOT
+
+diag($v);
+ok(1, "we really didn't test anything, just reporting data");
+$success = 1;
+
+# Work around another nasty module on CPAN. :/
+no warnings 'once';
+$Template::Test::NO_FLUSH = 1;
+exit 0;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-OneArgNew-0.002/t/coerce.t new/MooseX-OneArgNew-0.003/t/coerce.t
--- old/MooseX-OneArgNew-0.002/t/coerce.t 1970-01-01 01:00:00.000000000 +0100
+++ new/MooseX-OneArgNew-0.003/t/coerce.t 2013-04-16 22:36:29.000000000 +0200
@@ -0,0 +1,53 @@
+use strict;
+use warnings;
+
+use Test::More 0.96;
+
+{
+ package TypeHolder;
+ use Moose::Util::TypeConstraints;
+ subtype 'Exes', as 'Str', where { length > 0 && $_ !~ /[^X]/ };
+ subtype 'XL', as 'Int';
+ coerce 'XL', from 'Exes', via { length };
+}
+
+{
+ package Object;
+ use Moose;
+ with(
+ 'MooseX::OneArgNew' => {
+ type => 'XL',
+ init_arg => 'size',
+ coerce => 1,
+ },
+ );
+
+ has size => (is => 'ro', isa => 'XL');
+}
+
+{
+ my $obj = Object->new('XXX');
+ isa_ok($obj, 'Object');
+ is($obj->size, 3, "coercing one-arg-new worked");
+}
+
+{
+ my $obj = Object->new({ size => 10 });
+ isa_ok($obj, 'Object');
+ is($obj->size, 10, "hashref args to ->new worked");
+}
+
+{
+ my $obj = Object->new(size => 10);
+ isa_ok($obj, 'Object');
+ is($obj->size, 10, "pair args to ->new worked");
+}
+
+{
+ my $obj = eval { Object->new('ten') };
+ my $err = $@;
+ ok(! $obj, "couldn't construct Object with non-{} non-Int single-arg new");
+ like($err, qr/parameters to new/, "...error message seems plausible");
+}
+
+done_testing;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-OneArgNew-0.002/t/release-pod-syntax.t new/MooseX-OneArgNew-0.003/t/release-pod-syntax.t
--- old/MooseX-OneArgNew-0.002/t/release-pod-syntax.t 2011-06-15 21:32:54.000000000 +0200
+++ new/MooseX-OneArgNew-0.003/t/release-pod-syntax.t 1970-01-01 01:00:00.000000000 +0100
@@ -1,15 +0,0 @@
-#!perl
-
-BEGIN {
- unless ($ENV{RELEASE_TESTING}) {
- require Test::More;
- Test::More::plan(skip_all => 'these tests are for release candidate testing');
- }
-}
-
-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 -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-OneArgNew-0.002/xt/release/changes_has_content.t new/MooseX-OneArgNew-0.003/xt/release/changes_has_content.t
--- old/MooseX-OneArgNew-0.002/xt/release/changes_has_content.t 1970-01-01 01:00:00.000000000 +0100
+++ new/MooseX-OneArgNew-0.003/xt/release/changes_has_content.t 2013-04-16 22:36:29.000000000 +0200
@@ -0,0 +1,41 @@
+#!perl
+
+use Test::More tests => 2;
+
+note 'Checking Changes';
+my $changes_file = 'Changes';
+my $newver = '0.003';
+my $trial_token = '-TRIAL';
+
+SKIP: {
+ ok(-e $changes_file, "$changes_file file exists")
+ or skip 'Changes is missing', 1;
+
+ ok(_get_changes($newver), "$changes_file has content for $newver");
+}
+
+done_testing;
+
+# _get_changes copied and adapted from Dist::Zilla::Plugin::Git::Commit
+# by Jerome Quelin
+sub _get_changes
+{
+ my $newver = shift;
+
+ # parse changelog to find commit message
+ open(my $fh, '<', $changes_file) or die "cannot open $changes_file: $!";
+ my $changelog = join('', <$fh>);
+ close $fh;
+
+ my @content =
+ grep { /^$newver(?:$trial_token)?(?:\s+|$)/ ... /^\S/ } # from newver to un-indented
+ split /\n/, $changelog;
+ shift @content; # drop the version line
+
+ # drop unindented last line and trailing blank lines
+ pop @content while ( @content && $content[-1] =~ /^(?:\S|\s*$)/ );
+
+ # return number of non-blank lines
+ return scalar @content;
+}
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-OneArgNew-0.002/xt/release/pod-syntax.t new/MooseX-OneArgNew-0.003/xt/release/pod-syntax.t
--- old/MooseX-OneArgNew-0.002/xt/release/pod-syntax.t 1970-01-01 01:00:00.000000000 +0100
+++ new/MooseX-OneArgNew-0.003/xt/release/pod-syntax.t 2013-04-16 22:36:29.000000000 +0200
@@ -0,0 +1,7 @@
+#!perl
+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();
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org