r69906 - in /branches/upstream/libmoosex-followpbp-perl/current: ./ lib/MooseX/ lib/MooseX/FollowPBP/Role/ t/

jawnsy-guest at users.alioth.debian.org jawnsy-guest at users.alioth.debian.org
Sun Feb 27 16:34:00 UTC 2011


Author: jawnsy-guest
Date: Sun Feb 27 16:33:50 2011
New Revision: 69906

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=69906
Log:
[svn-upgrade] new version libmoosex-followpbp-perl (0.05)

Added:
    branches/upstream/libmoosex-followpbp-perl/current/t/role.t
Removed:
    branches/upstream/libmoosex-followpbp-perl/current/t/release-kwalitee.t
Modified:
    branches/upstream/libmoosex-followpbp-perl/current/Changes
    branches/upstream/libmoosex-followpbp-perl/current/INSTALL
    branches/upstream/libmoosex-followpbp-perl/current/LICENSE
    branches/upstream/libmoosex-followpbp-perl/current/MANIFEST
    branches/upstream/libmoosex-followpbp-perl/current/META.json
    branches/upstream/libmoosex-followpbp-perl/current/META.yml
    branches/upstream/libmoosex-followpbp-perl/current/Makefile.PL
    branches/upstream/libmoosex-followpbp-perl/current/README
    branches/upstream/libmoosex-followpbp-perl/current/SIGNATURE
    branches/upstream/libmoosex-followpbp-perl/current/dist.ini
    branches/upstream/libmoosex-followpbp-perl/current/lib/MooseX/FollowPBP.pm
    branches/upstream/libmoosex-followpbp-perl/current/lib/MooseX/FollowPBP/Role/Attribute.pm
    branches/upstream/libmoosex-followpbp-perl/current/t/release-eol.t

Modified: branches/upstream/libmoosex-followpbp-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-followpbp-perl/current/Changes?rev=69906&op=diff
==============================================================================
--- branches/upstream/libmoosex-followpbp-perl/current/Changes (original)
+++ branches/upstream/libmoosex-followpbp-perl/current/Changes Sun Feb 27 16:33:50 2011
@@ -1,3 +1,13 @@
+0.05   2011-02-26
+
+- In Moose 1.9900+, attributes from roles no longer acquire the consuming
+  class's attribute traits. However, you can apply attribute traits like this
+  one to attributes in roles, and that trait is preserved when the role is
+  applied to a class.
+
+  See the documentation for more details.
+
+
 0.04   2010-07-20
 
 - Respect "is => 'bare'" attributes.

Modified: branches/upstream/libmoosex-followpbp-perl/current/INSTALL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-followpbp-perl/current/INSTALL?rev=69906&op=diff
==============================================================================
--- branches/upstream/libmoosex-followpbp-perl/current/INSTALL (original)
+++ branches/upstream/libmoosex-followpbp-perl/current/INSTALL Sun Feb 27 16:33:50 2011
@@ -38,7 +38,7 @@
 
 ## Documentation
 
-MooseX-FollowPBP documentation is available as in POD.
+MooseX-FollowPBP documentation is available as POD.
 You can run perldoc from a shell to read the documentation:
 
     % perldoc MooseX::FollowPBP

Modified: branches/upstream/libmoosex-followpbp-perl/current/LICENSE
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-followpbp-perl/current/LICENSE?rev=69906&op=diff
==============================================================================
--- branches/upstream/libmoosex-followpbp-perl/current/LICENSE (original)
+++ branches/upstream/libmoosex-followpbp-perl/current/LICENSE Sun Feb 27 16:33:50 2011
@@ -1,8 +1,8 @@
-This software is Copyright (c) 2010 by Dave Rolsky.
+This software is Copyright (c) 2011 by Dave Rolsky.
 
 This is free software, licensed under:
 
-  The Artistic License 2.0
+  The Artistic License 2.0 (GPL Compatible)
 
 		       The Artistic License 2.0
 

Modified: branches/upstream/libmoosex-followpbp-perl/current/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-followpbp-perl/current/MANIFEST?rev=69906&op=diff
==============================================================================
--- branches/upstream/libmoosex-followpbp-perl/current/MANIFEST (original)
+++ branches/upstream/libmoosex-followpbp-perl/current/MANIFEST Sun Feb 27 16:33:50 2011
@@ -12,8 +12,8 @@
 lib/MooseX/FollowPBP/Role/Attribute.pm
 t/basic.t
 t/release-eol.t
