r72880 - in /trunk/libmoosex-lazyrequire-perl: ./ debian/ lib/MooseX/ lib/MooseX/LazyRequire/Meta/Attribute/Trait/ t/
ghedo-guest at users.alioth.debian.org
ghedo-guest at users.alioth.debian.org
Wed Apr 20 19:28:36 UTC 2011
Author: ghedo-guest
Date: Wed Apr 20 19:28:08 2011
New Revision: 72880
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=72880
Log:
* New upstream release
* Update upstream copyright year
* Replace "Debian GNU/Linux" with just "Debian" in debian/copyright
* Fix copyright-refers-to-symlink-license
* Bump debhelper compat level to 8
Modified:
trunk/libmoosex-lazyrequire-perl/Changes
trunk/libmoosex-lazyrequire-perl/LICENSE
trunk/libmoosex-lazyrequire-perl/META.json
trunk/libmoosex-lazyrequire-perl/META.yml
trunk/libmoosex-lazyrequire-perl/Makefile.PL
trunk/libmoosex-lazyrequire-perl/README
trunk/libmoosex-lazyrequire-perl/debian/changelog
trunk/libmoosex-lazyrequire-perl/debian/compat
trunk/libmoosex-lazyrequire-perl/debian/control
trunk/libmoosex-lazyrequire-perl/debian/copyright
trunk/libmoosex-lazyrequire-perl/dist.ini
trunk/libmoosex-lazyrequire-perl/lib/MooseX/LazyRequire.pm
trunk/libmoosex-lazyrequire-perl/lib/MooseX/LazyRequire/Meta/Attribute/Trait/LazyRequire.pm
trunk/libmoosex-lazyrequire-perl/t/basic.t
Modified: trunk/libmoosex-lazyrequire-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-lazyrequire-perl/Changes?rev=72880&op=diff
==============================================================================
--- trunk/libmoosex-lazyrequire-perl/Changes (original)
+++ trunk/libmoosex-lazyrequire-perl/Changes Wed Apr 20 19:28:08 2011
@@ -1,3 +1,7 @@
+0.07 Mon, 04 Apr 2011 18:08:34 +0200
+ * Allow this module to be used with attributes in roles when using Moose
+ 1.9900+ (Dave Rolsky).
+
0.06 Mon, 19 Jul 2010 05:19:42 +0200
* Updated to avoid warnings from Moose 1.09 (Dave Rolsky).
Modified: trunk/libmoosex-lazyrequire-perl/LICENSE
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-lazyrequire-perl/LICENSE?rev=72880&op=diff
==============================================================================
--- trunk/libmoosex-lazyrequire-perl/LICENSE (original)
+++ trunk/libmoosex-lazyrequire-perl/LICENSE Wed Apr 20 19:28:08 2011
@@ -1,4 +1,4 @@
-This software is copyright (c) 2010 by Florian Ragwitz.
+This software is copyright (c) 2011 by Florian Ragwitz.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
@@ -12,7 +12,7 @@
--- The GNU General Public License, Version 1, February 1989 ---
-This software is Copyright (c) 2010 by Florian Ragwitz.
+This software is Copyright (c) 2011 by Florian Ragwitz.
This is free software, licensed under:
@@ -270,7 +270,7 @@
--- The Artistic License 1.0 ---
-This software is Copyright (c) 2010 by Florian Ragwitz.
+This software is Copyright (c) 2011 by Florian Ragwitz.
This is free software, licensed under:
Modified: trunk/libmoosex-lazyrequire-perl/META.json
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-lazyrequire-perl/META.json?rev=72880&op=diff
==============================================================================
--- trunk/libmoosex-lazyrequire-perl/META.json (original)
+++ trunk/libmoosex-lazyrequire-perl/META.json Wed Apr 20 19:28:08 2011
@@ -1,10 +1,11 @@
{
"abstract" : "Required attributes which fail only when trying to use them",
"author" : [
- "Florian Ragwitz <rafl at debian.org>"
+ "Florian Ragwitz <rafl at debian.org>",
+ "Dave Rolsky <autarch at urth.org>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 4.101831, CPAN::Meta::Converter version 2.101670",
+ "generated_by" : "Dist::Zilla version 4.200004, CPAN::Meta::Converter version 2.102400",
"license" : [
"perl_5"
],
@@ -50,98 +51,98 @@
"web" : "http://github.com/rafl/moosex-lazyrequire"
}
},
- "version" : "0.06",
+ "version" : "0.07",
"x_Dist_Zilla" : {
"plugins" : [
{
"class" : "Dist::Zilla::Plugin::GatherDir",
"name" : "@FLORA/@Basic/GatherDir",
- "version" : "4.101831"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::PruneCruft",
"name" : "@FLORA/@Basic/PruneCruft",
- "version" : "4.101831"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::ManifestSkip",
"name" : "@FLORA/@Basic/ManifestSkip",
- "version" : "4.101831"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::MetaYAML",
"name" : "@FLORA/@Basic/MetaYAML",
- "version" : "4.101831"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::License",
"name" : "@FLORA/@Basic/License",
- "version" : "4.101831"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::Readme",
"name" : "@FLORA/@Basic/Readme",
- "version" : "4.101831"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::ExtraTests",
"name" : "@FLORA/@Basic/ExtraTests",
- "version" : "4.101831"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::ExecDir",
"name" : "@FLORA/@Basic/ExecDir",
- "version" : "4.101831"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::ShareDir",
"name" : "@FLORA/@Basic/ShareDir",
- "version" : "4.101831"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::MakeMaker",
"name" : "@FLORA/@Basic/MakeMaker",
- "version" : "4.101831"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::Manifest",
"name" : "@FLORA/@Basic/Manifest",
- "version" : "4.101831"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::TestRelease",
"name" : "@FLORA/@Basic/TestRelease",
- "version" : "4.101831"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::ConfirmRelease",
"name" : "@FLORA/@Basic/ConfirmRelease",
- "version" : "4.101831"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::UploadToCPAN",
"name" : "@FLORA/@Basic/UploadToCPAN",
- "version" : "4.101831"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::MetaConfig",
"name" : "@FLORA/MetaConfig",
- "version" : "4.101831"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::MetaJSON",
"name" : "@FLORA/MetaJSON",
- "version" : "4.101831"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::PkgVersion",
"name" : "@FLORA/PkgVersion",
- "version" : "4.101831"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::PodSyntaxTests",
"name" : "@FLORA/PodSyntaxTests",
- "version" : "4.101831"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::NoTabsTests",
@@ -151,17 +152,17 @@
{
"class" : "Dist::Zilla::Plugin::PodCoverageTests",
"name" : "@FLORA/PodCoverageTests",
- "version" : "4.101831"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::MetaResources",
"name" : "@FLORA/MetaResources",
- "version" : "4.101831"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::Authority",
"name" : "@FLORA/Authority",
- "version" : "1.000"
+ "version" : "1.002"
},
{
"class" : "Dist::Zilla::Plugin::EOLTests",
@@ -171,32 +172,32 @@
{
"class" : "Dist::Zilla::Plugin::PodWeaver",
"name" : "@FLORA/PodWeaver",
- "version" : "3.101640"
- },
- {
- "class" : "Dist::Zilla::Plugin::AutoPrereq",
- "name" : "@FLORA/AutoPrereq",
- "version" : "4.101831"
+ "version" : "3.101641"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::AutoPrereqs",
+ "name" : "AutoPrereqs",
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":InstallModules",
- "version" : "4.101831"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":TestFiles",
- "version" : "4.101831"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ExecFiles",
- "version" : "4.101831"
+ "version" : "4.200004"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ShareFiles",
- "version" : "4.101831"
+ "version" : "4.200004"
}
],
"zilla" : {
@@ -204,7 +205,7 @@
"config" : {
"is_trial" : 0
},
- "version" : "4.101831"
+ "version" : "4.200004"
}
},
"x_authority" : "cpan:FLORA"
Modified: trunk/libmoosex-lazyrequire-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-lazyrequire-perl/META.yml?rev=72880&op=diff
==============================================================================
--- trunk/libmoosex-lazyrequire-perl/META.yml (original)
+++ trunk/libmoosex-lazyrequire-perl/META.yml Wed Apr 20 19:28:08 2011
@@ -2,13 +2,14 @@
abstract: 'Required attributes which fail only when trying to use them'
author:
- 'Florian Ragwitz <rafl at debian.org>'
+ - 'Dave Rolsky <autarch at urth.org>'
build_requires:
Test::Exception: 0
Test::More: 0.88
configure_requires:
ExtUtils::MakeMaker: 6.31
dynamic_config: 0
-generated_by: 'Dist::Zilla version 4.101831, CPAN::Meta::Converter version 2.101670'
+generated_by: 'Dist::Zilla version 4.200004, CPAN::Meta::Converter version 2.102400'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -26,81 +27,81 @@
bugtracker: http://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-LazyRequire
homepage: http://search.cpan.org/dist/MooseX-LazyRequire
repository: git://github.com/rafl/moosex-lazyrequire.git
-version: 0.06
+version: 0.07
x_Dist_Zilla:
plugins:
-
class: Dist::Zilla::Plugin::GatherDir
name: '@FLORA/@Basic/GatherDir'
- version: 4.101831
+ version: 4.200004
-
class: Dist::Zilla::Plugin::PruneCruft
name: '@FLORA/@Basic/PruneCruft'
- version: 4.101831
+ version: 4.200004
-
class: Dist::Zilla::Plugin::ManifestSkip
name: '@FLORA/@Basic/ManifestSkip'
- version: 4.101831
+ version: 4.200004
-
class: Dist::Zilla::Plugin::MetaYAML
name: '@FLORA/@Basic/MetaYAML'
- version: 4.101831
+ version: 4.200004
-
class: Dist::Zilla::Plugin::License
name: '@FLORA/@Basic/License'
- version: 4.101831
+ version: 4.200004
-
class: Dist::Zilla::Plugin::Readme
name: '@FLORA/@Basic/Readme'
- version: 4.101831
+ version: 4.200004
-
class: Dist::Zilla::Plugin::ExtraTests
name: '@FLORA/@Basic/ExtraTests'
- version: 4.101831
+ version: 4.200004
-
class: Dist::Zilla::Plugin::ExecDir
name: '@FLORA/@Basic/ExecDir'
- version: 4.101831
+ version: 4.200004
-
class: Dist::Zilla::Plugin::ShareDir
name: '@FLORA/@Basic/ShareDir'
- version: 4.101831
+ version: 4.200004
-
class: Dist::Zilla::Plugin::MakeMaker
name: '@FLORA/@Basic/MakeMaker'
- version: 4.101831
+ version: 4.200004
-
class: Dist::Zilla::Plugin::Manifest
name: '@FLORA/@Basic/Manifest'
- version: 4.101831
+ version: 4.200004
-
class: Dist::Zilla::Plugin::TestRelease
name: '@FLORA/@Basic/TestRelease'
- version: 4.101831
+ version: 4.200004
-
class: Dist::Zilla::Plugin::ConfirmRelease
name: '@FLORA/@Basic/ConfirmRelease'
- version: 4.101831
+ version: 4.200004
-
class: Dist::Zilla::Plugin::UploadToCPAN
name: '@FLORA/@Basic/UploadToCPAN'
- version: 4.101831
+ version: 4.200004
-
class: Dist::Zilla::Plugin::MetaConfig
name: '@FLORA/MetaConfig'
- version: 4.101831
+ version: 4.200004
-
class: Dist::Zilla::Plugin::MetaJSON
name: '@FLORA/MetaJSON'
- version: 4.101831
+ version: 4.200004
-
class: Dist::Zilla::Plugin::PkgVersion
name: '@FLORA/PkgVersion'
- version: 4.101831
+ version: 4.200004
-
class: Dist::Zilla::Plugin::PodSyntaxTests
name: '@FLORA/PodSyntaxTests'
- version: 4.101831
+ version: 4.200004
-
class: Dist::Zilla::Plugin::NoTabsTests
name: '@FLORA/NoTabsTests'
@@ -108,15 +109,15 @@
-
class: Dist::Zilla::Plugin::PodCoverageTests
name: '@FLORA/PodCoverageTests'
- version: 4.101831
+ version: 4.200004
-
class: Dist::Zilla::Plugin::MetaResources
name: '@FLORA/MetaResources'
- version: 4.101831
+ version: 4.200004
-
class: Dist::Zilla::Plugin::Authority
name: '@FLORA/Authority'
- version: 1.000
+ version: 1.002
-
class: Dist::Zilla::Plugin::EOLTests
name: '@FLORA/EOLTests'
@@ -124,30 +125,30 @@
-
class: Dist::Zilla::Plugin::PodWeaver
name: '@FLORA/PodWeaver'
- version: 3.101640
+ version: 3.101641
-
- class: Dist::Zilla::Plugin::AutoPrereq
- name: '@FLORA/AutoPrereq'
- version: 4.101831
+ class: Dist::Zilla::Plugin::AutoPrereqs
+ name: AutoPrereqs
+ version: 4.200004
-
class: Dist::Zilla::Plugin::FinderCode
name: ':InstallModules'
- version: 4.101831
+ version: 4.200004
-
class: Dist::Zilla::Plugin::FinderCode
name: ':TestFiles'
- version: 4.101831
+ version: 4.200004
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ExecFiles'
- version: 4.101831
+ version: 4.200004
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ShareFiles'
- version: 4.101831
+ version: 4.200004
zilla:
class: Dist::Zilla::Dist::Builder
config:
is_trial: 0
- version: 4.101831
+ version: 4.200004
x_authority: cpan:FLORA
Modified: trunk/libmoosex-lazyrequire-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-lazyrequire-perl/Makefile.PL?rev=72880&op=diff
==============================================================================
--- trunk/libmoosex-lazyrequire-perl/Makefile.PL (original)
+++ trunk/libmoosex-lazyrequire-perl/Makefile.PL Wed Apr 20 19:28:08 2011
@@ -10,7 +10,7 @@
my %WriteMakefileArgs = (
'ABSTRACT' => 'Required attributes which fail only when trying to use them',
- 'AUTHOR' => 'Florian Ragwitz <rafl at debian.org>',
+ 'AUTHOR' => 'Florian Ragwitz <rafl at debian.org>, Dave Rolsky <autarch at urth.org>',
'BUILD_REQUIRES' => {
'Test::Exception' => '0',
'Test::More' => '0.88'
@@ -31,7 +31,7 @@
'aliased' => '0.30',
'namespace::autoclean' => '0'
},
- 'VERSION' => '0.06',
+ 'VERSION' => '0.07',
'test' => {
'TESTS' => 't/*.t'
}
Modified: trunk/libmoosex-lazyrequire-perl/README
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-lazyrequire-perl/README?rev=72880&op=diff
==============================================================================
--- trunk/libmoosex-lazyrequire-perl/README (original)
+++ trunk/libmoosex-lazyrequire-perl/README Wed Apr 20 19:28:08 2011
@@ -1,11 +1,11 @@
This archive contains the distribution MooseX-LazyRequire,
-version 0.06:
+version 0.07:
Required attributes which fail only when trying to use them
-This software is copyright (c) 2010 by Florian Ragwitz.
+This software is copyright (c) 2011 by Florian Ragwitz.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
Modified: trunk/libmoosex-lazyrequire-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-lazyrequire-perl/debian/changelog?rev=72880&op=diff
==============================================================================
--- trunk/libmoosex-lazyrequire-perl/debian/changelog (original)
+++ trunk/libmoosex-lazyrequire-perl/debian/changelog Wed Apr 20 19:28:08 2011
@@ -1,3 +1,13 @@
+libmoosex-lazyrequire-perl (0.07-1) UNRELEASED; urgency=low
+
+ * New upstream release
+ * Update upstream copyright year
+ * Replace "Debian GNU/Linux" with just "Debian" in debian/copyright
+ * Fix copyright-refers-to-symlink-license
+ * Bump debhelper compat level to 8
+
+ -- Alessandro Ghedini <al3xbio at gmail.com> Wed, 20 Apr 2011 21:22:33 +0200
+
libmoosex-lazyrequire-perl (0.06-2) UNRELEASED; urgency=low
[ Salvatore Bonaccorso ]
@@ -26,14 +36,14 @@
* Update short description
[ Salvatore Bonaccorso ]
- * Add Build-Depends-Indep on libtest-exception-perl. Fixes FTBFS
+ * Add Build-Depends-Indep on libtest-exception-perl. Fixes FTBFS
(Closes: #569460).
* Add myself to Uploaders.
* Bump Standards-Version to 3.8.4 (no changes).
* Refresh debian/copyright to machine readable format specification proposed
- in DEP5 revision 135. Update debian/* packaging stanza.
+ in DEP5 revision 135. Update debian/* packaging stanza.
* Add alternate Build-Depends on perl (>= 5.10.1) | libtest-simple-perl (>=
- 0.88).
+ 0.88).
-- Salvatore Bonaccorso <salvatore.bonaccorso at gmail.com> Thu, 11 Feb 2010 21:38:05 +0100
Modified: trunk/libmoosex-lazyrequire-perl/debian/compat
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-lazyrequire-perl/debian/compat?rev=72880&op=diff
==============================================================================
--- trunk/libmoosex-lazyrequire-perl/debian/compat (original)
+++ trunk/libmoosex-lazyrequire-perl/debian/compat Wed Apr 20 19:28:08 2011
@@ -1,1 +1,1 @@
-7
+8
Modified: trunk/libmoosex-lazyrequire-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-lazyrequire-perl/debian/control?rev=72880&op=diff
==============================================================================
--- trunk/libmoosex-lazyrequire-perl/debian/control (original)
+++ trunk/libmoosex-lazyrequire-perl/debian/control Wed Apr 20 19:28:08 2011
@@ -1,7 +1,7 @@
Source: libmoosex-lazyrequire-perl
Section: perl
Priority: optional
-Build-Depends: debhelper (>= 7.0.50~)
+Build-Depends: debhelper (>= 8)
Build-Depends-Indep: perl, libmoosex-types-perl,
libnamespace-autoclean-perl, libaliased-perl (>= 0.30), libmoose-perl (>= 0.94),
perl (>= 5.10.1) | libtest-simple-perl (>= 0.88), libtest-exception-perl
Modified: trunk/libmoosex-lazyrequire-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-lazyrequire-perl/debian/copyright?rev=72880&op=diff
==============================================================================
--- trunk/libmoosex-lazyrequire-perl/debian/copyright (original)
+++ trunk/libmoosex-lazyrequire-perl/debian/copyright Wed Apr 20 19:28:08 2011
@@ -3,7 +3,7 @@
Source: http://search.cpan.org/dist/MooseX-LazyRequire/
Name: MooseX-LazyRequire
-Copyright: 2010, Florian Ragwitz <rafl at debian.org>
+Copyright: 2011, Florian Ragwitz <rafl at debian.org>
License: Artistic or GPL-1+
Files: debian/*
@@ -16,7 +16,7 @@
This program is free software; you can redistribute it and/or modify
it under the terms of the Artistic License, which comes with Perl.
.
- On Debian GNU/Linux systems, the complete text of the Artistic License
+ On Debian systems, the complete text of the Artistic License
can be found in `/usr/share/common-licenses/Artistic'.
License: GPL-1+
@@ -25,5 +25,5 @@
the Free Software Foundation; either version 1, or (at your option)
any later version.
.
- On Debian GNU/Linux systems, the complete text of the GNU General
- Public License can be found in `/usr/share/common-licenses/GPL'.
+ On Debian systems, the complete text of version 1 of the GNU General
+ Public License can be found in `/usr/share/common-licenses/GPL-1'.
Modified: trunk/libmoosex-lazyrequire-perl/dist.ini
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-lazyrequire-perl/dist.ini?rev=72880&op=diff
==============================================================================
--- trunk/libmoosex-lazyrequire-perl/dist.ini (original)
+++ trunk/libmoosex-lazyrequire-perl/dist.ini Wed Apr 20 19:28:08 2011
@@ -1,9 +1,14 @@
name = MooseX-LazyRequire
-version = 0.06
+version = 0.07
author = Florian Ragwitz <rafl at debian.org>
+author = Dave Rolsky <autarch at urth.org>
license = Perl_5
copyright_holder = Florian Ragwitz
[@FLORA]
dist = MooseX-LazyRequire
repository_at = github
+auto_prereqs = 0
+
+[AutoPrereqs]
+skip = ^Role$
Modified: trunk/libmoosex-lazyrequire-perl/lib/MooseX/LazyRequire.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-lazyrequire-perl/lib/MooseX/LazyRequire.pm?rev=72880&op=diff
==============================================================================
--- trunk/libmoosex-lazyrequire-perl/lib/MooseX/LazyRequire.pm (original)
+++ trunk/libmoosex-lazyrequire-perl/lib/MooseX/LazyRequire.pm Wed Apr 20 19:28:08 2011
@@ -3,7 +3,7 @@
$MooseX::LazyRequire::AUTHORITY = 'cpan:FLORA';
}
BEGIN {
- $MooseX::LazyRequire::VERSION = '0.06';
+ $MooseX::LazyRequire::VERSION = '0.07';
}
# ABSTRACT: Required attributes which fail only when trying to use them
@@ -13,11 +13,18 @@
use namespace::autoclean;
-Moose::Exporter->setup_import_methods(
+my %metaroles = (
class_metaroles => {
attribute => [LazyRequire],
},
);
+
+$metaroles{role_metaroles} = {
+ applied_attribute => [LazyRequire],
+ }
+ if $Moose::VERSION >= 1.9900;
+
+Moose::Exporter->setup_import_methods(%metaroles);
1;
@@ -65,7 +72,7 @@
=head1 CAVEATS
-Apparently Moose roles don't have an attribute metaclass, so this module can't
+Prior to Moose 1.9900, roles didn't have an attribute metaclass, so this module can't
easily apply its magic to attributes defined in roles. If you want to use
C<lazy_required> in role attributes, you'll have to apply the attribute trait
yourself:
@@ -76,15 +83,28 @@
lazy_required => 1,
);
+With Moose 1.9900, you can use this module in roles just the same way you can
+in classes.
+
=for Pod::Coverage init_meta
-=head1 AUTHOR
+=head1 AUTHORS
+
+=over 4
+
+=item *
Florian Ragwitz <rafl at debian.org>
+=item *
+
+Dave Rolsky <autarch at urth.org>
+
+=back
+
=head1 COPYRIGHT AND LICENSE
-This software is copyright (c) 2010 by Florian Ragwitz.
+This software is copyright (c) 2011 by Florian Ragwitz.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
Modified: trunk/libmoosex-lazyrequire-perl/lib/MooseX/LazyRequire/Meta/Attribute/Trait/LazyRequire.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-lazyrequire-perl/lib/MooseX/LazyRequire/Meta/Attribute/Trait/LazyRequire.pm?rev=72880&op=diff
==============================================================================
--- trunk/libmoosex-lazyrequire-perl/lib/MooseX/LazyRequire/Meta/Attribute/Trait/LazyRequire.pm (original)
+++ trunk/libmoosex-lazyrequire-perl/lib/MooseX/LazyRequire/Meta/Attribute/Trait/LazyRequire.pm Wed Apr 20 19:28:08 2011
@@ -3,7 +3,7 @@
$MooseX::LazyRequire::Meta::Attribute::Trait::LazyRequire::AUTHORITY = 'cpan:FLORA';
}
BEGIN {
- $MooseX::LazyRequire::Meta::Attribute::Trait::LazyRequire::VERSION = '0.06';
+ $MooseX::LazyRequire::Meta::Attribute::Trait::LazyRequire::VERSION = '0.07';
}
# ABSTRACT: Attribute trait to make getters fail on unset attributes
@@ -43,12 +43,6 @@
package # hide
Moose::Meta::Attribute::Custom::Trait::LazyRequire;
-BEGIN {
- $Moose::Meta::Attribute::Custom::Trait::LazyRequire::AUTHORITY = 'cpan:FLORA';
-}
-BEGIN {
- $Moose::Meta::Attribute::Custom::Trait::LazyRequire::VERSION = '0.06';
-}
sub register_implementation { 'MooseX::LazyRequire::Meta::Attribute::Trait::LazyRequire' }
@@ -63,13 +57,23 @@
MooseX::LazyRequire::Meta::Attribute::Trait::LazyRequire - Attribute trait to make getters fail on unset attributes
-=head1 AUTHOR
+=head1 AUTHORS
+
+=over 4
+
+=item *
Florian Ragwitz <rafl at debian.org>
+=item *
+
+Dave Rolsky <autarch at urth.org>
+
+=back
+
=head1 COPYRIGHT AND LICENSE
-This software is copyright (c) 2010 by Florian Ragwitz.
+This software is copyright (c) 2011 by Florian Ragwitz.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
Modified: trunk/libmoosex-lazyrequire-perl/t/basic.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-lazyrequire-perl/t/basic.t?rev=72880&op=diff
==============================================================================
--- trunk/libmoosex-lazyrequire-perl/t/basic.t (original)
+++ trunk/libmoosex-lazyrequire-perl/t/basic.t Wed Apr 20 19:28:08 2011
@@ -77,4 +77,52 @@
is($baz, 43);
}
+SKIP:
+{
+ skip 'These tests require Moose 1.9900+', 3
+ unless $Moose::VERSION >= 1.9900;
+
+{
+ package Role;
+ use Moose::Role;
+ use MooseX::LazyRequire;
+
+ has foo => (
+ is => 'rw',
+ lazy_required => 1,
+ );
+
+ has baz => (
+ is => 'ro',
+ lazy => 1,
+ builder => '_build_baz',
+ );
+
+ sub _build_baz { shift->foo + 1 }
+}
+
+{
+ package Quux;
+ use Moose;
+ with 'Role';
+}
+
+{
+ my $bar = Quux->new;
+
+ throws_ok(sub {
+ $bar->baz;
+ }, qr/must be provided/);
+
+ $bar->foo(42);
+
+ my $baz;
+ lives_ok(sub {
+ $baz = $bar->baz;
+ });
+
+ is($baz, 43);
+}
+}
+
done_testing;
More information about the Pkg-perl-cvs-commits
mailing list