* 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
0 | This software is copyright (c) 2010 by Best Practical Solutions. | |
0 | This software is copyright (c) 2011 by Best Practical Solutions. | |
1 | 1 | |
2 | 2 | This is free software; you can redistribute it and/or modify it under |
3 | 3 | the same terms as the Perl 5 programming language system itself. |
11 | 11 | |
12 | 12 | --- The GNU General Public License, Version 1, February 1989 --- |
13 | 13 | |
14 | This software is Copyright (c) 2010 by Best Practical Solutions. | |
14 | This software is Copyright (c) 2011 by Best Practical Solutions. | |
15 | 15 | |
16 | 16 | This is free software, licensed under: |
17 | 17 | |
269 | 269 | |
270 | 270 | --- The Artistic License 1.0 --- |
271 | 271 | |
272 | This software is Copyright (c) 2010 by Best Practical Solutions. | |
272 | This software is Copyright (c) 2011 by Best Practical Solutions. | |
273 | 273 | |
274 | 274 | This is free software, licensed under: |
275 | 275 |
24 | 24 | t/101-localize-errvar.t |
25 | 25 | t/lib/AnyMooseTest.pm |
26 | 26 | t/release-pod-coverage.t |
27 | t/release-pod-syntax.t⏎ | |
27 | t/release-pod-syntax.t |
8 | 8 | build_requires: {} |
9 | 9 | configure_requires: |
10 | 10 | 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' | |
12 | 13 | license: perl |
13 | 14 | meta-spec: |
14 | 15 | url: http://module-build.sourceforge.net/META-spec-v1.4.html |
15 | 16 | version: 1.4 |
16 | 17 | name: Any-Moose |
17 | recommends: {} | |
18 | 18 | requires: |
19 | 19 | Mouse: 0.40 |
20 | 20 | perl: 5.006_002 |
21 | version: 0.13 | |
21 | version: 0.14 |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | 3 | |
4 | BEGIN { require 5.006_002; } | |
4 | BEGIN { require 5.006_002; } | |
5 | 5 | |
6 | 6 | use ExtUtils::MakeMaker 6.31; |
7 | 7 | |
8 | 8 | |
9 | 9 | |
10 | 10 | 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 | ); | |
29 | 29 | |
30 | 30 | |
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 | } | |
33 | 43 | |
34 | 44 | delete $WriteMakefileArgs{CONFIGURE_REQUIRES} |
35 | 45 | unless eval { ExtUtils::MakeMaker->VERSION(6.52) }; |
0 | 0 | |
1 | 1 | |
2 | 2 | This archive contains the distribution Any-Moose, |
3 | version 0.13: | |
3 | version 0.14: | |
4 | 4 | |
5 | 5 | use Moose or Mouse modules |
6 | 6 | |
7 | This software is copyright (c) 2010 by Best Practical Solutions. | |
7 | This software is copyright (c) 2011 by Best Practical Solutions. | |
8 | 8 | |
9 | 9 | This is free software; you can redistribute it and/or modify it under |
10 | 10 | 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 | |
1 | 1 | |
2 | [ Ansgar Burchardt ] | |
2 | 3 | * Update my email address. |
3 | 4 | |
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 | |
5 | 15 | |
6 | 16 | libany-moose-perl (0.13-1) unstable; urgency=low |
7 | 17 | |
31 | 41 | * Standards-Version 3.8.3 (no changes) |
32 | 42 | * Add myself to Uploaders and Copyright |
33 | 43 | * Use new short debhelper rules file |
34 | ||
44 | ||
35 | 45 | [ Nathan Handler ] |
36 | 46 | * debian/watch: Update to ignore development releases. |
37 | 47 |
0 | 0 | Source: libany-moose-perl |
1 | 1 | Section: perl |
2 | 2 | Priority: optional |
3 | Build-Depends: debhelper (>= 7) | |
3 | Build-Depends: debhelper (>= 8) | |
4 | 4 | Build-Depends-Indep: perl, libmouse-perl, libmoose-perl, libmoosex-types-perl |
5 | 5 | Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org> |
6 | 6 | 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 | |
9 | 9 | Homepage: http://search.cpan.org/dist/Any-Moose/ |
10 | 10 | Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libany-moose-perl/ |
11 | 11 | Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libany-moose-perl/ |
3 | 3 | Name: Any-Moose |
4 | 4 | |
5 | 5 | Files: * |
6 | Copyright: 2010, Best Practical Solutions | |
6 | Copyright: 2011, Best Practical Solutions | |
7 | 7 | License: Artistic or GPL-1+ |
8 | 8 | |
9 | 9 | Files: debian/* |
15 | 15 | This program is free software; you can redistribute it and/or modify |
16 | 16 | it under the terms of the Artistic License, which comes with Perl. |
17 | 17 | . |
18 | On Debian GNU/Linux systems, the complete text of the Artistic License | |
18 | On Debian systems, the complete text of the Artistic License | |
19 | 19 | can be found in `/usr/share/common-licenses/Artistic' |
20 | 20 | |
21 | 21 | License: GPL-1+ |
24 | 24 | the Free Software Foundation; either version 1, or (at your option) |
25 | 25 | any later version. |
26 | 26 | . |
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' | |
29 | 29 |
0 | 0 | name = Any-Moose |
1 | version = 0.13 | |
1 | version = 0.14 | |
2 | 2 | author = Shawn M Moore <sartak@bestpractical.com> |
3 | 3 | author = Florian Ragwitz <rafl@debian.org> |
4 | 4 | author = Stevan Little <stevan@iinteractive.com> |
0 | 0 | package Any::Moose; |
1 | 1 | BEGIN { |
2 | $Any::Moose::VERSION = '0.13'; | |
2 | $Any::Moose::VERSION = '0.14'; | |
3 | 3 | } |
4 | 4 | # ABSTRACT: use Moose or Mouse modules |
5 | 5 | |
235 | 235 | |
236 | 236 | =head1 VERSION |
237 | 237 | |
238 | version 0.13 | |
238 | version 0.14 | |
239 | 239 | |
240 | 240 | =head1 SYNOPSIS |
241 | 241 | |
242 | ||
243 | 242 | =head2 BASIC |
244 | ||
245 | 243 | |
246 | 244 | package Class; |
247 | 245 | |
252 | 250 | no Any::Moose; |
253 | 251 | |
254 | 252 | =head2 OTHER MODULES |
255 | ||
256 | 253 | |
257 | 254 | package Other::Class; |
258 | 255 | use Any::Moose; |
263 | 260 | |
264 | 261 | =head2 ROLES |
265 | 262 | |
266 | ||
267 | 263 | package My::Sorter; |
268 | 264 | use Any::Moose 'Role'; |
269 | 265 | |
270 | 266 | requires 'cmp'; |
271 | 267 | |
272 | 268 | =head2 COMPLEX USAGE |
273 | ||
274 | 269 | |
275 | 270 | package My::Meta::Class; |
276 | 271 | use Any::Moose; |
291 | 286 | |
292 | 287 | =head1 DESCRIPTION |
293 | 288 | |
294 | ||
295 | 289 | Though we recommend that people generally use L<Moose>, we accept that Moose |
296 | 290 | cannot yet be used for everything everywhere. People generally like the Moose |
297 | 291 | sugar, so many people use L<Mouse>, a lightweight replacement for parts of |
298 | 292 | Moose. |
299 | ||
300 | 293 | |
301 | 294 | Because Mouse strives for compatibility with Moose, it's easy to substitute one |
302 | 295 | for the other. This module facilitates that substitution. By default, Mouse |
305 | 298 | of which backend to use by setting the environment variable C<ANY_MOOSE> to |
306 | 299 | be C<Moose> or C<Mouse>. |
307 | 300 | |
308 | ||
309 | 301 | Note that the decision of which backend to use is made only once, so that if |
310 | 302 | Any-Moose picks Mouse, then a third-party library loads Moose, anything else |
311 | 303 | that uses Any-Moose will continue to pick Mouse. |
312 | 304 | |
313 | ||
314 | 305 | So, if you have to use L<Mouse>, please be considerate to the Moose fanboys |
315 | 306 | (like myself!) and use L<Any-Moose> instead. C<:)> |
316 | 307 | |
317 | 308 | =head1 SEE ALSO |
318 | 309 | |
319 | ||
320 | 310 | L<Moose> |
321 | 311 | |
322 | ||
323 | 312 | L<Mouse> |
324 | ||
325 | 313 | |
326 | 314 | L<Squirrel> - a deprecated first-stab at Any-Moose-like logic. Its biggest |
327 | 315 | fault was in making the decision of which backend to use every time it was |
329 | 317 | |
330 | 318 | =head1 AUTHORS |
331 | 319 | |
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 | |
337 | 343 | |
338 | 344 | =head1 COPYRIGHT AND LICENSE |
339 | 345 | |
340 | This software is copyright (c) 2010 by Best Practical Solutions. | |
346 | This software is copyright (c) 2011 by Best Practical Solutions. | |
341 | 347 | |
342 | 348 | This is free software; you can redistribute it and/or modify it under |
343 | 349 | the same terms as the Perl 5 programming language system itself. |
5 | 5 | BEGIN { delete $ENV{ANY_MOOSE} } |
6 | 6 | |
7 | 7 | 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 $@; | |
10 | 10 | plan tests => 9; |
11 | 11 | } |
12 | 12 | |
13 | 13 | do { |
14 | package Moused::Any::Moose; | |
14 | package Moosed::Any::Moose; | |
15 | 15 | use Any::Moose; |
16 | 16 | |
17 | 17 | ::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'); | |
19 | 19 | |
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'); | |
22 | 22 | |
23 | ::is(any_moose, 'Mouse', 'still Mouse even if Moose is loaded'); | |
23 | ::is(any_moose, 'Moose', 'still Moose even if Moose is loaded'); | |
24 | 24 | |
25 | 25 | no Any::Moose; |
26 | 26 | }; |
27 | 27 | |
28 | ok(!Moused::Any::Moose->can('has'), "has was unimported"); | |
28 | ok(!Moosed::Any::Moose->can('has'), "has was unimported"); | |
29 | 29 | |
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; | |
34 | 33 | |
35 | do { | |
36 | package After::Moose; | |
37 | use Any::Moose; | |
34 | ::is(any_moose, 'Moose'); | |
35 | ::is(any_moose('::Util::TypeConstraints'), 'Moose::Util::TypeConstraints'); | |
38 | 36 | |
39 | ::is(any_moose, 'Mouse'); | |
40 | ::is(any_moose('::Util::TypeConstraints'), 'Mouse::Util::TypeConstraints'); | |
37 | no Any::Moose; | |
38 | }; | |
41 | 39 | |
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"); |
5 | 5 | BEGIN { delete $ENV{ANY_MOOSE} } |
6 | 6 | |
7 | 7 | 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 $@; | |
10 | 10 | plan tests => 9; |
11 | 11 | } |
12 | 12 | |
13 | 13 | do { |
14 | package Moosed::Any::Moose; | |
14 | package Moused::Any::Moose; | |
15 | 15 | use Any::Moose; |
16 | 16 | |
17 | 17 | ::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'); | |
19 | 19 | |
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'); | |
22 | 22 | |
23 | ::is(any_moose, 'Moose', 'still Moose even if Moose is loaded'); | |
23 | ::is(any_moose, 'Mouse', 'still Mouse even if Moose is loaded'); | |
24 | 24 | |
25 | 25 | no Any::Moose; |
26 | 26 | }; |
27 | 27 | |
28 | ok(!Moosed::Any::Moose->can('has'), "has was unimported"); | |
28 | ok(!Moused::Any::Moose->can('has'), "has was unimported"); | |
29 | 29 | |
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; | |
33 | 34 | |
34 | ::is(any_moose, 'Moose'); | |
35 | ::is(any_moose('::Util::TypeConstraints'), 'Moose::Util::TypeConstraints'); | |
35 | do { | |
36 | package After::Moose; | |
37 | use Any::Moose; | |
36 | 38 | |
37 | no Any::Moose; | |
38 | }; | |
39 | ::is(any_moose, 'Mouse'); | |
40 | ::is(any_moose('::Util::TypeConstraints'), 'Mouse::Util::TypeConstraints'); | |
39 | 41 | |
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 | } |
5 | 5 | BEGIN { delete $ENV{ANY_MOOSE} } |
6 | 6 | |
7 | 7 | 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;"; | |
9 | 9 | plan tests => 2; |
10 | 10 | } |
11 | 11 |
17 | 17 | plan skip_all => "Pod::Coverage::TrustPod required for testing POD coverage" |
18 | 18 | if $@; |
19 | 19 | |
20 | all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' });⏎ | |
20 | all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' }); |