-t/release-kwalitee.t
 t/release-no-tabs.t
 t/release-pod-coverage.t
 t/release-pod-spell.t
 t/release-pod-syntax.t
+t/role.t

Modified: branches/upstream/libmoosex-followpbp-perl/current/META.json
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-followpbp-perl/current/META.json?rev=69906&op=diff
==============================================================================
--- branches/upstream/libmoosex-followpbp-perl/current/META.json (original)
+++ branches/upstream/libmoosex-followpbp-perl/current/META.json Sun Feb 27 16:33:50 2011
@@ -4,7 +4,7 @@
       "Dave Rolsky <autarch at urth.org>"
    ],
    "dynamic_config" : 0,
-   "generated_by" : "Dist::Zilla version 4.101900, CPAN::Meta::Converter version 2.101670",
+   "generated_by" : "Dist::Zilla version 4.200004, CPAN::Meta::Converter version 2.110240",
    "license" : [
       "artistic_2"
    ],
@@ -21,7 +21,7 @@
       },
       "runtime" : {
          "requires" : {
-            "Moose" : "0.94"
+            "Moose" : "1.16"
          }
       },
       "test" : {
@@ -42,6 +42,6 @@
          "web" : "http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo/MooseX-FollowPBP.git;a=summary"
       }
    },
-   "version" : "0.04"
+   "version" : "0.05"
 }
 

Modified: branches/upstream/libmoosex-followpbp-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-followpbp-perl/current/META.yml?rev=69906&op=diff
==============================================================================
--- branches/upstream/libmoosex-followpbp-perl/current/META.yml (original)
+++ branches/upstream/libmoosex-followpbp-perl/current/META.yml Sun Feb 27 16:33:50 2011
@@ -7,15 +7,15 @@
 configure_requires:
   ExtUtils::MakeMaker: 6.31
 dynamic_config: 0
-generated_by: 'Dist::Zilla version 4.101900, CPAN::Meta::Converter version 2.101670'
+generated_by: 'Dist::Zilla version 4.200004, CPAN::Meta::Converter version 2.110240'
 license: artistic_2
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
   version: 1.4
 name: MooseX-FollowPBP
 requires:
-  Moose: 0.94
+  Moose: 1.16
 resources:
   bugtracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=MooseX-FollowPBP
   repository: git://git.moose.perl.org/MooseX-FollowPBP.git
-version: 0.04
+version: 0.05

Modified: branches/upstream/libmoosex-followpbp-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-followpbp-perl/current/Makefile.PL?rev=69906&op=diff
==============================================================================
--- branches/upstream/libmoosex-followpbp-perl/current/Makefile.PL (original)
+++ branches/upstream/libmoosex-followpbp-perl/current/Makefile.PL Sun Feb 27 16:33:50 2011
@@ -22,9 +22,9 @@
   'LICENSE' => 'artistic_2',
   'NAME' => 'MooseX::FollowPBP',
   'PREREQ_PM' => {
-    'Moose' => '0.94'
+    'Moose' => '1.16'
   },
-  'VERSION' => '0.04',
+  'VERSION' => '0.05',
   'test' => {
     'TESTS' => 't/*.t'
   }

Modified: branches/upstream/libmoosex-followpbp-perl/current/README
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-followpbp-perl/current/README?rev=69906&op=diff
==============================================================================
--- branches/upstream/libmoosex-followpbp-perl/current/README (original)
+++ branches/upstream/libmoosex-followpbp-perl/current/README Sun Feb 27 16:33:50 2011
@@ -1,14 +1,14 @@
 
 
 This archive contains the distribution MooseX-FollowPBP,
-version 0.04:
+version 0.05:
 
   Name your accessors get_foo() and set_foo()
 
-This software is Copyright (c) 2010 by Dave Rolsky.
+This software is Copyright (c) 2011 by Dave Rolsky.
 
 This is free software, licensed under:
 
-  The Artistic License 2.0
+  The Artistic License 2.0 (GPL Compatible)
 
 

