r71953 - 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
Fri Mar 25 01:38:51 UTC 2011
Author: jawnsy-guest
Date: Fri Mar 25 01:38:32 2011
New Revision: 71953
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=71953
Log:
builds clean, dch -r
Modified:
trunk/libmoosex-nonmoose-perl/Changes
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/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/26-no-new-constructor-error.t
Modified: trunk/libmoosex-nonmoose-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-nonmoose-perl/Changes?rev=71953&op=diff
==============================================================================
--- trunk/libmoosex-nonmoose-perl/Changes (original)
+++ trunk/libmoosex-nonmoose-perl/Changes Fri Mar 25 01:38:32 2011
@@ -1,4 +1,8 @@
Revision history for MooseX-NonMoose
+
+0.20 2011-03-22
+ - fix warning when passing inline_constructor => 0 with no superclass new
+ method (rafl).
0.19 2011-03-02
- don't die if superclass doesn't have a 'new' method
Modified: trunk/libmoosex-nonmoose-perl/META.json
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-nonmoose-perl/META.json?rev=71953&op=diff
==============================================================================
--- trunk/libmoosex-nonmoose-perl/META.json (original)
+++ trunk/libmoosex-nonmoose-perl/META.json Fri Mar 25 01:38:32 2011
@@ -40,7 +40,7 @@
"web" : "http://github.com/doy/moosex-nonmoose"
}
},
- "version" : "0.19",
+ "version" : "0.20",
"x_Dist_Zilla" : {
"plugins" : [
{
Modified: trunk/libmoosex-nonmoose-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-nonmoose-perl/META.yml?rev=71953&op=diff
==============================================================================
--- trunk/libmoosex-nonmoose-perl/META.yml (original)
+++ trunk/libmoosex-nonmoose-perl/META.yml Fri Mar 25 01:38:32 2011
@@ -19,7 +19,7 @@
Moose: 1.15
resources:
repository: git://github.com/doy/moosex-nonmoose.git
-version: 0.19
+version: 0.20
x_Dist_Zilla:
plugins:
-
Modified: trunk/libmoosex-nonmoose-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-nonmoose-perl/Makefile.PL?rev=71953&op=diff
==============================================================================
--- trunk/libmoosex-nonmoose-perl/Makefile.PL (original)
+++ trunk/libmoosex-nonmoose-perl/Makefile.PL Fri Mar 25 01:38:32 2011
@@ -26,7 +26,7 @@
'List::MoreUtils' => '0',
'Moose' => '1.15'
},
- 'VERSION' => '0.19',
+ 'VERSION' => '0.20',
'test' => {
'TESTS' => 't/*.t'
}
Modified: trunk/libmoosex-nonmoose-perl/README
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-nonmoose-perl/README?rev=71953&op=diff
==============================================================================
--- trunk/libmoosex-nonmoose-perl/README (original)
+++ trunk/libmoosex-nonmoose-perl/README Fri Mar 25 01:38:32 2011
@@ -1,7 +1,7 @@
This archive contains the distribution MooseX-NonMoose,
-version 0.19:
+version 0.20:
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=71953&op=diff
==============================================================================
--- trunk/libmoosex-nonmoose-perl/debian/changelog (original)
+++ trunk/libmoosex-nonmoose-perl/debian/changelog Fri Mar 25 01:38:32 2011
@@ -1,3 +1,10 @@
+libmoosex-nonmoose-perl (0.20-1) unstable; urgency=low
+
+ * New upstream release
+ * Add MooseX::InsideOut to B-D-I for testing
+
+ -- Jonathan Yu <jawnsy at cpan.org> Thu, 24 Mar 2011 21:37:17 -0400
+
libmoosex-nonmoose-perl (0.19-1) unstable; urgency=low
[ Jonathan Yu ]
Modified: trunk/libmoosex-nonmoose-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-nonmoose-perl/debian/control?rev=71953&op=diff
==============================================================================
--- trunk/libmoosex-nonmoose-perl/debian/control (original)
+++ trunk/libmoosex-nonmoose-perl/debian/control Fri Mar 25 01:38:32 2011
@@ -3,6 +3,7 @@
Priority: optional
Build-Depends: debhelper (>= 8)
Build-Depends-Indep: perl,
+ libmoosex-insideout-perl,
liblist-moreutils-perl,
libmoose-perl (>= 1.15),
perl (>= 5.10.1) | libtest-simple-perl (>= 0.88),
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=71953&op=diff
==============================================================================
--- trunk/libmoosex-nonmoose-perl/lib/MooseX/NonMoose.pm (original)
+++ trunk/libmoosex-nonmoose-perl/lib/MooseX/NonMoose.pm Fri Mar 25 01:38:32 2011
@@ -1,6 +1,6 @@
package MooseX::NonMoose;
BEGIN {
- $MooseX::NonMoose::VERSION = '0.19';
+ $MooseX::NonMoose::VERSION = '0.20';
}
use Moose::Exporter;
# ABSTRACT: easy subclassing of non-Moose classes
@@ -35,7 +35,7 @@
=head1 VERSION
-version 0.19
+version 0.20
=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=71953&op=diff
==============================================================================
--- trunk/libmoosex-nonmoose-perl/lib/MooseX/NonMoose/InsideOut.pm (original)
+++ trunk/libmoosex-nonmoose-perl/lib/MooseX/NonMoose/InsideOut.pm Fri Mar 25 01:38:32 2011
@@ -1,6 +1,6 @@
package MooseX::NonMoose::InsideOut;
BEGIN {
- $MooseX::NonMoose::InsideOut::VERSION = '0.19';
+ $MooseX::NonMoose::InsideOut::VERSION = '0.20';
}
use Moose::Exporter;
# ABSTRACT: easy subclassing of non-Moose non-hashref classes
@@ -36,7 +36,7 @@
=head1 VERSION
-version 0.19
+version 0.20
=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=71953&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 Fri Mar 25 01:38:32 2011
@@ -1,6 +1,6 @@
package MooseX::NonMoose::Meta::Role::Class;
BEGIN {
- $MooseX::NonMoose::Meta::Role::Class::VERSION = '0.19';
+ $MooseX::NonMoose::Meta::Role::Class::VERSION = '0.20';
}
use Moose::Role;
use List::MoreUtils qw(any);
@@ -29,6 +29,10 @@
return (@options, inline_constructor => 0)
unless $cc_meta->can('does_role')
&& $cc_meta->does_role('MooseX::NonMoose::Meta::Role::Constructor');
+
+ # do nothing if we explicitly ask for the constructor to not be inlined
+ my %options = @options;
+ return @options if !$options{inline_constructor};
# XXX: get constructor name from the constructor metaclass?
my $local_constructor = $self->get_method('new');
@@ -49,10 +53,6 @@
# though
return @options
if $local_constructor->isa('Class::MOP::Method::Wrapped');
-
- # do nothing if we explicitly ask for the constructor to not be inlined
- my %options = @options;
- return @options if !$options{inline_constructor};
# otherwise, explicitly ask for the constructor to be replaced (to suppress
# the warning message), since this is the expected usage, and shouldn't
@@ -292,7 +292,7 @@
=head1 VERSION
-version 0.19
+version 0.20
=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=71953&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 Fri Mar 25 01:38:32 2011
@@ -1,6 +1,6 @@
package MooseX::NonMoose::Meta::Role::Constructor;
BEGIN {
- $MooseX::NonMoose::Meta::Role::Constructor::VERSION = '0.19';
+ $MooseX::NonMoose::Meta::Role::Constructor::VERSION = '0.20';
}
use Moose::Role;
# ABSTRACT: constructor method trait for L<MooseX::NonMoose>
@@ -88,7 +88,7 @@
=head1 VERSION
-version 0.19
+version 0.20
=head1 SYNOPSIS
Modified: trunk/libmoosex-nonmoose-perl/t/26-no-new-constructor-error.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-nonmoose-perl/t/26-no-new-constructor-error.t?rev=71953&op=diff
==============================================================================
--- trunk/libmoosex-nonmoose-perl/t/26-no-new-constructor-error.t (original)
+++ trunk/libmoosex-nonmoose-perl/t/26-no-new-constructor-error.t Fri Mar 25 01:38:32 2011
@@ -23,4 +23,18 @@
}
}
+{
+ package ChildTwo;
+ use Moose;
+ use MooseX::NonMoose;
+ extends 'NonMoose';
+ {
+ my $warning;
+ local $SIG{__WARN__} = sub { $warning = $_[0] };
+ __PACKAGE__->meta->make_immutable(inline_constructor => 0);
+ ::is($warning, undef,
+ "no warning when trying to make_immutable(inline_constructor => 0) without a superclass 'new'");
+ }
+}
+
done_testing;
More information about the Pkg-perl-cvs-commits
mailing list