r52694 - in /branches/upstream/libmoosex-traits-perl/current: .gitignore Changes MANIFEST MANIFEST.SKIP META.yml README lib/MooseX/Traits.pm t/basic.t
jawnsy-guest at users.alioth.debian.org
jawnsy-guest at users.alioth.debian.org
Sun Feb 14 01:10:52 UTC 2010
Author: jawnsy-guest
Date: Sun Feb 14 01:09:11 2010
New Revision: 52694
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=52694
Log:
[svn-upgrade] Integrating new upstream version, libmoosex-traits-perl (0.08)
Removed:
branches/upstream/libmoosex-traits-perl/current/.gitignore
branches/upstream/libmoosex-traits-perl/current/README
Modified:
branches/upstream/libmoosex-traits-perl/current/Changes
branches/upstream/libmoosex-traits-perl/current/MANIFEST
branches/upstream/libmoosex-traits-perl/current/MANIFEST.SKIP
branches/upstream/libmoosex-traits-perl/current/META.yml
branches/upstream/libmoosex-traits-perl/current/lib/MooseX/Traits.pm
branches/upstream/libmoosex-traits-perl/current/t/basic.t
Modified: branches/upstream/libmoosex-traits-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-traits-perl/current/Changes?rev=52694&op=diff
==============================================================================
--- branches/upstream/libmoosex-traits-perl/current/Changes (original)
+++ branches/upstream/libmoosex-traits-perl/current/Changes Sun Feb 14 01:09:11 2010
@@ -1,3 +1,8 @@
+0.08 Sat Feb 13 17:05:23 GMT 2010
+ - Allow you to pass traits => 'OneTrait' rather than having to say
+ traits => ['OneTrait'] to help when getting traits from things that
+ want to send a scalar (e.g. Config::General)
+
0.07 Sun Aug 16 10:38:47 CDT 2009
- deprecate apply_traits ("no warnings" to disable warning)
- add MooseX::Traits::Util so that other modules can resolve trait names
Modified: branches/upstream/libmoosex-traits-perl/current/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-traits-perl/current/MANIFEST?rev=52694&op=diff
==============================================================================
--- branches/upstream/libmoosex-traits-perl/current/MANIFEST (original)
+++ branches/upstream/libmoosex-traits-perl/current/MANIFEST Sun Feb 14 01:09:11 2010
@@ -1,4 +1,3 @@
-.gitignore
Changes
inc/Module/Install.pm
inc/Module/Install/Base.pm
@@ -14,7 +13,6 @@
MANIFEST This list of files
MANIFEST.SKIP
META.yml
-README
t/00-load.t
t/author/pod-coverage.t
t/author/pod.t
Modified: branches/upstream/libmoosex-traits-perl/current/MANIFEST.SKIP
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-traits-perl/current/MANIFEST.SKIP?rev=52694&op=diff
==============================================================================
--- branches/upstream/libmoosex-traits-perl/current/MANIFEST.SKIP (original)
+++ branches/upstream/libmoosex-traits-perl/current/MANIFEST.SKIP Sun Feb 14 01:09:11 2010
@@ -1,3 +1,5 @@
+MooseX-Traits-.*
+.gitignore
.git/
blib
pm_to_blib
Modified: branches/upstream/libmoosex-traits-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-traits-perl/current/META.yml?rev=52694&op=diff
==============================================================================
--- branches/upstream/libmoosex-traits-perl/current/META.yml (original)
+++ branches/upstream/libmoosex-traits-perl/current/META.yml Sun Feb 14 01:09:11 2010
@@ -11,7 +11,7 @@
configure_requires:
ExtUtils::MakeMaker: 6.42
distribution_type: module
-generated_by: 'Module::Install version 0.91'
+generated_by: 'Module::Install version 0.910'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -29,4 +29,4 @@
namespace::autoclean: 0
resources:
license: http://dev.perl.org/licenses/
-version: 0.07
+version: 0.08
Modified: branches/upstream/libmoosex-traits-perl/current/lib/MooseX/Traits.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-traits-perl/current/lib/MooseX/Traits.pm?rev=52694&op=diff
==============================================================================
--- branches/upstream/libmoosex-traits-perl/current/lib/MooseX/Traits.pm (original)
+++ branches/upstream/libmoosex-traits-perl/current/lib/MooseX/Traits.pm Sun Feb 14 01:09:11 2010
@@ -8,7 +8,7 @@
use namespace::autoclean;
-our $VERSION = '0.07';
+our $VERSION = '0.08';
our $AUTHORITY = 'id:JROCKWAY';
has '_trait_namespace' => (
@@ -29,7 +29,8 @@
%args = @_;
}
- my $new_class = new_class_with_traits($class, @{ delete $args{traits} || [] });
+ my $traits = delete $args{traits} || [];
+ my $new_class = new_class_with_traits($class, @{ ref($traits) ? $traits : [ $traits ] } );
my $constructor = $new_class->constructor_name;
confess "$class ($new_class) does not have a constructor defined via the MOP?"
Modified: branches/upstream/libmoosex-traits-perl/current/t/basic.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-traits-perl/current/t/basic.t?rev=52694&op=diff
==============================================================================
--- branches/upstream/libmoosex-traits-perl/current/t/basic.t (original)
+++ branches/upstream/libmoosex-traits-perl/current/t/basic.t Sun Feb 14 01:09:11 2010
@@ -1,6 +1,6 @@
use strict;
use warnings;
-use Test::More tests => 34;
+use Test::More tests => 37;
use Test::Exception;
use MooseX::Traits; # for "no warnings ..."
@@ -32,8 +32,8 @@
}
-{
- my $instance = Class->new_with_traits( traits => ['Trait'], foo => 'hello' );
+foreach my $trait ( 'Trait', ['Trait' ] ) {
+ my $instance = Class->new_with_traits( traits => $trait, foo => 'hello' );
isa_ok $instance, 'Class';
can_ok $instance, 'foo';
is $instance->foo, 'hello';
More information about the Pkg-perl-cvs-commits
mailing list