r52696 - in /trunk/libmoosex-traits-perl: .gitignore Changes MANIFEST MANIFEST.SKIP META.yml README debian/changelog 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:20:22 UTC 2010


Author: jawnsy-guest
Date: Sun Feb 14 01:20:00 2010
New Revision: 52696

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=52696
Log:
New upstream release

Removed:
    trunk/libmoosex-traits-perl/.gitignore
    trunk/libmoosex-traits-perl/README
Modified:
    trunk/libmoosex-traits-perl/Changes
    trunk/libmoosex-traits-perl/MANIFEST
    trunk/libmoosex-traits-perl/MANIFEST.SKIP
    trunk/libmoosex-traits-perl/META.yml
    trunk/libmoosex-traits-perl/debian/changelog
    trunk/libmoosex-traits-perl/lib/MooseX/Traits.pm
    trunk/libmoosex-traits-perl/t/basic.t

Modified: trunk/libmoosex-traits-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-traits-perl/Changes?rev=52696&op=diff
==============================================================================
--- trunk/libmoosex-traits-perl/Changes (original)
+++ trunk/libmoosex-traits-perl/Changes Sun Feb 14 01:20:00 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: trunk/libmoosex-traits-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-traits-perl/MANIFEST?rev=52696&op=diff
==============================================================================
--- trunk/libmoosex-traits-perl/MANIFEST (original)
+++ trunk/libmoosex-traits-perl/MANIFEST Sun Feb 14 01:20:00 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: trunk/libmoosex-traits-perl/MANIFEST.SKIP
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-traits-perl/MANIFEST.SKIP?rev=52696&op=diff
==============================================================================
--- trunk/libmoosex-traits-perl/MANIFEST.SKIP (original)
+++ trunk/libmoosex-traits-perl/MANIFEST.SKIP Sun Feb 14 01:20:00 2010
@@ -1,3 +1,5 @@
+MooseX-Traits-.*
+.gitignore
 .git/
 blib
 pm_to_blib

Modified: trunk/libmoosex-traits-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-traits-perl/META.yml?rev=52696&op=diff
==============================================================================
--- trunk/libmoosex-traits-perl/META.yml (original)
+++ trunk/libmoosex-traits-perl/META.yml Sun Feb 14 01:20:00 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: trunk/libmoosex-traits-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-traits-perl/debian/changelog?rev=52696&op=diff
==============================================================================
--- trunk/libmoosex-traits-perl/debian/changelog (original)
+++ trunk/libmoosex-traits-perl/debian/changelog Sun Feb 14 01:20:00 2010
@@ -1,13 +1,14 @@
-libmoosex-traits-perl (0.07-2) UNRELEASED; urgency=low
+libmoosex-traits-perl (0.08-1) UNRELEASED; urgency=low
+	
+  [ Jonathan Yu ]
+  * New upstream release
+  * Update short description
 
   [ Ryan Niebur ]
   * Update jawnsy's email address
   * Update ryan52's email address
 
-  [ Jonathan Yu ]
-  * Update short description
-
- -- Jonathan Yu <jawnsy at cpan.org>  Fri, 20 Nov 2009 20:24:44 -0500
+ -- Jonathan Yu <jawnsy at cpan.org>  Sat, 13 Feb 2010 20:29:55 -0500
 
 libmoosex-traits-perl (0.07-1) unstable; urgency=low
 

Modified: trunk/libmoosex-traits-perl/lib/MooseX/Traits.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-traits-perl/lib/MooseX/Traits.pm?rev=52696&op=diff
==============================================================================
--- trunk/libmoosex-traits-perl/lib/MooseX/Traits.pm (original)
+++ trunk/libmoosex-traits-perl/lib/MooseX/Traits.pm Sun Feb 14 01:20:00 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: trunk/libmoosex-traits-perl/t/basic.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-traits-perl/t/basic.t?rev=52696&op=diff
==============================================================================
--- trunk/libmoosex-traits-perl/t/basic.t (original)
+++ trunk/libmoosex-traits-perl/t/basic.t Sun Feb 14 01:20:00 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