r70272 - in /trunk/libmoosex-nonmoose-perl: ./ debian/ lib/MooseX/ lib/MooseX/NonMoose/ lib/MooseX/NonMoose/Meta/Role/ t/
jawnsy-guest at users.alioth.debian.org
jawnsy-guest at users.alioth.debian.org
Thu Mar 3 03:42:20 UTC 2011
Author: jawnsy-guest
Date: Thu Mar 3 03:42:13 2011
New Revision: 70272
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=70272
Log:
* Update dependencies per upstream
* Bump debhelper compat to 8
* Build-depend on libtest-fatal-perl instead of libtest-exception-perl.
Added:
trunk/libmoosex-nonmoose-perl/t/26-no-new-constructor-error.t
- copied unchanged from r70262, branches/upstream/libmoosex-nonmoose-perl/current/t/26-no-new-constructor-error.t
Modified:
trunk/libmoosex-nonmoose-perl/Changes
trunk/libmoosex-nonmoose-perl/MANIFEST
trunk/libmoosex-nonmoose-perl/META.json
trunk/libmoosex-nonmoose-perl/META.yml
trunk/libmoosex-nonmoose-perl/Makefile.PL
trunk/libmoosex-nonmoose-perl/README
trunk/libmoosex-nonmoose-perl/debian/changelog
trunk/libmoosex-nonmoose-perl/debian/compat
trunk/libmoosex-nonmoose-perl/debian/control
trunk/libmoosex-nonmoose-perl/lib/MooseX/NonMoose.pm
trunk/libmoosex-nonmoose-perl/lib/MooseX/NonMoose/InsideOut.pm
trunk/libmoosex-nonmoose-perl/lib/MooseX/NonMoose/Meta/Role/Class.pm
trunk/libmoosex-nonmoose-perl/lib/MooseX/NonMoose/Meta/Role/Constructor.pm
trunk/libmoosex-nonmoose-perl/t/00-compile.t
Modified: trunk/libmoosex-nonmoose-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-nonmoose-perl/Changes?rev=70272&op=diff
==============================================================================
--- trunk/libmoosex-nonmoose-perl/Changes (original)
+++ trunk/libmoosex-nonmoose-perl/Changes Thu Mar 3 03:42:13 2011
@@ -1,4 +1,7 @@
Revision history for MooseX-NonMoose
+
+0.19 2011-03-02
+ - don't die if superclass doesn't have a 'new' method
0.18 2011-02-09
- forward compat for Moose 2.0
Modified: trunk/libmoosex-nonmoose-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-nonmoose-perl/MANIFEST?rev=70272&op=diff
==============================================================================
--- trunk/libmoosex-nonmoose-perl/MANIFEST (original)
+++ trunk/libmoosex-nonmoose-perl/MANIFEST Thu Mar 3 03:42:13 2011
@@ -25,6 +25,7 @@
t/23-FOREIGNBUILDARGS.t
t/24-nonmoose-moose-nonmoose.t
t/25-constructor-method-calls.t
+t/26-no-new-constructor-error.t
t/30-only-metaclass-trait.t
t/31-moose-exporter.t
t/32-moosex-insideout.t
Modified: trunk/libmoosex-nonmoose-perl/META.json
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-nonmoose-perl/META.json?rev=70272&op=diff
==============================================================================
--- trunk/libmoosex-nonmoose-perl/META.json (original)
+++ trunk/libmoosex-nonmoose-perl/META.json Thu Mar 3 03:42:13 2011
@@ -4,7 +4,7 @@
"Jesse Luehrs <doy at tozt dot net>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 4.200000, CPAN::Meta::Converter version 2.101670",
+ "generated_by" : "Dist::Zilla version 4.200004, CPAN::Meta::Converter version 2.110580",
"license" : [
"perl_5"
],
@@ -27,7 +27,8 @@
},
"test" : {
"requires" : {
- "Test::Fatal" : 0
+ "Test::Fatal" : 0,
+ "Test::More" : "0.88"
}
}
},
@@ -35,91 +36,103 @@
"resources" : {
"repository" : {
"type" : "git",
- "url" : "git://github.com/doy/moosex-nonmoose.git"
+ "url" : "git://github.com/doy/moosex-nonmoose.git",
+ "web" : "http://github.com/doy/moosex-nonmoose"
}
},
- "version" : "0.18",
+ "version" : "0.19",
"x_Dist_Zilla" : {
"plugins" : [
{
+ "class" : "Dist::Zilla::Plugin::Prereqs",
+ "config" : {
+ "Dist::Zilla::Plugin::Prereqs" : {
+ "phase" : "test",
+ "type" : "requires"
+ }
+ },
+ "name" : "@DOY/TestMoreDoneTesting",
+ "version" : "4.200004"
+ },
+ {
"class" : "Dist::Zilla::Plugin::GatherDir",
"name" : "@DOY/GatherDir",
- "version" : "4.200000"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::PruneCruft",
"name" : "@DOY/PruneCruft",
- "version" : "4.200000"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::ManifestSkip",
"name" : "@DOY/ManifestSkip",
- "version" : "4.200000"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::MetaYAML",
"name" : "@DOY/MetaYAML",
- "version" : "4.200000"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::License",
"name" : "@DOY/License",
- "version" : "4.200000"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::Readme",
"name" : "@DOY/Readme",
- "version" : "4.200000"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::ExtraTests",
"name" : "@DOY/ExtraTests",
- "version" : "4.200000"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::ExecDir",
"name" : "@DOY/ExecDir",
- "version" : "4.200000"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::ShareDir",
"name" : "@DOY/ShareDir",
- "version" : "4.200000"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::MakeMaker",
"name" : "@DOY/MakeMaker",
- "version" : "4.200000"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::Manifest",
"name" : "@DOY/Manifest",
- "version" : "4.200000"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::TestRelease",
"name" : "@DOY/TestRelease",
- "version" : "4.200000"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::ConfirmRelease",
"name" : "@DOY/ConfirmRelease",
- "version" : "4.200000"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::MetaConfig",
"name" : "@DOY/MetaConfig",
- "version" : "4.200000"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::MetaJSON",
"name" : "@DOY/MetaJSON",
- "version" : "4.200000"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::NextRelease",
"name" : "@DOY/NextRelease",
- "version" : "4.200000"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::CheckChangesHasContent",
@@ -129,17 +142,17 @@
{
"class" : "Dist::Zilla::Plugin::PkgVersion",
"name" : "@DOY/PkgVersion",
- "version" : "4.200000"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::PodCoverageTests",
"name" : "@DOY/PodCoverageTests",
- "version" : "4.200000"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::PodSyntaxTests",
"name" : "@DOY/PodSyntaxTests",
- "version" : "4.200000"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::NoTabsTests",
@@ -154,37 +167,37 @@
{
"class" : "Dist::Zilla::Plugin::CompileTests",
"name" : "@DOY/CompileTests",
- "version" : "1.101800"
+ "version" : "1.103030"
},
{
"class" : "Dist::Zilla::Plugin::Repository",
"name" : "@DOY/Repository",
- "version" : "0.13"
+ "version" : "0.17"
},
{
"class" : "Dist::Zilla::Plugin::Git::Check",
"name" : "@DOY/Git::Check",
- "version" : "1.103520"
+ "version" : "1.110500"
},
{
"class" : "Dist::Zilla::Plugin::Git::Tag",
"name" : "@DOY/Git::Tag",
- "version" : "1.103520"
- },
- {
- "class" : "Dist::Zilla::Plugin::BumpVersionFromGit",
- "name" : "@DOY/BumpVersionFromGit",
- "version" : "0.007"
+ "version" : "1.110500"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Git::NextVersion",
+ "name" : "@DOY/Git::NextVersion",
+ "version" : "1.110500"
},
{
"class" : "Dist::Zilla::Plugin::PodWeaver",
"name" : "@DOY/PodWeaver",
- "version" : "3.101640"
+ "version" : "3.101641"
},
{
"class" : "Dist::Zilla::Plugin::UploadToCPAN",
"name" : "@DOY/UploadToCPAN",
- "version" : "4.200000"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
@@ -195,7 +208,7 @@
}
},
"name" : "Prereqs",
- "version" : "4.200000"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
@@ -206,27 +219,27 @@
}
},
"name" : "TestRequires",
- "version" : "4.200000"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":InstallModules",
- "version" : "4.200000"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":TestFiles",
- "version" : "4.200000"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ExecFiles",
- "version" : "4.200000"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ShareFiles",
- "version" : "4.200000"
+ "version" : "4.200004"
}
],
"zilla" : {
@@ -234,7 +247,7 @@
"config" : {
"is_trial" : 0
},
- "version" : "4.200000"
+ "version" : "4.200004"
}
}
}
Modified: trunk/libmoosex-nonmoose-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-nonmoose-perl/META.yml?rev=70272&op=diff
==============================================================================
--- trunk/libmoosex-nonmoose-perl/META.yml (original)
+++ trunk/libmoosex-nonmoose-perl/META.yml Thu Mar 3 03:42:13 2011
@@ -4,10 +4,11 @@
- 'Jesse Luehrs <doy at tozt dot net>'
build_requires:
Test::Fatal: 0
+ Test::More: 0.88
configure_requires:
ExtUtils::MakeMaker: 6.31
dynamic_config: 0
-generated_by: 'Dist::Zilla version 4.200000, CPAN::Meta::Converter version 2.101670'
+generated_by: 'Dist::Zilla version 4.200004, CPAN::Meta::Converter version 2.110580'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -18,73 +19,81 @@
Moose: 1.15
resources:
repository: git://github.com/doy/moosex-nonmoose.git
-version: 0.18
+version: 0.19
x_Dist_Zilla:
plugins:
-
+ class: Dist::Zilla::Plugin::Prereqs
+ config:
+ Dist::Zilla::Plugin::Prereqs:
+ phase: test
+ type: requires
+ name: '@DOY/TestMoreDoneTesting'
+ version: 4.200004
+ -
class: Dist::Zilla::Plugin::GatherDir
name: '@DOY/GatherDir'
- version: 4.200000
+ version: 4.200004
-
class: Dist::Zilla::Plugin::PruneCruft
name: '@DOY/PruneCruft'
- version: 4.200000
+ version: 4.200004
-
class: Dist::Zilla::Plugin::ManifestSkip
name: '@DOY/ManifestSkip'
- version: 4.200000
+ version: 4.200004
-
class: Dist::Zilla::Plugin::MetaYAML
name: '@DOY/MetaYAML'
- version: 4.200000
+ version: 4.200004
-
class: Dist::Zilla::Plugin::License
name: '@DOY/License'
- version: 4.200000
+ version: 4.200004
-
class: Dist::Zilla::Plugin::Readme
name: '@DOY/Readme'
- version: 4.200000
+ version: 4.200004
-
class: Dist::Zilla::Plugin::ExtraTests
name: '@DOY/ExtraTests'
- version: 4.200000
+ version: 4.200004
-
class: Dist::Zilla::Plugin::ExecDir
name: '@DOY/ExecDir'
- version: 4.200000
+ version: 4.200004
-
class: Dist::Zilla::Plugin::ShareDir
name: '@DOY/ShareDir'
- version: 4.200000
+ version: 4.200004
-
class: Dist::Zilla::Plugin::MakeMaker
name: '@DOY/MakeMaker'
- version: 4.200000
+ version: 4.200004
-
class: Dist::Zilla::Plugin::Manifest
name: '@DOY/Manifest'
- version: 4.200000
+ version: 4.200004
-
class: Dist::Zilla::Plugin::TestRelease
name: '@DOY/TestRelease'
- version: 4.200000
+ version: 4.200004
-
class: Dist::Zilla::Plugin::ConfirmRelease
name: '@DOY/ConfirmRelease'
- version: 4.200000
+ version: 4.200004
-
class: Dist::Zilla::Plugin::MetaConfig
name: '@DOY/MetaConfig'
- version: 4.200000
+ version: 4.200004
-
class: Dist::Zilla::Plugin::MetaJSON
name: '@DOY/MetaJSON'
- version: 4.200000
+ version: 4.200004
-
class: Dist::Zilla::Plugin::NextRelease
name: '@DOY/NextRelease'
- version: 4.200000
+ version: 4.200004
-
class: Dist::Zilla::Plugin::CheckChangesHasContent
name: '@DOY/CheckChangesHasContent'
@@ -92,15 +101,15 @@
-
class: Dist::Zilla::Plugin::PkgVersion
name: '@DOY/PkgVersion'
- version: 4.200000
+ version: 4.200004
-
class: Dist::Zilla::Plugin::PodCoverageTests
name: '@DOY/PodCoverageTests'
- version: 4.200000
+ version: 4.200004
-
class: Dist::Zilla::Plugin::PodSyntaxTests
name: '@DOY/PodSyntaxTests'
- version: 4.200000
+ version: 4.200004
-
class: Dist::Zilla::Plugin::NoTabsTests
name: '@DOY/NoTabsTests'
@@ -112,31 +121,31 @@
-
class: Dist::Zilla::Plugin::CompileTests
name: '@DOY/CompileTests'
- version: 1.101800
+ version: 1.103030
-
class: Dist::Zilla::Plugin::Repository
name: '@DOY/Repository'
- version: 0.13
+ version: 0.17
-
class: Dist::Zilla::Plugin::Git::Check
name: '@DOY/Git::Check'
- version: 1.103520
+ version: 1.110500
-
class: Dist::Zilla::Plugin::Git::Tag
name: '@DOY/Git::Tag'
- version: 1.103520
+ version: 1.110500
-
- class: Dist::Zilla::Plugin::BumpVersionFromGit
- name: '@DOY/BumpVersionFromGit'
- version: 0.007
+ class: Dist::Zilla::Plugin::Git::NextVersion
+ name: '@DOY/Git::NextVersion'
+ version: 1.110500
-
class: Dist::Zilla::Plugin::PodWeaver
name: '@DOY/PodWeaver'
- version: 3.101640
+ version: 3.101641
-
class: Dist::Zilla::Plugin::UploadToCPAN
name: '@DOY/UploadToCPAN'
- version: 4.200000
+ version: 4.200004
-
class: Dist::Zilla::Plugin::Prereqs
config:
@@ -144,7 +153,7 @@
phase: runtime
type: requires
name: Prereqs
- version: 4.200000
+ version: 4.200004
-
class: Dist::Zilla::Plugin::Prereqs
config:
@@ -152,25 +161,25 @@
phase: test
type: requires
name: TestRequires
- version: 4.200000
+ version: 4.200004
-
class: Dist::Zilla::Plugin::FinderCode
name: ':InstallModules'
- version: 4.200000
+ version: 4.200004
-
class: Dist::Zilla::Plugin::FinderCode
name: ':TestFiles'
- version: 4.200000
+ version: 4.200004
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ExecFiles'
- version: 4.200000
+ version: 4.200004
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ShareFiles'
- version: 4.200000
+ version: 4.200004
zilla:
class: Dist::Zilla::Dist::Builder
config:
is_trial: 0
- version: 4.200000
+ version: 4.200004
Modified: trunk/libmoosex-nonmoose-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-nonmoose-perl/Makefile.PL?rev=70272&op=diff
==============================================================================
--- trunk/libmoosex-nonmoose-perl/Makefile.PL (original)
+++ trunk/libmoosex-nonmoose-perl/Makefile.PL Thu Mar 3 03:42:13 2011
@@ -12,7 +12,8 @@
'ABSTRACT' => 'easy subclassing of non-Moose classes',
'AUTHOR' => 'Jesse Luehrs <doy at tozt dot net>',
'BUILD_REQUIRES' => {
- 'Test::Fatal' => '0'
+ 'Test::Fatal' => '0',
+ 'Test::More' => '0.88'
},
'CONFIGURE_REQUIRES' => {
'ExtUtils::MakeMaker' => '6.31'
@@ -25,7 +26,7 @@
'List::MoreUtils' => '0',
'Moose' => '1.15'
},
- 'VERSION' => '0.18',
+ 'VERSION' => '0.19',
'test' => {
'TESTS' => 't/*.t'
}
Modified: trunk/libmoosex-nonmoose-perl/README
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-nonmoose-perl/README?rev=70272&op=diff
==============================================================================
--- trunk/libmoosex-nonmoose-perl/README (original)
+++ trunk/libmoosex-nonmoose-perl/README Thu Mar 3 03:42:13 2011
@@ -1,7 +1,7 @@
This archive contains the distribution MooseX-NonMoose,
-version 0.18:
+version 0.19:
easy subclassing of non-Moose classes
Modified: trunk/libmoosex-nonmoose-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-nonmoose-perl/debian/changelog?rev=70272&op=diff
==============================================================================
--- trunk/libmoosex-nonmoose-perl/debian/changelog (original)
+++ trunk/libmoosex-nonmoose-perl/debian/changelog Thu Mar 3 03:42:13 2011
@@ -1,16 +1,15 @@
-libmoosex-nonmoose-perl (0.18-1) UNRELEASED; urgency=low
+libmoosex-nonmoose-perl (0.19-1) UNRELEASED; urgency=low
- NOTE: This version provides forward compatibility for Moose 2.0;
- not needed until that version is in Debian.
+ [ Jonathan Yu ]
+ * New upstream release
+ * Refresh copyright information
+ * Update dependencies per upstream
+ * Bump debhelper compat to 8
[ Ansgar Burchardt ]
* Build-depend on libtest-fatal-perl instead of libtest-exception-perl.
- [ Jonathan Yu ]
- * New upstream release
- * Refresh copyright information
-
- -- Jonathan Yu <jawnsy at cpan.org> Sat, 26 Feb 2011 22:36:28 -0500
+ -- Jonathan Yu <jawnsy at cpan.org> Wed, 02 Mar 2011 23:06:22 -0500
libmoosex-nonmoose-perl (0.16-1) unstable; urgency=low
Modified: trunk/libmoosex-nonmoose-perl/debian/compat
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-nonmoose-perl/debian/compat?rev=70272&op=diff
==============================================================================
--- trunk/libmoosex-nonmoose-perl/debian/compat (original)
+++ trunk/libmoosex-nonmoose-perl/debian/compat Thu Mar 3 03:42:13 2011
@@ -1,1 +1,1 @@
-7
+8
Modified: trunk/libmoosex-nonmoose-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-nonmoose-perl/debian/control?rev=70272&op=diff
==============================================================================
--- trunk/libmoosex-nonmoose-perl/debian/control (original)
+++ trunk/libmoosex-nonmoose-perl/debian/control Thu Mar 3 03:42:13 2011
@@ -1,8 +1,11 @@
Source: libmoosex-nonmoose-perl
Section: perl
Priority: optional
-Build-Depends: debhelper (>= 7)
-Build-Depends-Indep: perl, liblist-moreutils-perl, libmoose-perl (>= 1.15),
+Build-Depends: debhelper (>= 8)
+Build-Depends-Indep: perl,
+ liblist-moreutils-perl,
+ libmoose-perl (>= 1.15),
+ perl (>= 5.10.1) | libtest-simple-perl (>= 0.88),
libtest-fatal-perl
Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
Uploaders: Jonathan Yu <jawnsy at cpan.org>, Ansgar Burchardt <ansgar at debian.org>
@@ -13,7 +16,8 @@
Package: libmoosex-nonmoose-perl
Architecture: all
-Depends: ${misc:Depends}, ${perl:Depends}, liblist-moreutils-perl,
+Depends: ${misc:Depends}, ${perl:Depends},
+ liblist-moreutils-perl,
libmoose-perl (>= 1.15)
Description: Moose extension to allow easy subclassing of non-Moose classes
MooseX::NonMoose allows for easily subclassing non-Moose classes with Moose,
Modified: trunk/libmoosex-nonmoose-perl/lib/MooseX/NonMoose.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-nonmoose-perl/lib/MooseX/NonMoose.pm?rev=70272&op=diff
==============================================================================
--- trunk/libmoosex-nonmoose-perl/lib/MooseX/NonMoose.pm (original)
+++ trunk/libmoosex-nonmoose-perl/lib/MooseX/NonMoose.pm Thu Mar 3 03:42:13 2011
@@ -1,6 +1,6 @@
package MooseX::NonMoose;
BEGIN {
- $MooseX::NonMoose::VERSION = '0.18';
+ $MooseX::NonMoose::VERSION = '0.19';
}
use Moose::Exporter;
# ABSTRACT: easy subclassing of non-Moose classes
@@ -35,7 +35,7 @@
=head1 VERSION
-version 0.18
+version 0.19
=head1 SYNOPSIS
Modified: trunk/libmoosex-nonmoose-perl/lib/MooseX/NonMoose/InsideOut.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-nonmoose-perl/lib/MooseX/NonMoose/InsideOut.pm?rev=70272&op=diff
==============================================================================
--- trunk/libmoosex-nonmoose-perl/lib/MooseX/NonMoose/InsideOut.pm (original)
+++ trunk/libmoosex-nonmoose-perl/lib/MooseX/NonMoose/InsideOut.pm Thu Mar 3 03:42:13 2011
@@ -1,6 +1,6 @@
package MooseX::NonMoose::InsideOut;
BEGIN {
- $MooseX::NonMoose::InsideOut::VERSION = '0.18';
+ $MooseX::NonMoose::InsideOut::VERSION = '0.19';
}
use Moose::Exporter;
# ABSTRACT: easy subclassing of non-Moose non-hashref classes
@@ -36,7 +36,7 @@
=head1 VERSION
-version 0.18
+version 0.19
=head1 SYNOPSIS
Modified: trunk/libmoosex-nonmoose-perl/lib/MooseX/NonMoose/Meta/Role/Class.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-nonmoose-perl/lib/MooseX/NonMoose/Meta/Role/Class.pm?rev=70272&op=diff
==============================================================================
--- trunk/libmoosex-nonmoose-perl/lib/MooseX/NonMoose/Meta/Role/Class.pm (original)
+++ trunk/libmoosex-nonmoose-perl/lib/MooseX/NonMoose/Meta/Role/Class.pm Thu Mar 3 03:42:13 2011
@@ -1,6 +1,6 @@
package MooseX::NonMoose::Meta::Role::Class;
BEGIN {
- $MooseX::NonMoose::Meta::Role::Class::VERSION = '0.18';
+ $MooseX::NonMoose::Meta::Role::Class::VERSION = '0.19';
}
use Moose::Role;
use List::MoreUtils qw(any);
@@ -30,14 +30,25 @@
unless $cc_meta->can('does_role')
&& $cc_meta->does_role('MooseX::NonMoose::Meta::Role::Constructor');
+ # XXX: get constructor name from the constructor metaclass?
+ my $local_constructor = $self->get_method('new');
+ if (!defined($local_constructor)) {
+ warn "Not inlining a constructor for " . $self->name . " since "
+ . "its parent " . ($self->superclasses)[0] . " doesn't contain a "
+ . "'new' method. "
+ . "If you are certain you don't need to inline your"
+ . " constructor, specify inline_constructor => 0 in your"
+ . " call to " . $self->name . "->meta->make_immutable\n";
+ return @options;
+ }
+
# do nothing if extends was called, but we then added a method modifier to
# the constructor (this will warn, but that's okay)
# XXX: this is a fairly big hack, but it should cover most of the cases
# that actually show up in practice... it would be nice to do this properly
# though
- # XXX: get constructor name from the constructor metaclass?
return @options
- if $self->get_method('new')->isa('Class::MOP::Method::Wrapped');
+ if $local_constructor->isa('Class::MOP::Method::Wrapped');
# do nothing if we explicitly ask for the constructor to not be inlined
my %options = @options;
@@ -281,7 +292,7 @@
=head1 VERSION
-version 0.18
+version 0.19
=head1 SYNOPSIS
Modified: trunk/libmoosex-nonmoose-perl/lib/MooseX/NonMoose/Meta/Role/Constructor.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-nonmoose-perl/lib/MooseX/NonMoose/Meta/Role/Constructor.pm?rev=70272&op=diff
==============================================================================
--- trunk/libmoosex-nonmoose-perl/lib/MooseX/NonMoose/Meta/Role/Constructor.pm (original)
+++ trunk/libmoosex-nonmoose-perl/lib/MooseX/NonMoose/Meta/Role/Constructor.pm Thu Mar 3 03:42:13 2011
@@ -1,6 +1,6 @@
package MooseX::NonMoose::Meta::Role::Constructor;
BEGIN {
- $MooseX::NonMoose::Meta::Role::Constructor::VERSION = '0.18';
+ $MooseX::NonMoose::Meta::Role::Constructor::VERSION = '0.19';
}
use Moose::Role;
# ABSTRACT: constructor method trait for L<MooseX::NonMoose>
@@ -88,7 +88,7 @@
=head1 VERSION
-version 0.18
+version 0.19
=head1 SYNOPSIS
Modified: trunk/libmoosex-nonmoose-perl/t/00-compile.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-nonmoose-perl/t/00-compile.t?rev=70272&op=diff
==============================================================================
--- trunk/libmoosex-nonmoose-perl/t/00-compile.t (original)
+++ trunk/libmoosex-nonmoose-perl/t/00-compile.t Thu Mar 3 03:42:13 2011
@@ -4,6 +4,9 @@
use warnings;
use Test::More;
+
+
+
use File::Find;
use File::Temp qw{ tempdir };
More information about the Pkg-perl-cvs-commits
mailing list