Modified: branches/upstream/libmoosex-followpbp-perl/current/SIGNATURE
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-followpbp-perl/current/SIGNATURE?rev=69906&op=diff
==============================================================================
--- branches/upstream/libmoosex-followpbp-perl/current/SIGNATURE (original)
+++ branches/upstream/libmoosex-followpbp-perl/current/SIGNATURE Sun Feb 27 16:33:50 2011
@@ -1,5 +1,5 @@
 This file contains message digests of all files listed in MANIFEST,
-signed via the Module::Signature module, version 0.61.
+signed via the Module::Signature module, version 0.66.
 
 To verify the content in this distribution, first make sure you have
 Module::Signature installed, then type:
@@ -14,28 +14,28 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-SHA1 0a07a507c78c3627d133e9682e3e87e563ea531c Changes
-SHA1 bf82cb551685805c60f322d035eaf4c716d41ecb INSTALL
-SHA1 23c628b4a8a36738405ccdacaeb912d2e727b4c0 LICENSE
-SHA1 acef0d84fb59cdd7e64b975050e1df12230abfdb MANIFEST
-SHA1 f2321163f3993e324576b7eaf32ce40f2f686684 META.json
-SHA1 41e93f3967102e9cdab5ff936503459640bf749d META.yml
-SHA1 584e32c3b7c02b4392a890ab510960353a58d3e3 Makefile.PL
-SHA1 90f469351d5944b3ff6444e0df7cf3d8311103ae README
-SHA1 de259567bf6029a6579abe6dbc5883bb897c191b dist.ini
-SHA1 cc967c63e0dc47ae2f01a2a2976270ddc269d3d1 lib/MooseX/FollowPBP.pm
-SHA1 c38de5a57db2699f407fe6aac4133cdc6397c688 lib/MooseX/FollowPBP/Role/Attribute.pm
+SHA1 abf5ca34a025f45c72a145830f9fef34677a0a9c Changes
+SHA1 27291faeba400eab6879fdc0b00e3e53e47233e7 INSTALL
+SHA1 c715d20265d2931c7564fc64abfdc4f8ff33e297 LICENSE
+SHA1 35d3f4ec9c322624a3bd6ee78a260ba6851a40e7 MANIFEST
+SHA1 3bb9eb6d3ea2285d2caf65fd9ffd79613c11f529 META.json
+SHA1 45c628d53551ee1091ae64d742aa2313dc94e747 META.yml
+SHA1 99c1e7f806ff1b92f42049e7bc9b16c438d7cdcd Makefile.PL
+SHA1 70b09749ec37ef7a7f4c852119f31e5e9e9d60c5 README
+SHA1 9e0946ba098a68edc9204cff12ed21a3331bec8e dist.ini
+SHA1 1ee2a9b16b8d6f22f59412f659fde708dfd404e2 lib/MooseX/FollowPBP.pm
+SHA1 823a4ff0b528ab8536d54b7f438ee092f2a4c9e7 lib/MooseX/FollowPBP/Role/Attribute.pm
 SHA1 33235c2593361ec8d256ff6dc65fdd7646189c40 t/basic.t
-SHA1 24b525e3c18f37f8022a01ec30de757cefb679ff t/release-eol.t
-SHA1 961a1e2c92d836c8cad2d34b784cbc75345dec63 t/release-kwalitee.t
+SHA1 a032c41ef6887fab1b900669c2d304fab46680e2 t/release-eol.t
 SHA1 455d1dd1867212a665ad5ea4126b572411de300c t/release-no-tabs.t
 SHA1 9433c240fe590bc404ab68ff63984df763e347ed t/release-pod-coverage.t
 SHA1 cb3e2ea10fc7e63d3c8c82561439919d5780bace t/release-pod-spell.t
 SHA1 9775e90d40f094f3e5a23c695d6e6e436a2232c3 t/release-pod-syntax.t
+SHA1 2a2ce8b635d1df973c5ca6656261faedbd84e90f t/role.t
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.10 (GNU/Linux)
 
