Codebase list libany-moose-perl / 2aa1872
* New upstream release * Update upstream copyright year * Bump Standards-Version to 3.9.2 (no changes needed) * Bump debhelper compat level to 8 * Replace "Debian GNU/Linux" with just "Debian" in debian/copyright * Fix lintian copyright-refers-to-symlink-license * Add myself to Uploaders Alessandro Ghedini 12 years ago
16 changed file(s) with 131 addition(s) and 105 deletion(s). Raw diff Collapse all Expand all
0 This software is copyright (c) 2010 by Best Practical Solutions.
0 This software is copyright (c) 2011 by Best Practical Solutions.
11
22 This is free software; you can redistribute it and/or modify it under
33 the same terms as the Perl 5 programming language system itself.
1111
1212 --- The GNU General Public License, Version 1, February 1989 ---
1313
14 This software is Copyright (c) 2010 by Best Practical Solutions.
14 This software is Copyright (c) 2011 by Best Practical Solutions.
1515
1616 This is free software, licensed under:
1717
269269
270270 --- The Artistic License 1.0 ---
271271
272 This software is Copyright (c) 2010 by Best Practical Solutions.
272 This software is Copyright (c) 2011 by Best Practical Solutions.
273273
274274 This is free software, licensed under:
275275
2424 t/101-localize-errvar.t
2525 t/lib/AnyMooseTest.pm
2626 t/release-pod-coverage.t
27 t/release-pod-syntax.t
27 t/release-pod-syntax.t
88 build_requires: {}
99 configure_requires:
1010 ExtUtils::MakeMaker: 6.31
11 generated_by: 'Dist::Zilla version 2.100921'
11 dynamic_config: 0
12 generated_by: 'Dist::Zilla version 4.200004, CPAN::Meta::Converter version 2.110360'
1213 license: perl
1314 meta-spec:
1415 url: http://module-build.sourceforge.net/META-spec-v1.4.html
1516 version: 1.4
1617 name: Any-Moose
17 recommends: {}
1818 requires:
1919 Mouse: 0.40
2020 perl: 5.006_002
21 version: 0.13
21 version: 0.14
11 use strict;
22 use warnings;
33
4 BEGIN { require 5.006_002; }
4 BEGIN { require 5.006_002; }
55
66 use ExtUtils::MakeMaker 6.31;
77
88
99
1010 my %WriteMakefileArgs = (
11 'test' => {
12 'TESTS' => 't/*.t'
13 },
14 'NAME' => 'Any::Moose',
15 'DISTNAME' => 'Any-Moose',
16 'CONFIGURE_REQUIRES' => {
17 'ExtUtils::MakeMaker' => '6.31'
18 },
19 'AUTHOR' => 'Shawn M Moore <sartak@bestpractical.com>, Florian Ragwitz <rafl@debian.org>, Stevan Little <stevan@iinteractive.com>, Tokuhiro Matsuno <tokuhirom@gmail.com>, Goro Fuji <gfuji@cpan.org>',
20 'BUILD_REQUIRES' => {},
21 'ABSTRACT' => 'use Moose or Mouse modules',
22 'EXE_FILES' => [],
23 'VERSION' => '0.13',
24 'PREREQ_PM' => {
25 'Mouse' => '0.40'
26 },
27 'LICENSE' => 'perl'
28 );
11 'ABSTRACT' => 'use Moose or Mouse modules',
12 'AUTHOR' => 'Shawn M Moore <sartak@bestpractical.com>, Florian Ragwitz <rafl@debian.org>, Stevan Little <stevan@iinteractive.com>, Tokuhiro Matsuno <tokuhirom@gmail.com>, Goro Fuji <gfuji@cpan.org>',
13 'BUILD_REQUIRES' => {},
14 'CONFIGURE_REQUIRES' => {
15 'ExtUtils::MakeMaker' => '6.31'
16 },
17 'DISTNAME' => 'Any-Moose',
18 'EXE_FILES' => [],
19 'LICENSE' => 'perl',
20 'NAME' => 'Any::Moose',
21 'PREREQ_PM' => {
22 'Mouse' => '0.40'
23 },
24 'VERSION' => '0.14',
25 'test' => {
26 'TESTS' => 't/*.t'
27 }
28 );
2929
3030
31 delete $WriteMakefileArgs{BUILD_REQUIRES}
32 unless eval { ExtUtils::MakeMaker->VERSION(6.56) };
31 unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) {
32 my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
33 my $pp = $WriteMakefileArgs{PREREQ_PM};
34 for my $mod ( keys %$br ) {
35 if ( exists $pp->{$mod} ) {
36 $pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod};
37 }
38 else {
39 $pp->{$mod} = $br->{$mod};
40 }
41 }
42 }
3343
3444 delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
3545 unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
00
11
22 This archive contains the distribution Any-Moose,
3 version 0.13:
3 version 0.14:
44
55 use Moose or Mouse modules
66
7 This software is copyright (c) 2010 by Best Practical Solutions.
7 This software is copyright (c) 2011 by Best Practical Solutions.
88
99 This is free software; you can redistribute it and/or modify it under
1010 the same terms as the Perl 5 programming language system itself.
0 libany-moose-perl (0.13-2) UNRELEASED; urgency=low
0 libany-moose-perl (0.14-1) UNRELEASED; urgency=low
11
2 [ Ansgar Burchardt ]
23 * Update my email address.
34
4 -- Ansgar Burchardt <ansgar@debian.org> Mon, 01 Nov 2010 11:16:15 +0100
5 [ Alessandro Ghedini ]
6 * New upstream release
7 * Update upstream copyright year
8 * Bump Standards-Version to 3.9.2 (no changes needed)
9 * Bump debhelper compat level to 8
10 * Replace "Debian GNU/Linux" with just "Debian" in debian/copyright
11 * Fix lintian copyright-refers-to-symlink-license
12 * Add myself to Uploaders
13
14 -- Alessandro Ghedini <al3xbio@gmail.com> Thu, 12 May 2011 17:03:52 +0200
515
616 libany-moose-perl (0.13-1) unstable; urgency=low
717
3141 * Standards-Version 3.8.3 (no changes)
3242 * Add myself to Uploaders and Copyright
3343 * Use new short debhelper rules file
34
44
3545 [ Nathan Handler ]
3646 * debian/watch: Update to ignore development releases.
3747
00 Source: libany-moose-perl
11 Section: perl
22 Priority: optional
3 Build-Depends: debhelper (>= 7)
3 Build-Depends: debhelper (>= 8)
44 Build-Depends-Indep: perl, libmouse-perl, libmoose-perl, libmoosex-types-perl
55 Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
66 Uploaders: Ryan Niebur <ryan@debian.org>, Jonathan Yu <jawnsy@cpan.org>,
7 Ansgar Burchardt <ansgar@debian.org>
8 Standards-Version: 3.8.4
7 Ansgar Burchardt <ansgar@debian.org>, Alessandro Ghedini <al3xbio@gmail.com>
8 Standards-Version: 3.9.2
99 Homepage: http://search.cpan.org/dist/Any-Moose/
1010 Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libany-moose-perl/
1111 Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libany-moose-perl/
33 Name: Any-Moose
44
55 Files: *
6 Copyright: 2010, Best Practical Solutions
6 Copyright: 2011, Best Practical Solutions
77 License: Artistic or GPL-1+
88
99 Files: debian/*
1515 This program is free software; you can redistribute it and/or modify
1616 it under the terms of the Artistic License, which comes with Perl.
1717 .
18 On Debian GNU/Linux systems, the complete text of the Artistic License
18 On Debian systems, the complete text of the Artistic License
1919 can be found in `/usr/share/common-licenses/Artistic'
2020
2121 License: GPL-1+
2424 the Free Software Foundation; either version 1, or (at your option)
2525 any later version.
2626 .
27 On Debian GNU/Linux systems, the complete text of the GNU General
28 Public License can be found in `/usr/share/common-licenses/GPL'
27 On Debian systems, the complete text of the GNU General
28 Public License can be found in `/usr/share/common-licenses/GPL-1'
2929
00 name = Any-Moose
1 version = 0.13
1 version = 0.14
22 author = Shawn M Moore <sartak@bestpractical.com>
33 author = Florian Ragwitz <rafl@debian.org>
44 author = Stevan Little <stevan@iinteractive.com>
00 package Any::Moose;
11 BEGIN {
2 $Any::Moose::VERSION = '0.13';
2 $Any::Moose::VERSION = '0.14';
33 }
44 # ABSTRACT: use Moose or Mouse modules
55
235235
236236 =head1 VERSION
237237
238 version 0.13
238 version 0.14
239239
240240 =head1 SYNOPSIS
241241
242
243242 =head2 BASIC
244
245243
246244 package Class;
247245
252250 no Any::Moose;
253251
254252 =head2 OTHER MODULES
255
256253
257254 package Other::Class;
258255 use Any::Moose;
263260
264261 =head2 ROLES
265262
266
267263 package My::Sorter;
268264 use Any::Moose 'Role';
269265
270266 requires 'cmp';
271267
272268 =head2 COMPLEX USAGE
273
274269
275270 package My::Meta::Class;
276271 use Any::Moose;
291286
292287 =head1 DESCRIPTION
293288
294
295289 Though we recommend that people generally use L<Moose>, we accept that Moose
296290 cannot yet be used for everything everywhere. People generally like the Moose
297291 sugar, so many people use L<Mouse>, a lightweight replacement for parts of
298292 Moose.
299
300293
301294 Because Mouse strives for compatibility with Moose, it's easy to substitute one
302295 for the other. This module facilitates that substitution. By default, Mouse
305298 of which backend to use by setting the environment variable C<ANY_MOOSE> to
306299 be C<Moose> or C<Mouse>.
307300
308
309301 Note that the decision of which backend to use is made only once, so that if
310302 Any-Moose picks Mouse, then a third-party library loads Moose, anything else
311303 that uses Any-Moose will continue to pick Mouse.
312304
313
314305 So, if you have to use L<Mouse>, please be considerate to the Moose fanboys
315306 (like myself!) and use L<Any-Moose> instead. C<:)>
316307
317308 =head1 SEE ALSO
318309
319
320310 L<Moose>
321311
322
323312 L<Mouse>
324
325313
326314 L<Squirrel> - a deprecated first-stab at Any-Moose-like logic. Its biggest
327315 fault was in making the decision of which backend to use every time it was
329317
330318 =head1 AUTHORS
331319
332 Shawn M Moore <sartak@bestpractical.com>
333 Florian Ragwitz <rafl@debian.org>
334 Stevan Little <stevan@iinteractive.com>
335 Tokuhiro Matsuno <tokuhirom@gmail.com>
336 Goro Fuji <gfuji@cpan.org>
320 =over 4
321
322 =item *
323
324 Shawn M Moore <sartak@bestpractical.com>
325
326 =item *
327
328 Florian Ragwitz <rafl@debian.org>
329
330 =item *
331
332 Stevan Little <stevan@iinteractive.com>
333
334 =item *
335
336 Tokuhiro Matsuno <tokuhirom@gmail.com>
337
338 =item *
339
340 Goro Fuji <gfuji@cpan.org>
341
342 =back
337343
338344 =head1 COPYRIGHT AND LICENSE
339345
340 This software is copyright (c) 2010 by Best Practical Solutions.
346 This software is copyright (c) 2011 by Best Practical Solutions.
341347
342348 This is free software; you can redistribute it and/or modify it under
343349 the same terms as the Perl 5 programming language system itself.
55 BEGIN { delete $ENV{ANY_MOOSE} }
66
77 BEGIN {
8 eval 'require Mouse';
9 plan skip_all => 'Mouse not available' if $@;
8 eval 'require Moose';
9 plan skip_all => 'Moose not available' if $@;
1010 plan tests => 9;
1111 }
1212
1313 do {
14 package Moused::Any::Moose;
14 package Moosed::Any::Moose;
1515 use Any::Moose;
1616
1717 ::ok(__PACKAGE__->can('meta'), 'Mo*se was installed');
18 ::like(__PACKAGE__->meta, qr/^Mouse/, 'Mouse was installed');
18 ::like(__PACKAGE__->meta, qr/^Moose/, 'Moose was installed');
1919
20 ::is(any_moose, 'Mouse');
21 ::is(any_moose('::Util::TypeConstraints'), 'Mouse::Util::TypeConstraints');
20 ::is(any_moose, 'Moose');
21 ::is(any_moose('::Util::TypeConstraints'), 'Moose::Util::TypeConstraints');
2222
23 ::is(any_moose, 'Mouse', 'still Mouse even if Moose is loaded');
23 ::is(any_moose, 'Moose', 'still Moose even if Moose is loaded');
2424
2525 no Any::Moose;
2626 };
2727
28 ok(!Moused::Any::Moose->can('has'), "has was unimported");
28 ok(!Moosed::Any::Moose->can('has'), "has was unimported");
2929
30 SKIP: {
31 my $loaded_moose;
32 BEGIN { $loaded_moose = eval 'require Moose' }
33 skip "Moose required for these tests to be useful" => 3 unless $loaded_moose;
30 do {
31 package After::Moose;
32 use Any::Moose;
3433
35 do {
36 package After::Moose;
37 use Any::Moose;
34 ::is(any_moose, 'Moose');
35 ::is(any_moose('::Util::TypeConstraints'), 'Moose::Util::TypeConstraints');
3836
39 ::is(any_moose, 'Mouse');
40 ::is(any_moose('::Util::TypeConstraints'), 'Mouse::Util::TypeConstraints');
37 no Any::Moose;
38 };
4139
42 no Any::Moose;
43 };
44
45 ok(!After::Moose->can('has'), "has was unimported");
46 }
40 ok(!After::Moose->can('has'), "has was unimported");
55 BEGIN { delete $ENV{ANY_MOOSE} }
66
77 BEGIN {
8 eval 'require Moose';
9 plan skip_all => 'Moose not available' if $@;
8 eval 'require Mouse';
9 plan skip_all => 'Mouse not available' if $@;
1010 plan tests => 9;
1111 }
1212
1313 do {
14 package Moosed::Any::Moose;
14 package Moused::Any::Moose;
1515 use Any::Moose;
1616
1717 ::ok(__PACKAGE__->can('meta'), 'Mo*se was installed');
18 ::like(__PACKAGE__->meta, qr/^Moose/, 'Moose was installed');
18 ::like(__PACKAGE__->meta, qr/^Mouse/, 'Mouse was installed');
1919
20 ::is(any_moose, 'Moose');
21 ::is(any_moose('::Util::TypeConstraints'), 'Moose::Util::TypeConstraints');
20 ::is(any_moose, 'Mouse');
21 ::is(any_moose('::Util::TypeConstraints'), 'Mouse::Util::TypeConstraints');
2222
23 ::is(any_moose, 'Moose', 'still Moose even if Moose is loaded');
23 ::is(any_moose, 'Mouse', 'still Mouse even if Moose is loaded');
2424
2525 no Any::Moose;
2626 };
2727
28 ok(!Moosed::Any::Moose->can('has'), "has was unimported");
28 ok(!Moused::Any::Moose->can('has'), "has was unimported");
2929
30 do {
31 package After::Moose;
32 use Any::Moose;
30 SKIP: {
31 my $loaded_moose;
32 BEGIN { $loaded_moose = eval 'require Moose' }
33 skip "Moose required for these tests to be useful" => 3 unless $loaded_moose;
3334
34 ::is(any_moose, 'Moose');
35 ::is(any_moose('::Util::TypeConstraints'), 'Moose::Util::TypeConstraints');
35 do {
36 package After::Moose;
37 use Any::Moose;
3638
37 no Any::Moose;
38 };
39 ::is(any_moose, 'Mouse');
40 ::is(any_moose('::Util::TypeConstraints'), 'Mouse::Util::TypeConstraints');
3941
40 ok(!After::Moose->can('has'), "has was unimported");
42 no Any::Moose;
43 };
44
45 ok(!After::Moose->can('has'), "has was unimported");
46 }
55 BEGIN { delete $ENV{ANY_MOOSE} }
66
77 BEGIN {
8 plan skip_all => 'MouseX::Types not available' unless eval "require MouseX::Types";
8 plan skip_all => 'Mouse or MouseX::Types 0.03 not available' unless eval "require Mouse; require MouseX::Types 0.03;";
99 plan tests => 2;
1010 }
1111
1717 plan skip_all => "Pod::Coverage::TrustPod required for testing POD coverage"
1818 if $@;
1919
20 all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' });
20 all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' });
88
99 use Test::More;
1010
11 eval "use Test::Pod 1.00";
12 plan skip_all => "Test::Pod 1.00 required for testing POD" if $@;
11 eval "use Test::Pod 1.41";
12 plan skip_all => "Test::Pod 1.41 required for testing POD" if $@;
1313
14 all_pod_files_ok();
14 all_pod_files_ok();