Hello community,
here is the log from the commit of package perl-Any-Moose for openSUSE:Factory
checked in at Mon Jan 24 15:54:38 CET 2011.
--------
--- perl-Any-Moose/perl-Any-Moose.changes 2010-12-01 12:45:48.000000000 +0100
+++ /mounts/work_src_done/STABLE/perl-Any-Moose/perl-Any-Moose.changes 2011-01-22 20:47:00.000000000 +0100
@@ -1,0 +2,6 @@
+Sat Jan 22 19:46:28 UTC 2011 - coolo@novell.com
+
+- update to 0.13:
+ * Add load_first_existing_class (gfx)
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
Any-Moose-0.12.tar.bz2
New:
----
Any-Moose-0.13.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Any-Moose.spec ++++++
--- /var/tmp/diff_new_pack.BxfjPB/_old 2011-01-24 15:54:17.000000000 +0100
+++ /var/tmp/diff_new_pack.BxfjPB/_new 2011-01-24 15:54:17.000000000 +0100
@@ -1,7 +1,7 @@
#
-# spec file for package perl-Any-Moose (Version 0.12)
+# spec file for package perl-Any-Moose
#
-# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -15,46 +15,55 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
-# norootforbuild
Name: perl-Any-Moose
-%define real_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
-Summary: Use Moose or Mouse modules
-Url: http://search.cpan.org/perldoc?Any:Moose
+Version: 0.13
+Release: 1
+License: GPL+ or Artistic
+%define cpan_name Any-Moose
+Summary: use Moose or Mouse modules
+Url: http://search.cpan.org/dist/Any-Moose/
Group: Development/Libraries/Perl
-License: Artistic
-Version: 0.12
-Release: 2
-Source: %{real_name}-%{version}.tar.bz2
+#Source: http://www.cpan.org/authors/id/S/SA/SARTAK/Any-Moose-%{version}.tar.gz
+Source: %{cpan_name}-%{version}.tar.bz2
+BuildRequires: perl(Mouse) >= 0.40
+BuildRequires: perl
BuildRequires: perl-macros
-BuildRequires: perl-Moose
-Requires: perl-Moose
+Requires: perl(Mouse) >= 0.40
BuildRoot: %{_tmppath}/%{name}-%{version}-build
+BuildArch: noarch
%{perl_requires}
%description
-Actual documentation is forthcoming, once we solidify all the bits of the API.
-The examples are very likely to continue working.
-
-Author:
--------
- Shawn M Moore
- Florian Ragwitz
- Stevan Little
- Tokuhiro Matsuno
- Goro Fuji
+Though we recommend that people generally use the Moose manpage, we accept
+that Moose cannot yet be used for everything everywhere. People generally
+like the Moose sugar, so many people use the Mouse manpage, a lightweight
+replacement for parts of Moose.
+
+Because Mouse strives for compatibility with Moose, it's easy to substitute
+one for the other. This module facilitates that substitution. By default,
+Mouse will be provided to libraries, unless Moose is already loaded -or-
+explicitly requested by the end-user. The end-user can force the decision
+of which backend to use by setting the environment variable 'ANY_MOOSE' to
+be 'Moose' or 'Mouse'.
+
+Note that the decision of which backend to use is made only once, so that
+if Any-Moose picks Mouse, then a third-party library loads Moose, anything
+else that uses Any-Moose will continue to pick Mouse.
+So, if you have to use the Mouse manpage, please be considerate to the
+Moose fanboys (like myself!) and use the Any-Moose manpage instead. ':)'
%prep
-%setup -q -n %{real_name}-%{version}
+%setup -q -n %{cpan_name}-%{version}
%build
-perl Makefile.PL
-make %{?jobs:-j%jobs}
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+%{__make} %{?_smp_mflags}
%check
-make test
+%{__make} test
%install
%perl_make_install
@@ -62,10 +71,10 @@
%perl_gen_filelist
%clean
-rm -rf %{buildroot}
+%{__rm} -rf %{buildroot}
%files -f %{name}.files
-%defattr(-, root, root)
-%doc Changes README MANIFEST
+%defattr(644,root,root,755)
+%doc Changes dist.ini LICENSE README
%changelog
++++++ Any-Moose-0.12.tar.bz2 -> Any-Moose-0.13.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Any-Moose-0.12/Changes new/Any-Moose-0.13/Changes
--- old/Any-Moose-0.12/Changes 2010-04-02 23:26:47.000000000 +0200
+++ new/Any-Moose-0.13/Changes 2010-05-19 05:46:30.000000000 +0200
@@ -1,3 +1,6 @@
+0.13 Wed 19 May 2010
+ * Add load_first_existing_class (gfx)
+
0.12 Fri 02 Apr 2010
* t/000-version.t for better diagnostics (tokuhirom)
* Slight performance improvements for is_class_loaded,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Any-Moose-0.12/META.yml new/Any-Moose-0.13/META.yml
--- old/Any-Moose-0.12/META.yml 2010-04-02 23:26:47.000000000 +0200
+++ new/Any-Moose-0.13/META.yml 2010-05-19 05:46:30.000000000 +0200
@@ -19,4 +19,4 @@
requires:
Mouse: 0.40
perl: 5.006_002
-version: 0.12
+version: 0.13
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Any-Moose-0.12/Makefile.PL new/Any-Moose-0.13/Makefile.PL
--- old/Any-Moose-0.12/Makefile.PL 2010-04-02 23:26:47.000000000 +0200
+++ new/Any-Moose-0.13/Makefile.PL 2010-05-19 05:46:30.000000000 +0200
@@ -21,7 +21,7 @@
'BUILD_REQUIRES' => {},
'ABSTRACT' => 'use Moose or Mouse modules',
'EXE_FILES' => [],
- 'VERSION' => '0.12',
+ 'VERSION' => '0.13',
'PREREQ_PM' => {
'Mouse' => '0.40'
},
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Any-Moose-0.12/README new/Any-Moose-0.13/README
--- old/Any-Moose-0.12/README 2010-04-02 23:26:47.000000000 +0200
+++ new/Any-Moose-0.13/README 2010-05-19 05:46:30.000000000 +0200
@@ -1,7 +1,7 @@
This archive contains the distribution Any-Moose,
-version 0.12:
+version 0.13:
use Moose or Mouse modules
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Any-Moose-0.12/dist.ini new/Any-Moose-0.13/dist.ini
--- old/Any-Moose-0.12/dist.ini 2010-04-02 23:26:47.000000000 +0200
+++ new/Any-Moose-0.13/dist.ini 2010-05-19 05:46:30.000000000 +0200
@@ -1,5 +1,5 @@
name = Any-Moose
-version = 0.12
+version = 0.13
author = Shawn M Moore
author = Florian Ragwitz
author = Stevan Little
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Any-Moose-0.12/lib/Any/Moose.pm new/Any-Moose-0.13/lib/Any/Moose.pm
--- old/Any-Moose-0.12/lib/Any/Moose.pm 2010-04-02 23:26:47.000000000 +0200
+++ new/Any-Moose-0.13/lib/Any/Moose.pm 2010-05-19 05:46:30.000000000 +0200
@@ -1,6 +1,6 @@
package Any::Moose;
BEGIN {
- $Any::Moose::VERSION = '0.12';
+ $Any::Moose::VERSION = '0.13';
}
# ABSTRACT: use Moose or Mouse modules
@@ -179,7 +179,15 @@
return $fragment;
}
-for my $name (qw/load_class is_class_loaded class_of get_metaclass_by_name get_all_metaclass_instances get_all_metaclass_names/) {
+for my $name (qw/
+ load_class
+ is_class_loaded
+ class_of
+ get_metaclass_by_name
+ get_all_metaclass_instances
+ get_all_metaclass_names
+ load_first_existing_class
+ /) {
no strict 'refs';
*{__PACKAGE__."::$name"} = moose_is_preferred()
? *{"Class::MOP::$name"}
@@ -228,7 +236,7 @@
=head1 VERSION
-version 0.12
+version 0.13
=head1 SYNOPSIS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Any-Moose-0.12/t/005-aliases-moose.t new/Any-Moose-0.13/t/005-aliases-moose.t
--- old/Any-Moose-0.12/t/005-aliases-moose.t 2010-04-02 23:26:47.000000000 +0200
+++ new/Any-Moose-0.13/t/005-aliases-moose.t 2010-05-19 05:46:30.000000000 +0200
@@ -8,7 +8,7 @@
BEGIN {
eval 'require Moose;';
plan skip_all => 'Moose not available' if $@;
- plan tests => 20;
+ plan tests => 21;
}
package MyClass;
@@ -46,3 +46,5 @@
is((grep { $_ eq 'AnyMooseTest' } Any::Moose::get_all_metaclass_names()), 1);
is((grep { $_ eq 'NonexistentTest' } Any::Moose::get_all_metaclass_names()), 0);
+my $c = Any::Moose::load_first_existing_class('Any::Moose::No::Such::Module', 'strict');
+is $c, 'strict', 'load_first_existing_class';
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Any-Moose-0.12/t/005-aliases-mouse.t new/Any-Moose-0.13/t/005-aliases-mouse.t
--- old/Any-Moose-0.12/t/005-aliases-mouse.t 2010-04-02 23:26:47.000000000 +0200
+++ new/Any-Moose-0.13/t/005-aliases-mouse.t 2010-05-19 05:46:30.000000000 +0200
@@ -8,7 +8,7 @@
BEGIN {
eval 'require Mouse;';
plan skip_all => 'Mouse not available' if $@;
- plan tests => 20;
+ plan tests => 21;
}
package MyClass;
@@ -46,3 +46,5 @@
is((grep { $_ eq 'AnyMooseTest' } Any::Moose::get_all_metaclass_names()), 1);
is((grep { $_ eq 'NonexistentTest' } Any::Moose::get_all_metaclass_names()), 0);
+my $c = Any::Moose::load_first_existing_class('Any::Moose::No::Such::Module', 'strict');
+is $c, 'strict', 'load_first_existing_class';
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org