-iEYEARECAAYFAkxGPUsACgkQIgMCsV8qvRKkqgCeMfn1oJsPvWIvnH2il/8kDQRC
-QvMAoJJETSK4udlvA6a9/dqgR695uzkX
-=tVgv
+iEYEARECAAYFAk1pTQIACgkQIgMCsV8qvRLsnACfbIS/o1VoWRjqhX+ePfltsahM
+LhIAnjwr0Bjaz9hWxZcvudv0l+QlzDyj
+=wdkv
 -----END PGP SIGNATURE-----

Modified: branches/upstream/libmoosex-followpbp-perl/current/dist.ini
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-followpbp-perl/current/dist.ini?rev=69906&op=diff
==============================================================================
--- branches/upstream/libmoosex-followpbp-perl/current/dist.ini (original)
+++ branches/upstream/libmoosex-followpbp-perl/current/dist.ini Sun Feb 27 16:33:50 2011
@@ -1,8 +1,10 @@
-name = MooseX-FollowPBP
+name    = MooseX-FollowPBP
 author  = Dave Rolsky <autarch at urth.org>
-copyright_year = 2010
+license = Artistic_2_0
+copyright_holder = Dave Rolsky
+copyright_year   = 2011
 
-version = 0.04
+version = 0.05
 
 [@Basic]
 
@@ -20,7 +22,6 @@
 
 [PkgVersion]
 
-[KwaliteeTests]
 [PodTests]
 [NoTabsTests]
 [EOLTests]
@@ -29,7 +30,7 @@
 [CheckChangeLog]
 
 [Prereqs]
-Moose = 0.94
+Moose = 1.16
 
 [Prereqs / TestRequires]
 Test::More = 0.88

Modified: branches/upstream/libmoosex-followpbp-perl/current/lib/MooseX/FollowPBP.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-followpbp-perl/current/lib/MooseX/FollowPBP.pm?rev=69906&op=diff
==============================================================================
--- branches/upstream/libmoosex-followpbp-perl/current/lib/MooseX/FollowPBP.pm (original)
+++ branches/upstream/libmoosex-followpbp-perl/current/lib/MooseX/FollowPBP.pm Sun Feb 27 16:33:50 2011
@@ -1,6 +1,6 @@
 package MooseX::FollowPBP;
 BEGIN {
-  $MooseX::FollowPBP::VERSION = '0.04';
+  $MooseX::FollowPBP::VERSION = '0.05';
 }
 
 use strict;
@@ -11,11 +11,17 @@
 use Moose::Util::MetaRole;
 use MooseX::FollowPBP::Role::Attribute;
 
-Moose::Exporter->setup_import_methods(
+my %metaroles = (
     class_metaroles => {
         attribute => ['MooseX::FollowPBP::Role::Attribute'],
     },
 );
+
+$metaroles{role_metaroles} = {
+    applied_attribute => ['MooseX::FollowPBP::Role::Attribute'],
+} if $Moose::VERSION >= 1.9900;
+
+Moose::Exporter->setup_import_methods(%metaroles);
 
 1;
 
@@ -31,7 +37,7 @@
 
 =head1 VERSION
 
-version 0.04
+version 0.05
 
 =head1 SYNOPSIS
 
@@ -55,6 +61,19 @@
 If you explicitly set a "reader" or "writer" name when creating an
 attribute, then that attribute's naming scheme is left unchanged.
 
+=head1 ACCESSORS IN ROLES
+
+Prior to version 1.9900 of L<Moose>, attributes added to a class ended up with
+that class's attribute traits. That means that if your class used
+C<MooseX::FollowPBP>, any attributes provided by roles you consumed had the
+semi-affordance style of accessor.
+
+As of Moose 1.9900, that is no longer the case. Attributes provided by roles
+no longer acquire the consuming class's attribute traits. However, with Moose
+1.9900+, you can now use C<MooseX::FollowPBP> directly in roles. Attributes
+defined by that role will have semi-affordance style accessors, regardless of
+what attribute traits the consuming class has.
+
 =head1 BUGS
 
 Please report any bugs or feature requests to
@@ -64,15 +83,15 @@
 
 =head1 AUTHOR
 
-  Dave Rolsky <autarch at urth.org>
+Dave Rolsky <autarch at urth.org>
 
 =head1 COPYRIGHT AND LICENSE
 
-This software is Copyright (c) 2010 by Dave Rolsky.
+This software is Copyright (c) 2011 by Dave Rolsky.
 
 This is free software, licensed under:
 
-  The Artistic License 2.0
+  The Artistic License 2.0 (GPL Compatible)
 
 =cut
 

Modified: branches/upstream/libmoosex-followpbp-perl/current/lib/MooseX/FollowPBP/Role/Attribute.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-followpbp-perl/current/lib/MooseX/FollowPBP/Role/Attribute.pm?rev=69906&op=diff
==============================================================================
--- branches/upstream/libmoosex-followpbp-perl/current/lib/MooseX/FollowPBP/Role/Attribute.pm (original)
+++ branches/upstream/libmoosex-followpbp-perl/current/lib/MooseX/FollowPBP/Role/Attribute.pm Sun Feb 27 16:33:50 2011
@@ -1,6 +1,6 @@
 package MooseX::FollowPBP::Role::Attribute;
 BEGIN {
-  $MooseX::FollowPBP::Role::Attribute::VERSION = '0.04';
+  $MooseX::FollowPBP::Role::Attribute::VERSION = '0.05';
 }
 
 use strict;
@@ -53,15 +53,16 @@
 
 =head1 VERSION
 
-version 0.04
+version 0.05
 
 =head1 SYNOPSIS
 
-  Moose::Util::MetaRole::apply_metaclass_roles
-      ( for_class => $p{for_class},
-        attribute_metaclass_roles =>
-        ['MooseX::FollowPBP::Role::Attribute'],
-      );
+  Moose::Util::MetaRole::apply_metaclass_roles(
+      for             => $p{for_class},
+      class_metaroles => {
+          attribute => ['MooseX::FollowPBP::Role::Attribute'],
+      },
+  );
 
 =head1 DESCRIPTION
 
@@ -71,15 +72,15 @@
 
 =head1 AUTHOR
 
-  Dave Rolsky <autarch at urth.org>
+Dave Rolsky <autarch at urth.org>
 
 =head1 COPYRIGHT AND LICENSE
 
-This software is Copyright (c) 2010 by Dave Rolsky.
+This software is Copyright (c) 2011 by Dave Rolsky.
 
 This is free software, licensed under:
 
-  The Artistic License 2.0
+  The Artistic License 2.0 (GPL Compatible)
 
 =cut
 

Modified: branches/upstream/libmoosex-followpbp-perl/current/t/release-eol.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-followpbp-perl/current/t/release-eol.t?rev=69906&op=diff
==============================================================================
--- branches/upstream/libmoosex-followpbp-perl/current/t/release-eol.t (original)
+++ branches/upstream/libmoosex-followpbp-perl/current/t/release-eol.t Sun Feb 27 16:33:50 2011
@@ -13,4 +13,4 @@
 eval 'use Test::EOL';
 plan skip_all => 'Test::EOL required' if $@;
 
-all_perl_files_ok();
+all_perl_files_ok({ trailing_whitespace => 1 });

Added: branches/upstream/libmoosex-followpbp-perl/current/t/role.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-followpbp-perl/current/t/role.t?rev=69906&op=file
==============================================================================
--- branches/upstream/libmoosex-followpbp-perl/current/t/role.t (added)
+++ branches/upstream/libmoosex-followpbp-perl/current/t/role.t Sun Feb 27 16:33:50 2011
@@ -1,0 +1,39 @@
+use strict;
+use warnings;
+
+use Test::More;
+
+use Moose ();
+
+plan skip_all => 'This test requires Moose 1.9900+'
+    unless $Moose::VERSION ge '1.9900';
+
+{
+    package Role::SAA;
+
+    use Moose::Role;
+    use MooseX::FollowPBP;
+
+    has 'foo'  => ( is => 'rw' );
+    has '_bar' => ( is => 'rw' );
+}
+
+{
+    package Class;
+
+    use Moose;
+
+    with 'Role::SAA';
+
+    has 'thing'    => ( is => 'rw' );
+    has '_private' => ( is => 'rw' );
+}
+
+can_ok( 'Class', 'thing' );
+ok( ! Class->can('set_thing') );
+can_ok( 'Class', '_private' );
+ok( ! Class->can('_set_private') );
+
+can_ok( 'Class', qw( get_foo set_foo _get_bar _set_bar ) );
+
+done_testing();




More information about the Pkg-perl-cvs-commits mailing list