openSUSE Commits
Threads by month
- ----- 2024 -----
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
March 2012
- 1 participants
- 1469 discussions
Hello community,
here is the log from the commit of package polkit-default-privs for openSUSE:Factory checked in at 2012-03-01 17:25:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/polkit-default-privs (Old)
and /work/SRC/openSUSE:Factory/.polkit-default-privs.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "polkit-default-privs", Maintainer is "lnussel(a)suse.com"
Changes:
--------
--- /work/SRC/openSUSE:Factory/polkit-default-privs/polkit-default-privs.changes 2012-01-25 15:02:40.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.polkit-default-privs.new/polkit-default-privs.changes 2012-03-01 17:25:58.000000000 +0100
@@ -1,0 +2,10 @@
+Wed Feb 29 13:54:02 UTC 2012 - lnussel(a)suse.de
+
+- add smb4k (bnc#749065)
+
+-------------------------------------------------------------------
+Wed Feb 29 13:48:31 UTC 2012 - lnussel(a)suse.de
+
+- add udisks2 (bnc#742751)
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ polkit-default-privs-12.2.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polkit-default-privs-12.2/polkit-default-privs.restrictive new/polkit-default-privs-12.2/polkit-default-privs.restrictive
--- old/polkit-default-privs-12.2/polkit-default-privs.restrictive 2012-01-18 10:14:11.000000000 +0100
+++ new/polkit-default-privs-12.2/polkit-default-privs.restrictive 2012-02-29 14:53:45.000000000 +0100
@@ -136,7 +136,7 @@
org.freedesktop.policykit.example.pkexec.run-frobnicate auth_admin
#
-# device-kit. Should be consitent with consolekit
+# udisks
#
org.freedesktop.udisks.filesystem-mount auth_admin
org.freedesktop.udisks.filesystem-mount-system-internal auth_admin
@@ -160,6 +160,34 @@
org.freedesktop.udisks.drive-set-spindown auth_admin
org.freedesktop.udisks.linux-lvm2 auth_admin
#
+# udisks2 (bnc#742751)
+#
+org.freedesktop.udisks2.filesystem-mount-system auth_admin
+org.freedesktop.udisks2.filesystem-fstab auth_admin
+org.freedesktop.udisks2.filesystem-unmount-others auth_admin
+org.freedesktop.udisks2.encrypted-unlock-system auth_admin
+org.freedesktop.udisks2.encrypted-unlock-crypttab auth_admin
+org.freedesktop.udisks2.encrypted-lock-others auth_admin
+org.freedesktop.udisks2.encrypted-change-passphrase-system auth_admin
+org.freedesktop.udisks2.loop-delete-others auth_admin
+org.freedesktop.udisks2.manage-swapspace auth_admin
+org.freedesktop.udisks2.modify-device-system auth_admin
+org.freedesktop.udisks2.open-device auth_admin
+org.freedesktop.udisks2.open-device-system auth_admin
+org.freedesktop.udisks2.modify-system-configuration auth_admin
+org.freedesktop.udisks2.read-system-configuration-secrets auth_admin
+org.freedesktop.udisks2.ata-smart-selftest auth_admin
+#
+org.freedesktop.udisks2.filesystem-mount auth_admin
+org.freedesktop.udisks2.encrypted-unlock auth_admin
+org.freedesktop.udisks2.encrypted-change-passphrase auth_admin
+org.freedesktop.udisks2.loop-setup auth_admin
+org.freedesktop.udisks2.modify-device auth_admin
+org.freedesktop.udisks2.ata-smart-update auth_admin
+
+#
+# upower
+#
org.freedesktop.upower.suspend auth_admin
org.freedesktop.upower.hibernate auth_admin
org.freedesktop.upower.qos.request-latency auth_admin
@@ -312,4 +340,10 @@
org.freedesktop.accounts.set-login-option auth_admin
org.freedesktop.accounts.change-own-user-data auth_admin
+#
+# smb4k (bnc#749065)
+#
+de.berlios.smb4k.mounthelper.mount auth_admin_keep
+de.berlios.smb4k.mounthelper.unmount auth_admin_keep
+
###
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polkit-default-privs-12.2/polkit-default-privs.standard new/polkit-default-privs-12.2/polkit-default-privs.standard
--- old/polkit-default-privs-12.2/polkit-default-privs.standard 2012-01-18 10:14:11.000000000 +0100
+++ new/polkit-default-privs-12.2/polkit-default-privs.standard 2012-02-29 14:53:45.000000000 +0100
@@ -137,7 +137,7 @@
org.freedesktop.policykit.example.pkexec.run-frobnicate auth_admin:auth_admin:auth_admin
#
-# device-kit. Should be consitent with consolekit
+# udisks.
#
org.freedesktop.udisks.filesystem-mount auth_admin:auth_admin:yes
org.freedesktop.udisks.filesystem-mount-system-internal auth_admin:auth_admin:auth_admin_keep
@@ -161,6 +161,34 @@
org.freedesktop.udisks.drive-set-spindown auth_admin:auth_admin:yes
org.freedesktop.udisks.linux-lvm2 auth_admin_keep
#
+# udisks2 (bnc#742751)
+#
+org.freedesktop.udisks2.filesystem-mount-system auth_admin:auth_admin:auth_admin_keep
+org.freedesktop.udisks2.filesystem-fstab auth_admin:auth_admin:auth_admin_keep
+org.freedesktop.udisks2.filesystem-unmount-others auth_admin:auth_admin:auth_admin_keep
+org.freedesktop.udisks2.encrypted-unlock-system auth_admin:auth_admin:auth_admin_keep
+org.freedesktop.udisks2.encrypted-unlock-crypttab auth_admin:auth_admin:auth_admin_keep
+org.freedesktop.udisks2.encrypted-lock-others auth_admin:auth_admin:auth_admin_keep
+org.freedesktop.udisks2.encrypted-change-passphrase-system auth_admin:auth_admin:auth_admin_keep
+org.freedesktop.udisks2.loop-delete-others auth_admin:auth_admin:auth_admin_keep
+org.freedesktop.udisks2.manage-swapspace auth_admin:auth_admin:auth_admin_keep
+org.freedesktop.udisks2.modify-device-system auth_admin:auth_admin:auth_admin_keep
+org.freedesktop.udisks2.open-device auth_admin:auth_admin:auth_admin_keep
+org.freedesktop.udisks2.open-device-system auth_admin:auth_admin:auth_admin_keep
+org.freedesktop.udisks2.modify-system-configuration auth_admin
+org.freedesktop.udisks2.read-system-configuration-secrets auth_admin
+org.freedesktop.udisks2.ata-smart-selftest auth_admin:auth_admin:auth_admin_keep
+#
+org.freedesktop.udisks2.filesystem-mount auth_admin:auth_admin:yes
+org.freedesktop.udisks2.encrypted-unlock auth_admin:auth_admin:yes
+org.freedesktop.udisks2.encrypted-change-passphrase auth_admin:auth_admin:yes
+org.freedesktop.udisks2.loop-setup auth_admin:auth_admin:yes
+org.freedesktop.udisks2.modify-device auth_admin:auth_admin:yes
+org.freedesktop.udisks2.ata-smart-update auth_admin:auth_admin:yes
+
+#
+# upower
+#
org.freedesktop.upower.suspend auth_admin:auth_admin:yes
org.freedesktop.upower.hibernate auth_admin:auth_admin:yes
org.freedesktop.upower.qos.request-latency auth_admin:auth_admin:yes
@@ -313,4 +341,10 @@
org.freedesktop.accounts.set-login-option auth_admin
org.freedesktop.accounts.change-own-user-data yes
+#
+# smb4k (bnc#749065)
+#
+de.berlios.smb4k.mounthelper.mount auth_admin_keep
+de.berlios.smb4k.mounthelper.unmount auth_admin_keep
+
###
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package php5-pear-Horde_Url for openSUSE:Factory checked in at 2012-03-01 17:25:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/php5-pear-Horde_Url (Old)
and /work/SRC/openSUSE:Factory/.php5-pear-Horde_Url.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "php5-pear-Horde_Url", Maintainer is ""
Changes:
--------
--- /work/SRC/openSUSE:Factory/php5-pear-Horde_Url/php5-pear-Horde_Url.changes 2011-09-23 12:40:44.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.php5-pear-Horde_Url.new/php5-pear-Horde_Url.changes 2012-03-01 17:25:52.000000000 +0100
@@ -1,0 +2,5 @@
+Wed Dec 14 20:11:51 UTC 2011 - coolo(a)suse.com
+
+- latest LGPL is v3
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ php5-pear-Horde_Url.spec ++++++
--- /var/tmp/diff_new_pack.B9SdzG/_old 2012-03-01 17:25:53.000000000 +0100
+++ /var/tmp/diff_new_pack.B9SdzG/_new 2012-03-01 17:25:53.000000000 +0100
@@ -20,12 +20,12 @@
%define xmldir /var/lib/pear
Summary: PEAR: Horde Url class
+License: LGPL-3.0
+Group: Development/Libraries/PHP
Name: php5-pear-Horde_Url
Version: 1.0.0
-Release: 1
-License: LGPL
-Group: Development/Libraries/PHP
+Release: 0
Source0: http://pear.horde.org/get/Horde_Url-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://pear.horde.org/package/Horde_Url
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package php5-pear-Horde_Editor for openSUSE:Factory checked in at 2012-03-01 17:25:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/php5-pear-Horde_Editor (Old)
and /work/SRC/openSUSE:Factory/.php5-pear-Horde_Editor.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "php5-pear-Horde_Editor", Maintainer is ""
Changes:
--------
--- /work/SRC/openSUSE:Factory/php5-pear-Horde_Editor/php5-pear-Horde_Editor.changes 2011-09-23 12:40:20.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.php5-pear-Horde_Editor.new/php5-pear-Horde_Editor.changes 2012-03-01 17:25:46.000000000 +0100
@@ -1,0 +2,11 @@
+Tue Feb 28 13:41:36 UTC 2012 - cfarrell(a)suse.com
+
+- license update: LGPL-2.1 and (MPL-1.1 or GPL-2.0+ or LGPL-2.1+)
+ Package uses CKEditor which is mozilla triple licensed
+
+-------------------------------------------------------------------
+Sun Aug 14 20:52:45 UTC 2011 - lang(a)b1-systems.de
+
+- removed conflict with 2.0 packages as it's implied by requiring < 2.0
+
+-------------------------------------------------------------------
@@ -10 +21 @@
-- * Upgrade ckeditor to v3.5.4.
+- Upgrade ckeditor to v3.5.4.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ php5-pear-Horde_Editor.spec ++++++
--- /var/tmp/diff_new_pack.FEQkei/_old 2012-03-01 17:25:48.000000000 +0100
+++ /var/tmp/diff_new_pack.FEQkei/_new 2012-03-01 17:25:48.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package php5-pear-Horde_Editor
#
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 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
@@ -21,19 +21,20 @@
%define hordedir /usr/share/php5/PEAR/www/horde
Summary: PEAR: Horde Editor API
+License: LGPL-2.1 and (MPL-1.1 or GPL-2.0+ or LGPL-2.1+)
+Group: Development/Libraries/PHP
Name: php5-pear-Horde_Editor
Version: 1.0.1
-Release: 1
-License: LGPL
-Group: Development/Libraries/PHP
+Release: 0
Source0: http://pear.horde.org/get/Horde_Editor-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://pear.horde.org/package/Horde_Editor
BuildRequires: php5-pear >= 1.4.7
Requires: php5-pear-Horde_Browser < 2.0.0, php5-pear-Horde_Core < 2.0.0, php5-pear-Horde_Exception < 2.0.0, php5-pear-Horde_Serialize < 2.0.0, php5-pear >= 1.7.0
-Conflicts: php5-pear-Horde_Browser = 2.0.0, php5-pear-Horde_Core = 2.0.0, php5-pear-Horde_Exception = 2.0.0, php5-pear-Horde_Serialize = 2.0.0
-BuildRequires: php-macros php5-pear-Horde_Role php5-pear-channel-horde
+BuildRequires: php-macros
+BuildRequires: php5-pear-Horde_Role
+BuildRequires: php5-pear-channel-horde
Requires: php5-pear-channel-horde, php5-pear-Horde_Role
BuildArch: noarch
%define pear_name Horde_Editor
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package php5-pear-cache_lite for openSUSE:Factory checked in at 2012-03-01 17:25:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/php5-pear-cache_lite (Old)
and /work/SRC/openSUSE:Factory/.php5-pear-cache_lite.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "php5-pear-cache_lite", Maintainer is ""
Changes:
--------
--- /work/SRC/openSUSE:Factory/php5-pear-cache_lite/php5-pear-cache_lite.changes 2011-09-23 12:40:53.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.php5-pear-cache_lite.new/php5-pear-cache_lite.changes 2012-03-01 17:25:38.000000000 +0100
@@ -1,0 +2,5 @@
+Wed Dec 14 19:59:00 UTC 2011 - coolo(a)suse.com
+
+- LICENSE says LGPL-2.1+
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ php5-pear-cache_lite.spec ++++++
--- /var/tmp/diff_new_pack.07k7WU/_old 2012-03-01 17:25:39.000000000 +0100
+++ /var/tmp/diff_new_pack.07k7WU/_new 2012-03-01 17:25:39.000000000 +0100
@@ -15,18 +15,17 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
-# norootforbuild
%define peardir %(pear config-get php_dir 2> /dev/null)
%define xmldir /var/lib/pear
Summary: Fast and Safe little cache system
+License: LGPL-2.1+
+Group: Development/Libraries/Other
Name: php5-pear-cache_lite
Version: 1.7.2
-Release: 1
-License: LGPL
-Group: Development/Libraries/Other
+Release: 0
Source0: http://pear.php.net/get/Cache_Lite-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://pear.php.net/package/Cache_Lite
@@ -95,4 +94,5 @@
%doc docs/Cache_Lite/*
%{peardir}/*
%{xmldir}/Cache_Lite.xml
+
%changelog
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package perl-WWW-RobotRules for openSUSE:Factory checked in at 2012-03-01 17:25:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-WWW-RobotRules (Old)
and /work/SRC/openSUSE:Factory/.perl-WWW-RobotRules.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-WWW-RobotRules", Maintainer is ""
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-WWW-RobotRules/perl-WWW-RobotRules.changes 2011-09-23 12:39:23.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.perl-WWW-RobotRules.new/perl-WWW-RobotRules.changes 2012-03-01 17:25:34.000000000 +0100
@@ -1,0 +2,6 @@
+Mon Feb 20 10:48:55 UTC 2012 - coolo(a)suse.com
+
+- updated to 6.02
+ * Restore perl-5.8.1 compatiblity.
+
+-------------------------------------------------------------------
Old:
----
WWW-RobotRules-6.01.tar.gz
New:
----
WWW-RobotRules-6.02.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-WWW-RobotRules.spec ++++++
--- /var/tmp/diff_new_pack.JbuBZ9/_old 2012-03-01 17:25:38.000000000 +0100
+++ /var/tmp/diff_new_pack.JbuBZ9/_new 2012-03-01 17:25:38.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package perl-WWW-RobotRules
#
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 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
@@ -16,25 +16,23 @@
#
-
Name: perl-WWW-RobotRules
-Version: 6.01
-Release: 1
-License: GPL-1.0+ or Artistic-1.0
+Version: 6.02
+Release: 0
%define cpan_name WWW-RobotRules
Summary: database of robots.txt-derived permissions
-Url: http://search.cpan.org/dist/WWW-RobotRules/
+License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
-#Source: http://www.cpan.org/authors/id/G/GA/GAAS/WWW-RobotRules-%{version}.tar.gz
-Source: %{cpan_name}-%{version}.tar.gz
-BuildRequires: perl(Fcntl)
-BuildRequires: perl(URI) >= 1.10
+Url: http://search.cpan.org/dist/WWW-RobotRules/
+Source: http://www.cpan.org/authors/id/G/GA/GAAS/%{cpan_name}-%{version}.tar.gz
+BuildArch: noarch
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
-Requires: perl(Fcntl)
+BuildRequires: perl(URI) >= 1.10
+#BuildRequires: perl(WWW::RobotRules)
+#BuildRequires: perl(WWW::RobotRules::AnyDBM_File)
Requires: perl(URI) >= 1.10
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
-BuildArch: noarch
%{perl_requires}
%description
@@ -43,9 +41,35 @@
can use the _/robots.txt_ file to forbid conforming robots from accessing
parts of their web site.
+The parsed files are kept in a WWW::RobotRules object, and this object
+provides methods to check if access to a given URL is prohibited. The same
+WWW::RobotRules object can be used for one or more parsed _/robots.txt_
+files on any number of hosts.
+
+The following methods are provided:
+
+* $rules = WWW::RobotRules->new($robot_name)
+
+ This is the constructor for WWW::RobotRules objects. The first argument
+ given to new() is the name of the robot.
+
+* $rules->parse($robot_txt_url, $content, $fresh_until)
+
+ The parse() method takes as arguments the URL that was used to retrieve
+ the _/robots.txt_ file, and the contents of the file.
+
+* $rules->allowed($uri)
+
+ Returns TRUE if this robot is allowed to retrieve this URL.
+
+* $rules->agent([$name])
+
+ Get/set the agent name. NOTE: Changing the agent name will clear the
+ robots.txt rules and expire times out of the cache.
%prep
%setup -q -n %{cpan_name}-%{version}
+find . -type f -print0 | xargs -0 chmod 644
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
@@ -59,11 +83,8 @@
%perl_process_packlist
%perl_gen_filelist
-%clean
-%{__rm} -rf %{buildroot}
-
%files -f %{name}.files
-%defattr(644,root,root,755)
+%defattr(-,root,root,755)
%doc Changes README
%changelog
++++++ WWW-RobotRules-6.01.tar.gz -> WWW-RobotRules-6.02.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-RobotRules-6.01/Changes new/WWW-RobotRules-6.02/Changes
--- old/WWW-RobotRules-6.01/Changes 2011-03-13 16:08:40.000000000 +0100
+++ new/WWW-RobotRules-6.02/Changes 2012-02-18 14:07:15.000000000 +0100
@@ -1,4 +1,11 @@
_______________________________________________________________________________
+2012-02-18 WWW-RobotRules 6.02
+
+Restore perl-5.8.1 compatiblity.
+
+
+
+_______________________________________________________________________________
2011-03-13 WWW-RobotRules 6.01
Added legal notice and updated the meta repository link
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-RobotRules-6.01/META.yml new/WWW-RobotRules-6.02/META.yml
--- old/WWW-RobotRules-6.01/META.yml 2011-03-13 16:08:54.000000000 +0100
+++ new/WWW-RobotRules-6.02/META.yml 2012-02-18 14:07:29.000000000 +0100
@@ -1,6 +1,6 @@
--- #YAML:1.0
name: WWW-RobotRules
-version: 6.01
+version: 6.02
abstract: database of robots.txt-derived permissions
author:
- Gisle Aas <gisle(a)activestate.com>
@@ -13,16 +13,16 @@
requires:
AnyDBM_File: 0
Fcntl: 0
- perl: 5.008008
+ perl: 5.008001
URI: 1.10
resources:
MailingList: mailto:libwww@perl.org
- repository: http://github.com/gisle/libwww-perl/tree/WWW-RobotRules/master
+ repository: http://github.com/gisle/www-robotrules
no_index:
directory:
- t
- inc
-generated_by: ExtUtils::MakeMaker version 6.56
+generated_by: ExtUtils::MakeMaker version 6.57_05
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: 1.4
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-RobotRules-6.01/Makefile.PL new/WWW-RobotRules-6.02/Makefile.PL
--- old/WWW-RobotRules-6.01/Makefile.PL 2011-03-13 16:08:36.000000000 +0100
+++ new/WWW-RobotRules-6.02/Makefile.PL 2012-02-18 13:57:41.000000000 +0100
@@ -1,6 +1,6 @@
#!perl -w
-require 5.008008;
+require 5.008001;
use strict;
use ExtUtils::MakeMaker;
@@ -10,7 +10,7 @@
ABSTRACT_FROM => 'lib/WWW/RobotRules.pm',
AUTHOR => 'Gisle Aas <gisle(a)activestate.com>',
LICENSE => "perl",
- MIN_PERL_VERSION => 5.008008,
+ MIN_PERL_VERSION => 5.008001,
PREREQ_PM => {
'AnyDBM_File' => 0,
'Fcntl' => 0,
@@ -18,7 +18,7 @@
},
META_MERGE => {
resources => {
- repository => 'http://github.com/gisle/libwww-perl/tree/WWW-RobotRules/master',
+ repository => 'http://github.com/gisle/www-robotrules',
MailingList => 'mailto:libwww@perl.org',
}
},
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-RobotRules-6.01/lib/WWW/RobotRules.pm new/WWW-RobotRules-6.02/lib/WWW/RobotRules.pm
--- old/WWW-RobotRules-6.01/lib/WWW/RobotRules.pm 2011-03-13 16:08:40.000000000 +0100
+++ new/WWW-RobotRules-6.02/lib/WWW/RobotRules.pm 2012-02-18 14:05:13.000000000 +0100
@@ -1,6 +1,6 @@
package WWW::RobotRules;
-$VERSION = "6.01";
+$VERSION = "6.02";
sub Version { $VERSION; }
use strict;
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package perl-Variable-Magic for openSUSE:Factory checked in at 2012-03-01 17:25:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Variable-Magic (Old)
and /work/SRC/openSUSE:Factory/.perl-Variable-Magic.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Variable-Magic", Maintainer is ""
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Variable-Magic/perl-Variable-Magic.changes 2011-12-21 10:02:55.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.perl-Variable-Magic.new/perl-Variable-Magic.changes 2012-03-01 17:25:27.000000000 +0100
@@ -1,0 +2,8 @@
+Sat Feb 25 06:32:19 UTC 2012 - coolo(a)suse.com
+
+- updated to 0.48
+ + Add : You can now pass a reference to undef as the magic callback in
+ order to install a no-op callback.
+ Thanks Florian Ragwitz for the suggestion.
+
+-------------------------------------------------------------------
Old:
----
Variable-Magic-0.47.tar.gz
New:
----
Variable-Magic-0.48.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Variable-Magic.spec ++++++
--- /var/tmp/diff_new_pack.GUVjI3/_old 2012-03-01 17:25:28.000000000 +0100
+++ /var/tmp/diff_new_pack.GUVjI3/_new 2012-03-01 17:25:28.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package perl-Variable-Magic
#
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 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
@@ -16,28 +16,26 @@
#
-%bcond_with test
-
Name: perl-Variable-Magic
+Version: 0.48
+Release: 0
%define cpan_name Variable-Magic
Summary: Associate user-defined magic to variables from Perl
-License: GPL-1.0+ or Artistic-1.0
+License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
-Version: 0.47
-Release: 0
Url: http://search.cpan.org/dist/Variable-Magic/
-Source: http://search.cpan.org/CPAN/authors/id/V/VP/VPIT/%{cpan_name}-%{version}.ta…
+Source: http://www.cpan.org/authors/id/V/VP/VPIT/%{cpan_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
-# for testsuite
-%if %{with test}
-BuildRequires: perl(Test::Pod) >= 1.14
-BuildRequires: perl(Test::Pod::Coverage) >= 1.04
-#BuildRequires: perl(Test::Portability::Files)
+#BuildRequires: perl(ActivePerl)
+#BuildRequires: perl(Hash::Util::FieldHash)
#BuildRequires: perl(Test::Kwalitee)
-%endif
+#BuildRequires: perl(Variable::Magic)
+#BuildRequires: perl(Variable::Magic::TestThreads)
+#BuildRequires: perl(Variable::Magic::TestValue)
+#BuildRequires: perl(Variable::Magic::TestWatcher)
+%{perl_requires}
%description
Magic is Perl's way of enhancing variables. This mechanism lets the user
@@ -46,16 +44,18 @@
module, you can add your own magic to any variable without having to write
a single line of XS.
-
-Authors:
---------
- Vincent Pit <perl(a)profvince.com>
+You'll realize that these magic variables look a lot like tied variables.
+It's not surprising, as tied variables are implemented as a special kind of
+magic, just like any 'irregular' Perl variable : scalars like '$!', '$(' or
+'$^W', the '%ENV' and '%SIG' hashes, the '@ISA' array, 'vec()' and
+'substr()' lvalues, the threads::shared manpage variables... They all share
+the same underlying C API, and this module gives you direct access to it.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS -Wall"
+%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__make} %{?_smp_mflags}
%check
@@ -66,11 +66,8 @@
%perl_process_packlist
%perl_gen_filelist
-%clean
-%{__rm} -rf $RPM_BUILD_ROOT
-
%files -f %{name}.files
-%defattr(-,root,root,-)
+%defattr(-,root,root,755)
%doc Changes README
%changelog
++++++ Variable-Magic-0.47.tar.gz -> Variable-Magic-0.48.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Variable-Magic-0.47/Changes new/Variable-Magic-0.48/Changes
--- old/Variable-Magic-0.47/Changes 2011-10-27 18:38:36.000000000 +0200
+++ new/Variable-Magic-0.48/Changes 2012-02-18 00:30:16.000000000 +0100
@@ -1,5 +1,10 @@
Revision history for Variable-Magic
+0.48 2012-02-17 23:40 UTC
+ + Add : You can now pass a reference to undef as the magic callback in
+ order to install a no-op callback.
+ Thanks Florian Ragwitz for the suggestion.
+
0.47 2011-10-27 16:55 UTC
+ Add : The new constant VMG_COMPAT_HASH_DELETE_NOUVAR_VOID evaluates
to true when "delete $hash{key}" does not call 'delete' uvar
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Variable-Magic-0.47/META.json new/Variable-Magic-0.48/META.json
--- old/Variable-Magic-0.47/META.json 2011-10-27 18:39:32.000000000 +0200
+++ new/Variable-Magic-0.48/META.json 2012-02-18 00:31:41.000000000 +0100
@@ -4,7 +4,7 @@
"Vincent Pit <perl(a)profvince.com>"
],
"dynamic_config" : 1,
- "generated_by" : "ExtUtils::MakeMaker version 6.59, CPAN::Meta::Converter version 2.112621",
+ "generated_by" : "ExtUtils::MakeMaker version 6.62, CPAN::Meta::Converter version 2.120351",
"license" : [
"perl_5"
],
@@ -22,27 +22,27 @@
"prereqs" : {
"build" : {
"requires" : {
- "Carp" : 0,
- "Config" : 0,
- "Exporter" : 0,
- "ExtUtils::MakeMaker" : 0,
- "Test::More" : 0,
- "XSLoader" : 0,
- "base" : 0
+ "Carp" : "0",
+ "Config" : "0",
+ "Exporter" : "0",
+ "ExtUtils::MakeMaker" : "0",
+ "Test::More" : "0",
+ "XSLoader" : "0",
+ "base" : "0"
}
},
"configure" : {
"requires" : {
- "Config" : 0,
- "ExtUtils::MakeMaker" : 0
+ "Config" : "0",
+ "ExtUtils::MakeMaker" : "0"
}
},
"runtime" : {
"requires" : {
- "Carp" : 0,
- "Exporter" : 0,
- "XSLoader" : 0,
- "base" : 0,
+ "Carp" : "0",
+ "Exporter" : "0",
+ "XSLoader" : "0",
+ "base" : "0",
"perl" : "5.008"
}
}
@@ -60,5 +60,5 @@
"url" : "http://git.profvince.com/?p=perl%2Fmodules%2FVariable-Magic.git"
}
},
- "version" : "0.47"
+ "version" : "0.48"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Variable-Magic-0.47/META.yml new/Variable-Magic-0.48/META.yml
--- old/Variable-Magic-0.47/META.yml 2011-10-27 18:39:32.000000000 +0200
+++ new/Variable-Magic-0.48/META.yml 2012-02-18 00:31:40.000000000 +0100
@@ -14,7 +14,7 @@
Config: 0
ExtUtils::MakeMaker: 0
dynamic_config: 1
-generated_by: 'ExtUtils::MakeMaker version 6.59, CPAN::Meta::Converter version 2.112621'
+generated_by: 'ExtUtils::MakeMaker version 6.62, CPAN::Meta::Converter version 2.120351'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -35,4 +35,4 @@
homepage: http://search.cpan.org/dist/Variable-Magic/
license: http://dev.perl.org/licenses/
repository: http://git.profvince.com/?p=perl%2Fmodules%2FVariable-Magic.git
-version: 0.47
+version: 0.48
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Variable-Magic-0.47/Magic.xs new/Variable-Magic-0.48/Magic.xs
--- old/Variable-Magic-0.47/Magic.xs 2011-10-26 23:56:46.000000000 +0200
+++ new/Variable-Magic-0.48/Magic.xs 2012-02-17 19:46:19.000000000 +0100
@@ -435,9 +435,7 @@
#define vmg_vtable_vtbl(T) (T)->vtbl
-#if VMG_THREADSAFE
STATIC perl_mutex vmg_vtable_refcount_mutex;
-#endif
STATIC vmg_vtable *vmg_vtable_dup(pTHX_ vmg_vtable *t) {
#define vmg_vtable_dup(T) vmg_vtable_dup(aTHX_ (T))
@@ -1016,7 +1014,7 @@
return &PL_sv_undef;
}
-/* ... svt callbacks ....................................................... */
+/* --- svt callbacks ------------------------------------------------------- */
#define VMG_CB_CALL_ARGS_MASK 15
#define VMG_CB_CALL_ARGS_SHIFT 4
@@ -1074,18 +1072,44 @@
#define vmg_cb_call3(I, OI, S, A1, A2, A3) \
vmg_cb_call(aTHX_ (I), VMG_CB_FLAGS((OI), 3), (S), (A1), (A2), (A3))
+STATIC int vmg_svt_default_noop(pTHX_ SV *sv, MAGIC *mg) {
+ return 0;
+}
+
+/* ... get magic ........................................................... */
+
STATIC int vmg_svt_get(pTHX_ SV *sv, MAGIC *mg) {
const vmg_wizard *w = vmg_wizard_from_mg_nocheck(mg);
return vmg_cb_call1(w->cb_get, w->opinfo, sv, mg->mg_obj);
}
+#define vmg_svt_get_noop vmg_svt_default_noop
+
+/* ... set magic ........................................................... */
+
STATIC int vmg_svt_set(pTHX_ SV *sv, MAGIC *mg) {
const vmg_wizard *w = vmg_wizard_from_mg_nocheck(mg);
return vmg_cb_call1(w->cb_set, w->opinfo, sv, mg->mg_obj);
}
+#define vmg_svt_set_noop vmg_svt_default_noop
+
+/* ... len magic ........................................................... */
+
+STATIC U32 vmg_sv_len(pTHX_ SV *sv) {
+#define vmg_sv_len(S) vmg_sv_len(aTHX_ (S))
+ STRLEN len;
+#if VMG_HAS_PERL(5, 9, 3)
+ const U8 *s = VOID2(const U8 *, VOID2(const void *, SvPV_const(sv, len)));
+#else
+ U8 *s = SvPV(sv, len);
+#endif
+
+ return DO_UTF8(sv) ? utf8_length(s, s + len) : len;
+}
+
STATIC U32 vmg_svt_len(pTHX_ SV *sv, MAGIC *mg) {
const vmg_wizard *w = vmg_wizard_from_mg_nocheck(mg);
unsigned int opinfo = w->opinfo;
@@ -1103,16 +1127,7 @@
PUSHs(sv_2mortal(newRV_inc(sv)));
PUSHs(mg->mg_obj ? mg->mg_obj : &PL_sv_undef);
if (t < SVt_PVAV) {
- STRLEN l;
-#if VMG_HAS_PERL(5, 9, 3)
- const U8 *s = VOID2(const U8 *, VOID2(const void *, SvPV_const(sv, l)));
-#else
- U8 *s = SvPV(sv, l);
-#endif
- if (DO_UTF8(sv))
- len = utf8_length(s, s + l);
- else
- len = l;
+ len = vmg_sv_len(sv);
mPUSHu(len);
} else if (t == SVt_PVAV) {
len = av_len((AV *) sv) + 1;
@@ -1140,12 +1155,31 @@
return ret;
}
+STATIC U32 vmg_svt_len_noop(pTHX_ SV *sv, MAGIC *mg) {
+ U32 len = 0;
+ svtype t = SvTYPE(sv);
+
+ if (t < SVt_PVAV) {
+ len = vmg_sv_len(sv);
+ } else if (t == SVt_PVAV) {
+ len = (U32) av_len((AV *) sv);
+ }
+
+ return len;
+}
+
+/* ... clear magic ......................................................... */
+
STATIC int vmg_svt_clear(pTHX_ SV *sv, MAGIC *mg) {
const vmg_wizard *w = vmg_wizard_from_mg_nocheck(mg);
return vmg_cb_call1(w->cb_clear, w->opinfo, sv, mg->mg_obj);
}
+#define vmg_svt_clear_noop vmg_svt_default_noop
+
+/* ... free magic .......................................................... */
+
STATIC int vmg_svt_free(pTHX_ SV *sv, MAGIC *mg) {
const vmg_wizard *w;
int ret = 0;
@@ -1201,12 +1235,16 @@
return ret;
}
+#define vmg_svt_free_noop vmg_svt_default_noop
+
#if VMG_HAS_PERL_MAINT(5, 11, 0, 33256) || VMG_HAS_PERL(5, 12, 0)
# define VMG_SVT_COPY_KEYLEN_TYPE I32
#else
# define VMG_SVT_COPY_KEYLEN_TYPE int
#endif
+/* ... copy magic .......................................................... */
+
STATIC int vmg_svt_copy(pTHX_ SV *sv, MAGIC *mg, SV *nsv, const char *key, VMG_SVT_COPY_KEYLEN_TYPE keylen) {
const vmg_wizard *w = vmg_wizard_from_mg_nocheck(mg);
SV *keysv;
@@ -1227,20 +1265,35 @@
return ret;
}
+STATIC int vmg_svt_copy_noop(pTHX_ SV *sv, MAGIC *mg, SV *nsv, const char *key, VMG_SVT_COPY_KEYLEN_TYPE keylen) {
+ return 0;
+}
+
+/* ... dup magic ........................................................... */
+
#if 0
STATIC int vmg_svt_dup(pTHX_ MAGIC *mg, CLONE_PARAMS *param) {
return 0;
}
+#define vmg_svt_dup_noop vmg_svt_dup
#endif
+/* ... local magic ......................................................... */
+
#if MGf_LOCAL
+
STATIC int vmg_svt_local(pTHX_ SV *nsv, MAGIC *mg) {
const vmg_wizard *w = vmg_wizard_from_mg_nocheck(mg);
return vmg_cb_call1(w->cb_local, w->opinfo, nsv, mg->mg_obj);
}
+
+#define vmg_svt_local_noop vmg_svt_default_noop
+
#endif /* MGf_LOCAL */
+/* ... uvar magic .......................................................... */
+
#if VMG_UVAR
STATIC OP *vmg_pp_resetuvar(pTHX) {
SvRMAGICAL_on(cSVOP_sv);
@@ -1336,19 +1389,46 @@
/* --- Macros for the XS section ------------------------------------------- */
-#define VMG_SET_CB(S, N) \
- cb = (S); \
- w->cb_ ## N = (SvOK(cb) && SvROK(cb)) ? SvREFCNT_inc(SvRV(cb)) : NULL;
-
-#define VMG_SET_SVT_CB(S, N) \
- cb = (S); \
- if (SvOK(cb) && SvROK(cb)) { \
- t->svt_ ## N = vmg_svt_ ## N; \
- w->cb_ ## N = SvREFCNT_inc(SvRV(cb)); \
- } else { \
- t->svt_ ## N = NULL; \
- w->cb_ ## N = NULL; \
- }
+#ifdef CvISXSUB
+# define VMG_CVOK(C) \
+ ((CvISXSUB(C) ? (void *) CvXSUB(C) : (void *) CvROOT(C)) ? 1 : 0)
+#else
+# define VMG_CVOK(C) (CvROOT(C) || CvXSUB(C))
+#endif
+
+#define VMG_CBOK(S) ((SvTYPE(S) == SVt_PVCV) ? VMG_CVOK(S) : SvOK(S))
+
+#define VMG_SET_CB(S, N) { \
+ SV *cb = (S); \
+ if (SvOK(cb) && SvROK(cb)) { \
+ cb = SvRV(cb); \
+ if (VMG_CBOK(cb)) \
+ SvREFCNT_inc_simple_void(cb); \
+ else \
+ cb = NULL; \
+ } else { \
+ cb = NULL; \
+ } \
+ w->cb_ ## N = cb; \
+}
+
+#define VMG_SET_SVT_CB(S, N) { \
+ SV *cb = (S); \
+ if (SvOK(cb) && SvROK(cb)) { \
+ cb = SvRV(cb); \
+ if (VMG_CBOK(cb)) { \
+ t->svt_ ## N = vmg_svt_ ## N; \
+ SvREFCNT_inc_simple_void(cb); \
+ } else { \
+ t->svt_ ## N = vmg_svt_ ## N ## _noop; \
+ cb = NULL; \
+ } \
+ } else { \
+ t->svt_ ## N = NULL; \
+ cb = NULL; \
+ } \
+ w->cb_ ## N = cb; \
+}
/* --- XS ------------------------------------------------------------------ */
@@ -1424,7 +1504,7 @@
PREINIT:
vmg_wizard *w;
MGVTBL *t;
- SV *cb, *op_info, *copy_key;
+ SV *op_info, *copy_key;
I32 i = 0;
CODE:
if (items != 9
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Variable-Magic-0.47/README new/Variable-Magic-0.48/README
--- old/Variable-Magic-0.47/README 2011-10-27 18:39:32.000000000 +0200
+++ new/Variable-Magic-0.48/README 2012-02-18 00:31:41.000000000 +0100
@@ -2,7 +2,7 @@
Variable::Magic - Associate user-defined magic to variables from Perl.
VERSION
- Version 0.47
+ Version 0.48
SYNOPSIS
use Variable::Magic qw<wizard cast VMG_OP_INFO_NAME>;
@@ -234,8 +234,19 @@
straight to the perl magic API. However, only the return value of
the "len" callback currently holds a meaning.
- Each callback can be specified as a code or a string reference, in which
- case the function denoted by the string will be used as the callback.
+ Each callback can be specified as :
+
+ * a code reference, which will be called as a subroutine.
+
+ * a string reference, where the string denotes which subroutine is to
+ be called when magic is triggered. If the subroutine name is not
+ fully qualified, then the current package at the time the magic is
+ invoked will be used instead.
+
+ * a reference to "undef", in which case a no-op magic callback is
+ installed instead of the default one. This may especially be helpful
+ for 'local' magic, where an empty callback prevents magic from being
+ copied during localization.
Note that "free" callbacks are *never* called during global destruction,
as there's no way to ensure that the wizard and the "free" callback
@@ -550,7 +561,8 @@
<http://www.profvince.com/perl/cover/Variable-Magic>.
COPYRIGHT & LICENSE
- Copyright 2007,2008,2009,2010,2011 Vincent Pit, all rights reserved.
+ Copyright 2007,2008,2009,2010,2011,2012 Vincent Pit, all rights
+ reserved.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Variable-Magic-0.47/lib/Variable/Magic.pm new/Variable-Magic-0.48/lib/Variable/Magic.pm
--- old/Variable-Magic-0.47/lib/Variable/Magic.pm 2011-10-27 18:38:40.000000000 +0200
+++ new/Variable-Magic-0.48/lib/Variable/Magic.pm 2012-02-18 00:30:23.000000000 +0100
@@ -11,13 +11,13 @@
=head1 VERSION
-Version 0.47
+Version 0.48
=cut
our $VERSION;
BEGIN {
- $VERSION = '0.47';
+ $VERSION = '0.48';
}
=head1 SYNOPSIS
@@ -285,7 +285,25 @@
=back
-Each callback can be specified as a code or a string reference, in which case the function denoted by the string will be used as the callback.
+Each callback can be specified as :
+
+=over 4
+
+=item *
+
+a code reference, which will be called as a subroutine.
+
+=item *
+
+a string reference, where the string denotes which subroutine is to be called when magic is triggered.
+If the subroutine name is not fully qualified, then the current package at the time the magic is invoked will be used instead.
+
+=item *
+
+a reference to C<undef>, in which case a no-op magic callback is installed instead of the default one.
+This may especially be helpful for 'local' magic, where an empty callback prevents magic from being copied during localization.
+
+=back
Note that C<free> callbacks are I<never> called during global destruction, as there's no way to ensure that the wizard and the C<free> callback weren't destroyed before the variable.
@@ -657,7 +675,7 @@
=head1 COPYRIGHT & LICENSE
-Copyright 2007,2008,2009,2010,2011 Vincent Pit, all rights reserved.
+Copyright 2007,2008,2009,2010,2011,2012 Vincent Pit, all rights reserved.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Variable-Magic-0.47/t/14-callbacks.t new/Variable-Magic-0.48/t/14-callbacks.t
--- old/Variable-Magic-0.47/t/14-callbacks.t 2011-09-04 17:19:53.000000000 +0200
+++ new/Variable-Magic-0.48/t/14-callbacks.t 2012-02-16 23:01:30.000000000 +0100
@@ -3,7 +3,7 @@
use strict;
use warnings;
-use Test::More tests => 17;
+use Test::More tests => 26;
use Variable::Magic qw<wizard cast>;
@@ -31,18 +31,53 @@
my $c = 0;
sub X::wat { ++$c }
my $wiz = eval { wizard get => \'X::wat' };
- is($@, '', 'wizard with a string callback doesn\'t croak');
+ is($@, '', 'wizard with a qualified string callback doesn\'t croak');
my $b = $n;
my $res = eval { cast $b, $wiz };
- is($@, '', 'cast a wizard with a string callback doesn\'t croak');
+ is($@, '', 'cast a wizard with a qualified string callback doesn\'t croak');
my $x;
eval {
local $SIG{__WARN__} = sub { die };
$x = $b;
};
- is($@, '', 'string callback doesn\'t warn/croak');
- is($c, 1, 'string callback is called');
- is($x, $n, 'string callback returns the right thing');
+ is($@, '', 'qualified string callback doesn\'t warn/croak');
+ is($c, 1, 'qualified string callback is called');
+ is($x, $n, 'qualified string callback returns the right thing');
+}
+
+{
+ my $c = 0;
+ sub wut { fail 'main::wut was called' }
+ sub Y::wut { ++$c }
+ my $wiz = eval { wizard get => \'wut' };
+ is($@, '', 'wizard with a short string callback doesn\'t croak');
+ my $b = $n;
+ my $res = eval { cast $b, $wiz };
+ is($@, '', 'cast a wizard with a short string callback doesn\'t croak');
+ my $x;
+ eval {
+ local $SIG{__WARN__} = sub { die };
+ package Y;
+ $x = $b;
+ };
+ is($@, '', 'short string callback doesn\'t warn/croak');
+ is($c, 1, 'short string callback is called');
+ is($x, $n, 'short string callback returns the right thing');
+}
+
+{
+ my $wiz = eval { wizard get => \undef };
+ is($@, '', 'wizard with a ref-to-undef callback doesn\'t croak');
+ my $b = $n;
+ my $res = eval { cast $b, $wiz };
+ is($@, '', 'cast a wizard with a ref-to-undef callback doesn\'t croak');
+ my $x;
+ eval {
+ local $SIG{__WARN__} = sub { die };
+ $x = $b;
+ };
+ is($@, '', 'ref-to-undef callback doesn\'t warn/croak');
+ is($x, $n, 'ref-to-undef callback returns the right thing');
}
my @callers;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Variable-Magic-0.47/t/22-len.t new/Variable-Magic-0.48/t/22-len.t
--- old/Variable-Magic-0.47/t/22-len.t 2011-09-04 17:19:53.000000000 +0200
+++ new/Variable-Magic-0.48/t/22-len.t 2012-02-17 19:09:07.000000000 +0100
@@ -3,7 +3,7 @@
use strict;
use warnings;
-use Test::More tests => 39 + (2 * 2 + 1);
+use Test::More tests => 39 + (2 * 2 + 1) + (5 + 2 * 3);
use Variable::Magic qw<wizard cast dispell VMG_COMPAT_SCALAR_LENGTH_NOLEN>;
@@ -70,8 +70,8 @@
$c = 0;
$n = 1 + int rand 1000;
# length magic on scalars needs also get magic to be triggered.
- $wiz = wizard get => sub { return 'anything' },
- len => sub { $d = $_[2]; ++$c; return $n };
+ my $wiz = wizard get => sub { return 'anything' },
+ len => sub { $d = $_[2]; ++$c; return $n };
my $x = 6789;
@@ -167,3 +167,35 @@
dispell @val, $wv;
is_deeply \@val, [ 4, 5, 8 ], 'len: after value';
}
+
+{
+ local $@;
+
+ my $wua = eval { wizard len => \undef };
+ is $@, '', 'len: noop wizard (for arrays) creation does not croak';
+
+ my @a = ('a' .. 'z');
+ eval { cast @a, $wua };
+ is $@, '', 'len: noop wizard (for arrays) cast does not croak';
+
+ my $l;
+ eval { $l = $#a };
+ is $@, '', 'len: noop wizard (for arrays) invocation does not croak';
+ is $l, 25, 'len: noop magic on an array returns the previous length';
+
+ my $wus = eval { wizard get => \undef, len => \undef };
+ is $@, '', 'len: noop wizard (for strings) creation does not croak';
+
+ for ([ 'euro', 'string' ], [ "\x{20AC}uro", 'unicode string' ]) {
+ my ($euro, $desc) = @$_;
+
+ eval { cast $euro, $wus };
+ is $@, '', 'len: noop wizard (for strings) cast does not croak';
+
+ eval { pos($euro) = 2 };
+ is $@, '', 'len: noop wizard (for strings) invocation does not croak';
+
+ my ($rest) = ($euro =~ /(.*)/g);
+ is $rest, 'ro', "len: noop magic on a $desc returns the previous length";
+ }
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Variable-Magic-0.47/t/27-local.t new/Variable-Magic-0.48/t/27-local.t
--- old/Variable-Magic-0.47/t/27-local.t 2011-09-04 17:19:53.000000000 +0200
+++ new/Variable-Magic-0.48/t/27-local.t 2012-02-17 18:01:52.000000000 +0100
@@ -5,10 +5,10 @@
use Test::More;
-use Variable::Magic qw<cast MGf_LOCAL>;
+use Variable::Magic qw<wizard cast getdata MGf_LOCAL>;
if (MGf_LOCAL) {
- plan tests => 2 * 3 + 1 + 1;
+ plan tests => 2 * 3 + 1 + (2 + 2 * 7) + 1;
} else {
plan skip_all => 'No local magic for this perl';
}
@@ -24,3 +24,50 @@
ok $res, 'local: cast succeeded';
watch { local $a } { local => 1 }, 'localized';
+
+{
+ local $@;
+
+ my $w1 = eval { wizard local => \undef, data => sub { 'w1' } };
+ is $@, '', 'local: noop wizard creation does not croak';
+ my $w2 = eval { wizard data => sub { 'w2' } };
+ is $@, '', 'local: dummy wizard creation does not croak';
+
+ {
+ our $u;
+ eval { cast $u, $w1 };
+ is $@, '', 'local: noop magic (first) cast does not croak';
+ is getdata($u, $w1), 'w1', 'local: noop magic (first) cast succeeded';
+ eval { cast $u, $w2 };
+ is $@, '', 'local: dummy magic (second) cast does not croak';
+ is getdata($u, $w2), 'w2', 'local: dummy magic (second) cast succeeded';
+ my ($z1, $z2);
+ eval {
+ local $u = '';
+ $z1 = getdata $u, $w1;
+ $z2 = getdata $u, $w2;
+ };
+ is $@, '', 'local: noop/dummy magic invocation does not croak';
+ is $z1, undef, 'local: noop magic (first) prevented magic copy';
+ is $z2, 'w2', 'local: dummy magic (second) was copied';
+ }
+
+ {
+ our $v;
+ eval { cast $v, $w2 };
+ is $@, '', 'local: dummy magic (first) cast does not croak';
+ is getdata($v, $w2), 'w2', 'local: dummy magic (first) cast succeeded';
+ eval { cast $v, $w1 };
+ is $@, '', 'local: noop magic (second) cast does not croak';
+ is getdata($v, $w1), 'w1', 'local: noop magic (second) cast succeeded';
+ my ($z1, $z2);
+ eval {
+ local $v = '';
+ $z1 = getdata $v, $w1;
+ $z2 = getdata $v, $w2;
+ };
+ is $@, '', 'local: dummy/noop magic invocation does not croak';
+ is $z2, 'w2', 'local: dummy magic (first) was copied';
+ is $z1, undef, 'local: noop magic (second) prevented magic copy';
+ }
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Variable-Magic-0.47/t/lib/Variable/Magic/TestWatcher.pm new/Variable-Magic-0.48/t/lib/Variable/Magic/TestWatcher.pm
--- old/Variable-Magic-0.47/t/lib/Variable/Magic/TestWatcher.pm 2011-10-26 19:58:10.000000000 +0200
+++ new/Variable-Magic-0.48/t/lib/Variable/Magic/TestWatcher.pm 2012-02-16 23:08:12.000000000 +0100
@@ -28,6 +28,7 @@
croak 'can\'t initialize twice' if defined $wiz;
my $types = _types shift;
$prefix = (defined) ? "$_: " : '' for shift;
+ local $@;
%mg = ();
$wiz = eval 'wizard ' . join(', ', map {
"$_ => sub { \$mg{$_}++;" . ($_ eq 'len' ? '$_[2]' : '0') . '}'
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package perl-Path-Class for openSUSE:Factory checked in at 2012-03-01 17:25:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Path-Class (Old)
and /work/SRC/openSUSE:Factory/.perl-Path-Class.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Path-Class", Maintainer is "MRueckert(a)suse.com"
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Path-Class/perl-Path-Class.changes 2011-09-23 12:38:32.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.perl-Path-Class.new/perl-Path-Class.changes 2012-03-01 17:25:17.000000000 +0100
@@ -1,0 +2,11 @@
+Mon Feb 27 09:04:53 UTC 2012 - coolo(a)suse.com
+
+- updated to 0.25
+ - resolve() now croak()s instead of die()s on non-existent file. [Danijel Tašov]
+ - Added a traverse() method for directories, based on the fmap_cont()
+ method of Forest::Tree::Pure. It's an alternative to ->recurse,
+ which allows for more control over how the recursion
+ happens. [Jesse Luehrs]
+ - Fixed a grammar error in the docs. [Shlomi Fish]
+
+-------------------------------------------------------------------
Old:
----
Path-Class-0.24.tar.gz
New:
----
Path-Class-0.25.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Path-Class.spec ++++++
--- /var/tmp/diff_new_pack.LgDla4/_old 2012-03-01 17:25:20.000000000 +0100
+++ /var/tmp/diff_new_pack.LgDla4/_new 2012-03-01 17:25:20.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package perl-Path-Class
#
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 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
@@ -16,21 +16,24 @@
#
-
Name: perl-Path-Class
-Version: 0.24
-Release: 1
-License: GPL-1.0+ or Artistic-1.0
+Version: 0.25
+Release: 0
%define cpan_name Path-Class
Summary: Cross-platform path specification manipulation
-Url: http://search.cpan.org/dist/Path-Class/
+License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
+Url: http://search.cpan.org/dist/Path-Class/
Source: http://www.cpan.org/authors/id/K/KW/KWILLIAMS/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Module::Build) >= 0.3601
+#BuildRequires: perl(Path::Class)
+#BuildRequires: perl(Path::Class::Dir)
+#BuildRequires: perl(Path::Class::Entity)
+#BuildRequires: perl(Path::Class::File)
%{perl_requires}
%description
@@ -95,9 +98,6 @@
./Build install destdir=%{buildroot} create_packlist=0
%perl_gen_filelist
-%clean
-%{__rm} -rf %{buildroot}
-
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes LICENSE README
++++++ Path-Class-0.24.tar.gz -> Path-Class-0.25.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Path-Class-0.24/Build.PL new/Path-Class-0.25/Build.PL
--- old/Path-Class-0.24/Build.PL 2011-05-29 03:53:45.000000000 +0200
+++ new/Path-Class-0.25/Build.PL 2012-02-16 03:56:28.000000000 +0100
@@ -6,38 +6,41 @@
my %module_build_args = (
- 'build_requires' => {
- 'Module::Build' => '0.3601',
- 'Test' => '0',
- 'Test::More' => '0'
+ "build_requires" => {
+ "Module::Build" => "0.3601",
+ "Test" => 0,
+ "Test::More" => 0,
+ "warnings" => 0
},
- 'configure_requires' => {
- 'ExtUtils::MakeMaker' => '6.30',
- 'Module::Build' => '0.3601'
+ "configure_requires" => {
+ "ExtUtils::MakeMaker" => "6.30",
+ "Module::Build" => "0.3601"
},
- 'dist_abstract' => 'Cross-platform path specification manipulation',
- 'dist_author' => [
- 'Ken Williams <kwilliams(a)cpan.org>'
+ "dist_abstract" => "Cross-platform path specification manipulation",
+ "dist_author" => [
+ "Ken Williams <kwilliams\(a)cpan.org>"
],
- 'dist_name' => 'Path-Class',
- 'dist_version' => '0.24',
- 'license' => 'perl',
- 'module_name' => 'Path::Class',
- 'recommends' => {},
- 'recursive_test_files' => 1,
- 'requires' => {
- 'Carp' => '0',
- 'Cwd' => '0',
- 'Exporter' => '0',
- 'File::Path' => '0',
- 'File::Spec' => '0.87',
- 'File::Temp' => '0',
- 'File::stat' => '0',
- 'IO::Dir' => '0',
- 'IO::File' => '0',
- 'overload' => '0'
+ "dist_name" => "Path-Class",
+ "dist_version" => "0.25",
+ "license" => "perl",
+ "module_name" => "Path::Class",
+ "recommends" => {},
+ "recursive_test_files" => 1,
+ "requires" => {
+ "Carp" => 0,
+ "Cwd" => 0,
+ "Exporter" => 0,
+ "File::Path" => 0,
+ "File::Spec" => "0.87",
+ "File::Temp" => 0,
+ "File::stat" => 0,
+ "IO::Dir" => 0,
+ "IO::File" => 0,
+ "base" => 0,
+ "overload" => 0,
+ "strict" => 0
},
- 'script_files' => []
+ "script_files" => []
);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Path-Class-0.24/Changes new/Path-Class-0.25/Changes
--- old/Path-Class-0.24/Changes 2011-05-29 03:53:45.000000000 +0200
+++ new/Path-Class-0.25/Changes 2012-02-16 03:56:28.000000000 +0100
@@ -1,5 +1,16 @@
Revision history for Perl extension Path::Class.
+0.25 Wed Feb 15 20:55:30 CST 2012
+
+ - resolve() now croak()s instead of die()s on non-existent file. [Danijel Tašov]
+
+ - Added a traverse() method for directories, based on the fmap_cont()
+ method of Forest::Tree::Pure. It's an alternative to ->recurse,
+ which allows for more control over how the recursion
+ happens. [Jesse Luehrs]
+
+ - Fixed a grammar error in the docs. [Shlomi Fish]
+
0.24 Sat May 28 20:52:39 CDT 2011
- Added a tempfile() method for Dir objects, which provides an
@@ -224,7 +235,7 @@
properly. [Michael Schwern]
- Fixed a test failure on Win32 (from line 71 of t/01-basic.t).
- [reported by Murat �nalan]
+ [reported by Murat Ünalan]
- Rewrote general description of Path::Class in the documentation
[suggested by Joshua Keroes]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Path-Class-0.24/INSTALL new/Path-Class-0.25/INSTALL
--- old/Path-Class-0.24/INSTALL 2011-05-29 03:53:45.000000000 +0200
+++ new/Path-Class-0.25/INSTALL 2012-02-16 03:56:28.000000000 +0100
@@ -1,14 +1,44 @@
- Installation instructions for Path::Class
-To install this module, follow the standard steps for installing most
-Perl modules:
+This is the Perl distribution Path-Class.
- perl Makefile.PL
- make
- make test
- make install
+Installing Path-Class is straightforward.
-Or you may use the CPAN.pm module, which will automatically execute
-these steps for you.
+## Installation with cpanm
- -Ken
+If you have cpanm, you only need one line:
+
+ % cpanm Path::Class
+
+If you are installing into a system-wide directory, you may need to pass the
+"-S" flag to cpanm, which uses sudo to install the module:
+
+ % cpanm -S Path::Class
+
+## Installing with the CPAN shell
+
+Alternatively, if your CPAN shell is set up, you should just be able to do:
+
+ % cpan Path::Class
+
+## Manual installation
+
+As a last resort, you can manually install it. Download the tarball, untar it,
+then build it:
+
+ % perl Makefile.PL
+ % make && make test
+
+Then install it:
+
+ % make install
+
+If you are installing into a system-wide directory, you may need to run:
+
+ % sudo make install
+
+## Documentation
+
+Path-Class documentation is available as POD.
+You can run perldoc from a shell to read the documentation:
+
+ % perldoc Path::Class
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Path-Class-0.24/LICENSE new/Path-Class-0.25/LICENSE
--- old/Path-Class-0.24/LICENSE 2011-05-29 03:53:45.000000000 +0200
+++ new/Path-Class-0.25/LICENSE 2012-02-16 03:56:28.000000000 +0100
@@ -1,4 +1,4 @@
-This software is copyright (c) 2011 by Ken Williams.
+This software is copyright (c) 2012 by Ken Williams.
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,21 +12,22 @@
--- The GNU General Public License, Version 1, February 1989 ---
-This software is Copyright (c) 2011 by Ken Williams.
+This software is Copyright (c) 2012 by Ken Williams.
This is free software, licensed under:
The GNU General Public License, Version 1, February 1989
- GNU GENERAL PUBLIC LICENSE
- Version 1, February 1989
+ GNU GENERAL PUBLIC LICENSE
+ Version 1, February 1989
Copyright (C) 1989 Free Software Foundation, Inc.
- 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
+ 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
- Preamble
+ Preamble
The license agreements of most software companies try to keep users
at the mercy of those companies. By contrast, our General Public
@@ -67,7 +68,7 @@
The precise terms and conditions for copying, distribution and
modification follow.
- GNU GENERAL PUBLIC LICENSE
+ GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any program or other work which
@@ -185,7 +186,7 @@
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
- NO WARRANTY
+ NO WARRANTY
9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
@@ -207,9 +208,9 @@
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
- END OF TERMS AND CONDITIONS
+ END OF TERMS AND CONDITIONS
- Appendix: How to Apply These Terms to Your New Programs
+ Appendix: How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to humanity, the best way to achieve this is to make it
@@ -235,8 +236,9 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA
+
Also add information on how to contact you by electronic and paper mail.
@@ -270,7 +272,7 @@
--- The Artistic License 1.0 ---
-This software is Copyright (c) 2011 by Ken Williams.
+This software is Copyright (c) 2012 by Ken Williams.
This is free software, licensed under:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Path-Class-0.24/MANIFEST new/Path-Class-0.25/MANIFEST
--- old/Path-Class-0.24/MANIFEST 2011-05-29 03:53:45.000000000 +0200
+++ new/Path-Class-0.25/MANIFEST 2012-02-16 03:56:28.000000000 +0100
@@ -16,4 +16,5 @@
t/02-foreign.t
t/03-filesystem.t
t/04-subclass.t
+t/05-traverse.t
t/author-critic.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Path-Class-0.24/META.yml new/Path-Class-0.25/META.yml
--- old/Path-Class-0.24/META.yml 2011-05-29 03:53:45.000000000 +0200
+++ new/Path-Class-0.25/META.yml 2012-02-16 03:56:28.000000000 +0100
@@ -6,11 +6,12 @@
Module::Build: 0.3601
Test: 0
Test::More: 0
+ warnings: 0
configure_requires:
ExtUtils::MakeMaker: 6.30
Module::Build: 0.3601
dynamic_config: 0
-generated_by: 'Dist::Zilla version 4.200006, CPAN::Meta::Converter version 2.102400'
+generated_by: 'Dist::Zilla version 4.300002, CPAN::Meta::Converter version 2.112150'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -26,8 +27,10 @@
File::stat: 0
IO::Dir: 0
IO::File: 0
+ base: 0
overload: 0
+ strict: 0
resources:
bugtracker: http://rt.cpan.org/Public/Dist/Display.html?Name=Path-Class
- repository: http://perl-path-class.googlecode.com/svn/trunk
-version: 0.24
+ repository: git://github.com/kenahoo/Path-Class.git
+version: 0.25
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Path-Class-0.24/Makefile.PL new/Path-Class-0.25/Makefile.PL
--- old/Path-Class-0.24/Makefile.PL 2011-05-29 03:53:45.000000000 +0200
+++ new/Path-Class-0.25/Makefile.PL 2012-02-16 03:56:28.000000000 +0100
@@ -9,36 +9,39 @@
my %WriteMakefileArgs = (
- 'ABSTRACT' => 'Cross-platform path specification manipulation',
- 'AUTHOR' => 'Ken Williams <kwilliams(a)cpan.org>',
- 'BUILD_REQUIRES' => {
- 'Module::Build' => '0.3601',
- 'Test' => '0',
- 'Test::More' => '0'
+ "ABSTRACT" => "Cross-platform path specification manipulation",
+ "AUTHOR" => "Ken Williams <kwilliams\(a)cpan.org>",
+ "BUILD_REQUIRES" => {
+ "Module::Build" => "0.3601",
+ "Test" => 0,
+ "Test::More" => 0,
+ "warnings" => 0
},
- 'CONFIGURE_REQUIRES' => {
- 'ExtUtils::MakeMaker' => '6.30',
- 'Module::Build' => '0.3601'
+ "CONFIGURE_REQUIRES" => {
+ "ExtUtils::MakeMaker" => "6.30",
+ "Module::Build" => "0.3601"
},
- 'DISTNAME' => 'Path-Class',
- 'EXE_FILES' => [],
- 'LICENSE' => 'perl',
- 'NAME' => 'Path::Class',
- 'PREREQ_PM' => {
- 'Carp' => '0',
- 'Cwd' => '0',
- 'Exporter' => '0',
- 'File::Path' => '0',
- 'File::Spec' => '0.87',
- 'File::Temp' => '0',
- 'File::stat' => '0',
- 'IO::Dir' => '0',
- 'IO::File' => '0',
- 'overload' => '0'
+ "DISTNAME" => "Path-Class",
+ "EXE_FILES" => [],
+ "LICENSE" => "perl",
+ "NAME" => "Path::Class",
+ "PREREQ_PM" => {
+ "Carp" => 0,
+ "Cwd" => 0,
+ "Exporter" => 0,
+ "File::Path" => 0,
+ "File::Spec" => "0.87",
+ "File::Temp" => 0,
+ "File::stat" => 0,
+ "IO::Dir" => 0,
+ "IO::File" => 0,
+ "base" => 0,
+ "overload" => 0,
+ "strict" => 0
},
- 'VERSION' => '0.24',
- 'test' => {
- 'TESTS' => 't/*.t'
+ "VERSION" => "0.25",
+ "test" => {
+ "TESTS" => "t/*.t"
}
);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Path-Class-0.24/README new/Path-Class-0.25/README
--- old/Path-Class-0.24/README 2011-05-29 03:53:45.000000000 +0200
+++ new/Path-Class-0.25/README 2012-02-16 03:56:28.000000000 +0100
@@ -1,11 +1,11 @@
This archive contains the distribution Path-Class,
-version 0.24:
+version 0.25:
Cross-platform path specification manipulation
-This software is copyright (c) 2011 by Ken Williams.
+This software is copyright (c) 2012 by Ken Williams.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Path-Class-0.24/SIGNATURE new/Path-Class-0.25/SIGNATURE
--- old/Path-Class-0.24/SIGNATURE 2011-05-29 03:53:52.000000000 +0200
+++ new/Path-Class-0.25/SIGNATURE 2012-02-16 03:56:28.000000000 +0100
@@ -1,5 +1,5 @@
This file contains message digests of all files listed in MANIFEST,
-signed via the Module::Signature module, version 0.66.
+signed via the Module::Signature module, version 0.68.
To verify the content in this distribution, first make sure you have
Module::Signature installed, then type:
@@ -14,28 +14,30 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-SHA1 ea792bf52b566bff462a76a5d4d50433e0b527ea Build.PL
-SHA1 247c8647d187a81327719ee36cf6d4f9703db733 Changes
-SHA1 066a2dba8084a0c2a7e4b6996ad21872bc16beb5 INSTALL
-SHA1 da0b89eff79e9d5128ab28d63e099b840cca39bf LICENSE
-SHA1 52cb7d3f48ff3c95c8459535d1bd6e123ec44501 MANIFEST
-SHA1 fb09dac402763a91c50f3e1949a51813f509afdb META.yml
-SHA1 ce72ebc3d68832477effb18bc248d92211874f14 Makefile.PL
-SHA1 243b575c9d7769d2cfd29c189ec2be8c883c4ece README
-SHA1 a6ebbb825cd8d9c406a02ac08f3b7680d5d285f2 dist.ini
-SHA1 07aaa412631cc8e6ea4276b3f3ea1fffbe5065f5 lib/Path/Class.pm
-SHA1 8d6415121b20b7a701290105646ac48f0f691b5b lib/Path/Class/Dir.pm
-SHA1 0549c1d2150621445a31f7688b2f5a878bb662f2 lib/Path/Class/Entity.pm
-SHA1 8193c8bd639e4e5c01bbaf4f173970fa3a992507 lib/Path/Class/File.pm
+SHA1 b0e7caad5afe531b3c9dbb6946d4d62d40fb64ea Build.PL
+SHA1 c019faeb9674c167d60997e6e4321f7de7ac7096 Changes
+SHA1 3baefa5156f90435f40c793b7f071e2f89a74006 INSTALL
+SHA1 b33df3650303ca968f350ac6a976f34f41762851 LICENSE
+SHA1 e0b6ae90f3672e071e3e8d77f1d100dda38e9c24 MANIFEST
+SHA1 5aefe0dfeafcb343beb080a3f6c7297131fef7ae META.yml
+SHA1 9186a51736835d4795e0ff71dd7e1d1c95fea61d Makefile.PL
+SHA1 fb3fff92bcd540665c40fea342f8377c72d5d597 README
+SHA1 b56785d5c081896083dc4398194e1286e68371a0 dist.ini
+SHA1 58a9698bacf9f6d62356a31a7b10b46b7b411910 lib/Path/Class.pm
+SHA1 6240803f25d3c7a5b2589e8a82c3684096e6294c lib/Path/Class/Dir.pm
+SHA1 7fd839b0aa96c90489b62504ddf993883dd5575d lib/Path/Class/Entity.pm
+SHA1 323141c5eefea8cc3f55f0106f54fd4db508131c lib/Path/Class/File.pm
SHA1 212c128d87fa012c36016210e6e9213112fc3c23 t/01-basic.t
SHA1 a42f4b07e4c42e7a59b960b13c5466d7cd82e17a t/02-foreign.t
SHA1 ff702cdbf0bb4c25959cbc5a5c7db17772b7aa5b t/03-filesystem.t
SHA1 a163d4cf70142b45974ed39c78571e7ce2ba5a7f t/04-subclass.t
+SHA1 a154070d2cb1369f6cebf4228742edea39c43c63 t/05-traverse.t
SHA1 fa45d6e6ab1cd421349dea4ef527bfd5cdc8a09e t/author-critic.t
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.6 (Darwin)
+Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
+Comment: GPGTools - http://gpgtools.org
-iD8DBQFN4acwgrvMBLfvlHYRAmIXAKC4w/k04B/Pm3pj3AUHDLUBxEKmFgCgpr+J
-vFWvOuqcL5jRV9XPXUxGOCI=
-=+Fzk
+iEYEARECAAYFAk88cFsACgkQgrvMBLfvlHboawCgw86uYQhnD3A06Nec9W1ZKD2a
+04kAmwbu2yyS2/XXyhHa+ql9R79+V1lS
+=UPVQ
-----END PGP SIGNATURE-----
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Path-Class-0.24/dist.ini new/Path-Class-0.25/dist.ini
--- old/Path-Class-0.24/dist.ini 2011-05-29 03:53:45.000000000 +0200
+++ new/Path-Class-0.25/dist.ini 2012-02-16 03:56:28.000000000 +0100
@@ -1,5 +1,5 @@
name = Path-Class
-version = 0.24
+version = 0.25
author = Ken Williams <kwilliams(a)cpan.org>
license = Perl_5
copyright_holder = Ken Williams
@@ -17,9 +17,12 @@
[Bugtracker]
[Repository]
[ModuleBuild]
+[InstallGuide]
-[CriticTests]
+[Test::Perl::Critic]
;[PodCoverageTests]
[AutoPrereqs]
skip = ^English$
+
+[Git::Tag]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Path-Class-0.24/lib/Path/Class/Dir.pm new/Path-Class-0.25/lib/Path/Class/Dir.pm
--- old/Path-Class-0.24/lib/Path/Class/Dir.pm 2011-05-29 03:53:45.000000000 +0200
+++ new/Path-Class-0.25/lib/Path/Class/Dir.pm 2012-02-16 03:56:28.000000000 +0100
@@ -1,8 +1,8 @@
use strict;
package Path::Class::Dir;
-BEGIN {
- $Path::Class::Dir::VERSION = '0.24';
+{
+ $Path::Class::Dir::VERSION = '0.25';
}
use Path::Class::File;
@@ -138,6 +138,19 @@
rmdir( shift() );
}
+sub traverse {
+ my $self = shift;
+ my ($callback, @args) = @_;
+ my @children = $self->children;
+ return $self->$callback(
+ sub {
+ my @inner_args = @_;
+ return map { $_->traverse($callback, @inner_args) } @children;
+ },
+ @args
+ );
+}
+
sub recurse {
my $self = shift;
my %opts = (preorder => 1, depthfirst => 0, @_);
@@ -271,7 +284,7 @@
=head1 VERSION
-version 0.24
+version 0.25
=head1 SYNOPSIS
@@ -650,6 +663,41 @@
doesn't exist or isn't readable), C<next()> will throw an exception
with the value of C<$!>.
+=item $dir->traverse( sub { ... }, @args )
+
+Calls the given callback for the root, passing it a continuation
+function which, when called, will call this recursively on each of its
+children. The callback function should be of the form:
+
+ sub {
+ my ($child, $cont, @args) = @_;
+ # ...
+ }
+
+For instance, to calculate the number of files in a directory, you
+can do this:
+
+ my $nfiles = $dir->traverse(sub {
+ my ($child, $cont) = @_;
+ return sum($cont->(), ($child->is_dir ? 0 : 1));
+ });
+
+or to calculate the maximum depth of a directory:
+
+ my $depth = $dir->traverse(sub {
+ my ($child, $cont, $depth) = @_;
+ return max($cont->($depth + 1), $depth);
+ }, 0);
+
+You can also choose not to call the callback in certain situations:
+
+ $dir->traverse(sub {
+ my ($child, $cont) = @_;
+ return if -l $child; # don't follow symlinks
+ # do something with $child
+ return $cont->();
+ });
+
=item $dir->recurse( callback => sub {...} )
Iterates through this directory and all of its children, and all of
@@ -696,4 +744,4 @@
Path::Class, Path::Class::File, File::Spec
-=cut
\ No newline at end of file
+=cut
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Path-Class-0.24/lib/Path/Class/Entity.pm new/Path-Class-0.25/lib/Path/Class/Entity.pm
--- old/Path-Class-0.24/lib/Path/Class/Entity.pm 2011-05-29 03:53:45.000000000 +0200
+++ new/Path-Class-0.25/lib/Path/Class/Entity.pm 2012-02-16 03:56:28.000000000 +0100
@@ -1,13 +1,14 @@
use strict;
package Path::Class::Entity;
-BEGIN {
- $Path::Class::Entity::VERSION = '0.24';
+{
+ $Path::Class::Entity::VERSION = '0.25';
}
use File::Spec 0.87;
use File::stat ();
use Cwd;
+use Carp();
use overload
(
@@ -63,7 +64,7 @@
sub resolve {
my $self = shift;
- die $! unless -e $self; # No such file or directory
+ Carp::croak($!) unless -e $self; # No such file or directory
my $cleaned = $self->new( scalar Cwd::realpath($self->stringify) );
# realpath() always returns absolute path, kind of annoying
@@ -96,7 +97,7 @@
=head1 VERSION
-version 0.24
+version 0.25
=head1 DESCRIPTION
@@ -111,4 +112,4 @@
Path::Class
-=cut
\ No newline at end of file
+=cut
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Path-Class-0.24/lib/Path/Class/File.pm new/Path-Class-0.25/lib/Path/Class/File.pm
--- old/Path-Class-0.24/lib/Path/Class/File.pm 2011-05-29 03:53:45.000000000 +0200
+++ new/Path-Class-0.25/lib/Path/Class/File.pm 2012-02-16 03:56:28.000000000 +0100
@@ -1,8 +1,8 @@
use strict;
package Path::Class::File;
-BEGIN {
- $Path::Class::File::VERSION = '0.24';
+{
+ $Path::Class::File::VERSION = '0.25';
}
use Path::Class::Dir;
@@ -95,6 +95,12 @@
return not -e $file;
}
+sub traverse {
+ my $self = shift;
+ my ($callback, @args) = @_;
+ return $self->$callback(sub { () }, @args);
+}
+
1;
__END__
@@ -104,7 +110,7 @@
=head1 VERSION
-version 0.24
+version 0.25
=head1 SYNOPSIS
@@ -315,6 +321,11 @@
The default C<iomode> is C<r>.
+=item $file->traverse(sub { ... }, @args)
+
+Calls the given callback on $file. This doesn't do much on its own,
+but see the associated documentation in L<Path::Class::Dir>.
+
=item $file->remove()
This method will remove the file in a way that works well on all
@@ -352,4 +363,4 @@
Path::Class, Path::Class::Dir, File::Spec
-=cut
\ No newline at end of file
+=cut
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Path-Class-0.24/lib/Path/Class.pm new/Path-Class-0.25/lib/Path/Class.pm
--- old/Path-Class-0.24/lib/Path/Class.pm 2011-05-29 03:53:45.000000000 +0200
+++ new/Path-Class-0.25/lib/Path/Class.pm 2012-02-16 03:56:28.000000000 +0100
@@ -1,8 +1,8 @@
use strict;
package Path::Class;
-BEGIN {
- $Path::Class::VERSION = '0.24';
+{
+ $Path::Class::VERSION = '0.25';
}
{
@@ -32,7 +32,7 @@
=head1 VERSION
-version 0.24
+version 0.25
=head1 SYNOPSIS
@@ -160,7 +160,7 @@
=item *
-Some platforms, notably VMS and some older versions of DOS (I think),
+On some platforms, notably VMS and some older versions of DOS (I think),
all filenames must have an extension. Thus if you create a file
called F<foo/bar> and then ask for a list of files in the directory
F<foo>, you may find a file called F<bar.> instead of the F<bar> you
@@ -185,4 +185,4 @@
Path::Class::Dir, Path::Class::File, File::Spec
-=cut
\ No newline at end of file
+=cut
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Path-Class-0.24/t/05-traverse.t new/Path-Class-0.25/t/05-traverse.t
--- old/Path-Class-0.24/t/05-traverse.t 1970-01-01 01:00:00.000000000 +0100
+++ new/Path-Class-0.25/t/05-traverse.t 2012-02-16 03:56:28.000000000 +0100
@@ -0,0 +1,51 @@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+use Cwd;
+use Test::More;
+use File::Temp qw(tempdir);
+
+plan tests => 4;
+
+use_ok 'Path::Class';
+
+my $cwd = getcwd;
+my $tmp = dir(tempdir(CLEANUP => 1));
+
+# Test recursive iteration through the following structure:
+# a
+# / \
+# b c
+# / \ \
+# d e f
+# / \ \
+# g h i
+(my $abe = $tmp->subdir(qw(a b e)))->mkpath;
+(my $acf = $tmp->subdir(qw(a c f)))->mkpath;
+$acf->file('i')->touch;
+$abe->file('h')->touch;
+$abe->file('g')->touch;
+$tmp->file(qw(a b d))->touch;
+
+my $a = $tmp->subdir('a');
+
+my $nnodes = $a->traverse(sub {
+ my ($child, $cont) = @_;
+ return sum($cont->(), 1);
+});
+is($nnodes, 9);
+
+my $ndirs = $a->traverse(sub {
+ my ($child, $cont) = @_;
+ return sum($cont->(), ($child->is_dir ? 1 : 0));
+});
+is($ndirs, 5);
+
+my $max_depth = $a->traverse(sub {
+ my ($child, $cont, $depth) = @_;
+ return max($cont->($depth + 1), $depth);
+}, 0);
+is($max_depth, 3);
+
+sub sum { my $total = 0; $total += $_ for @_; $total }
+sub max { my $max = 0; for (@_) { $max = $_ if $_ > $max } $max }
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
01 Mar '12
Hello community,
here is the log from the commit of package perl-MooseX-Role-Parameterized for openSUSE:Factory checked in at 2012-03-01 17:25:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-MooseX-Role-Parameterized (Old)
and /work/SRC/openSUSE:Factory/.perl-MooseX-Role-Parameterized.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-MooseX-Role-Parameterized", Maintainer is ""
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-MooseX-Role-Parameterized/perl-MooseX-Role-Parameterized.changes 2011-12-21 10:02:31.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.perl-MooseX-Role-Parameterized.new/perl-MooseX-Role-Parameterized.changes 2012-03-01 17:25:11.000000000 +0100
@@ -1,0 +2,19 @@
+Mon Feb 27 10:09:25 UTC 2012 - coolo(a)suse.com
+
+- updated to 1.00
+ * MooseX::Role::Parameterized now depends on Moose 2.0300
+ released 2011-09-23 for its several core improvements, hence the
+ major version number bump.
+ * MXRP now uses the new meta_lookup feature added to Moose 2.0300
+ (specifically for MXRP) to avoid duplicating Moose-0.60-era
+ Moose::Role sugar. This means the error messages you get are
+ better, and there's a lot less ugly code in MXRP.
+ * Remove alias/excludes special case errors. They have long since been
+ replaced in core Moose by -alias and -excludes, and were finally
+ removed in Moose 2.0200.
+ * Expressly forbid using role { } inside role { } (which makes no
+ sense but I suppose you could accidentally trigger it)
+ * Documentation fix from cweyl(a)alumni.drew.edu
+ https://github.com/sartak/MooseX-Role-Parameterized/pull/5
+
+-------------------------------------------------------------------
Old:
----
MooseX-Role-Parameterized-0.27.tar.gz
New:
----
MooseX-Role-Parameterized-1.00.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-MooseX-Role-Parameterized.spec ++++++
--- /var/tmp/diff_new_pack.0QHeDY/_old 2012-03-01 17:25:12.000000000 +0100
+++ /var/tmp/diff_new_pack.0QHeDY/_new 2012-03-01 17:25:12.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package perl-MooseX-Role-Parameterized
#
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 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
@@ -17,11 +17,11 @@
Name: perl-MooseX-Role-Parameterized
-Version: 0.27
+Version: 1.00
Release: 0
%define cpan_name MooseX-Role-Parameterized
Summary: Roles with composition parameters
-License: GPL-1.0+ or Artistic-1.0
+License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/MooseX-Role-Parameterized/
Source: http://www.cpan.org/authors/id/S/SA/SARTAK/%{cpan_name}-%{version}.tar.gz
@@ -30,11 +30,47 @@
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
-BuildRequires: perl(Moose) >= 0.78
+BuildRequires: perl(Moose) >= 2.0300
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::Moose)
BuildRequires: perl(Test::More) >= 0.96
-Requires: perl(Moose) >= 0.78
+#BuildRequires: perl(Bar)
+#BuildRequires: perl(Foo)
+#BuildRequires: perl(Foo::Role)
+#BuildRequires: perl(inc::Module::Install)
+#BuildRequires: perl(JSON)
+#BuildRequires: perl(LWP::Simple)
+#BuildRequires: perl(Module::Build)
+#BuildRequires: perl(Module::Install::AutoManifest)
+#BuildRequires: perl(Module::Install::Base)
+#BuildRequires: perl(Module::Install::GithubMeta)
+#BuildRequires: perl(Module::Install::ManifestSkip)
+#BuildRequires: perl(Moose::Exporter)
+#BuildRequires: perl(Moose::Meta::Role)
+#BuildRequires: perl(Moose::Role)
+#BuildRequires: perl(Moose::Util::TypeConstraints)
+#BuildRequires: perl(MooseX::Role::Parameterized)
+#BuildRequires: perl(MooseX::Role::Parameterized::Meta::Role::Parameterizable)
+#BuildRequires: perl(MooseX::Role::Parameterized::Meta::Role::Parameterized)
+#BuildRequires: perl(MooseX::Role::Parameterized::Meta::Trait::Parameterized)
+#BuildRequires: perl(MooseX::Role::Parameterized::Parameters)
+#BuildRequires: perl(MyCompositeRoleA)
+#BuildRequires: perl(MyItem::Role::Equippable)
+#BuildRequires: perl(MyItem::Role::Wearable)
+#BuildRequires: perl(MyPRole)
+#BuildRequires: perl(MyRole)
+#BuildRequires: perl(MyRole::Delegator)
+#BuildRequires: perl(MyRole::LogMethod)
+#BuildRequires: perl(MyRole::Parameterized)
+#BuildRequires: perl(MyRole::Sans::Block)
+#BuildRequires: perl(MyRole::Storage)
+#BuildRequires: perl(MyTrait)
+#BuildRequires: perl(OtherRole)
+#BuildRequires: perl(Parse::CPAN::Meta)
+#BuildRequires: perl(P::Role)
+#BuildRequires: perl(Test::Consumer)
+#BuildRequires: perl(YAML::Tiny)
+Requires: perl(Moose) >= 2.0300
%{perl_requires}
%description
@@ -81,9 +117,6 @@
%perl_process_packlist
%perl_gen_filelist
-%clean
-%{__rm} -rf %{buildroot}
-
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes
++++++ MooseX-Role-Parameterized-0.27.tar.gz -> MooseX-Role-Parameterized-1.00.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-Role-Parameterized-0.27/Changes new/MooseX-Role-Parameterized-1.00/Changes
--- old/MooseX-Role-Parameterized-0.27/Changes 2011-08-22 20:58:49.000000000 +0200
+++ new/MooseX-Role-Parameterized-1.00/Changes 2012-01-12 18:46:02.000000000 +0100
@@ -1,5 +1,22 @@
Changes for MooseX-Role-Parameterized
+1.00 January 12, 2012
+ * MooseX::Role::Parameterized now depends on Moose 2.0300
+ released 2011-09-23 for its several core improvements, hence the
+ major version number bump.
+
+ * MXRP now uses the new meta_lookup feature added to Moose 2.0300
+ (specifically for MXRP) to avoid duplicating Moose-0.60-era
+ Moose::Role sugar. This means the error messages you get are
+ better, and there's a lot less ugly code in MXRP.
+ * Remove alias/excludes special case errors. They have long since been
+ replaced in core Moose by -alias and -excludes, and were finally
+ removed in Moose 2.0200.
+ * Expressly forbid using role { } inside role { } (which makes no
+ sense but I suppose you could accidentally trigger it)
+ * Documentation fix from cweyl(a)alumni.drew.edu
+ https://github.com/sartak/MooseX-Role-Parameterized/pull/5
+
0.27 August 22, 2011
* Remove MooseX::Role::Parameterized::Meta::Parameter; instead,
the default for parameters of (is => 'ro') is set by the
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-Role-Parameterized-0.27/META.yml new/MooseX-Role-Parameterized-1.00/META.yml
--- old/MooseX-Role-Parameterized-0.27/META.yml 2011-08-22 20:58:54.000000000 +0200
+++ new/MooseX-Role-Parameterized-1.00/META.yml 2012-01-12 18:45:11.000000000 +0100
@@ -21,7 +21,7 @@
- inc
- t
requires:
- Moose: 0.78
+ Moose: 2.0300
perl: 5.8.1
resources:
homepage: http://github.com/sartak/MooseX-Role-Parameterized/tree
@@ -30,4 +30,4 @@
type: git
url: git://github.com/sartak/MooseX-Role-Parameterized.git
web: http://github.com/sartak/MooseX-Role-Parameterized/tree
-version: 0.27
+version: 1.00
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-Role-Parameterized-0.27/Makefile.PL new/MooseX-Role-Parameterized-1.00/Makefile.PL
--- old/MooseX-Role-Parameterized-0.27/Makefile.PL 2011-08-22 20:58:49.000000000 +0200
+++ new/MooseX-Role-Parameterized-1.00/Makefile.PL 2011-09-26 20:54:02.000000000 +0200
@@ -9,7 +9,7 @@
all_from 'lib/MooseX/Role/Parameterized.pm';
githubmeta;
-requires 'Moose' => '0.78';
+requires 'Moose' => '2.0300';
test_requires 'Test::Moose';
test_requires 'Test::More' => '0.96';
test_requires 'Test::Fatal';
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-Role-Parameterized-0.27/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm new/MooseX-Role-Parameterized-1.00/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm
--- old/MooseX-Role-Parameterized-0.27/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm 2011-08-22 20:58:49.000000000 +0200
+++ new/MooseX-Role-Parameterized-1.00/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm 2012-01-12 18:38:14.000000000 +0100
@@ -7,7 +7,11 @@
use MooseX::Role::Parameterized::Meta::Role::Parameterized;
use MooseX::Role::Parameterized::Parameters;
-use constant parameterized_role_metaclass => 'MooseX::Role::Parameterized::Meta::Role::Parameterized';
+has parameterized_role_metaclass => (
+ is => 'ro',
+ isa => 'ClassName',
+ default => 'MooseX::Role::Parameterized::Meta::Role::Parameterized',
+);
has parameters_class => (
is => 'ro',
@@ -19,15 +23,11 @@
is => 'rw',
isa => 'Moose::Meta::Class',
lazy => 1,
- default => sub {
- my $self = shift;
-
- $self->parameters_class->meta->create_anon_class(
- superclasses => [$self->parameters_class],
- );
- },
+ builder => '_build_parameters_metaclass',
handles => {
- has_parameter => 'has_attribute',
+ has_parameter => 'has_attribute',
+ add_parameter => 'add_attribute',
+ construct_parameters => 'new_object',
},
);
@@ -37,30 +37,12 @@
predicate => 'has_role_generator',
);
-sub add_parameter {
+sub _build_parameters_metaclass {
my $self = shift;
- my $name = shift;
-
- confess "You must provide a name for the parameter"
- if !defined($name);
- confess "The parameter name ($name) is currently forbidden"
- if $name eq 'alias'
- || $name eq 'excludes';
-
- $self->parameters_metaclass->add_attribute($name => @_);
-}
-
-sub construct_parameters {
- my $self = shift;
- my %args = @_;
-
- for my $name ('alias', 'excludes') {
- confess "The parameter name ($name) is currently forbidden"
- if exists $args{$name};
- }
-
- $self->parameters_metaclass->new_object(\%args);
+ return $self->parameters_class->meta->create_anon_class(
+ superclasses => [$self->parameters_class],
+ );
}
sub generate_role {
@@ -146,14 +128,19 @@
=head1 DESCRIPTION
-This is the metaclass for parameterizable roles, roles that have their
-parameters currently unbound. These are the roles that you use L<Moose/with>,
-but instead of composing the parameterizable role, we construct a new
-parameterized role
-(L<MooseX::Role::Parameterized::Meta::Role::Parameterized>).
+This is the metaclass for parameterizable roles, roles that have
+their parameters currently unbound. These are the roles that you
+use L<Moose/with>, but instead of composing the parameterizable
+role, we construct a new parameterized role
+(L<MooseX::Role::Parameterized::Meta::Role::Parameterized>) and use
+that new parameterized instead.
=head1 ATTRIBUTES
+=head2 parameterized_role_metaclass
+
+The name of the class that will be used to construct the parameterized role.
+
=head2 parameters_class
The name of the class that will be used to construct the parameters object.
@@ -177,9 +164,8 @@
=head2 add_parameter $name, %options
-Basically delegates to L<Moose::Meta::Class/add_attribute> on the
-L</parameters_metaclass> but with error messages that refer to a "parameter"
-not an "attribute".
+Delegates to L<Moose::Meta::Class/add_attribute> on the
+L</parameters_metaclass> object.
=head2 construct_parameters %arguments
@@ -190,11 +176,27 @@
=head2 generate_role %arguments
-Returns a new instance of
-L<MooseX::Role::Parameterized::Meta::Role::Parameterized> based on the
-arguments. The arguments are a hash reference of C<parameters> and, if
-available, a C<consumer> metaobject. A C<package> argument may be given to use
-a specific package name instead of autogenerating one.
+This method generates and returns a new instance of
+L</parameterized_role_metaclass>. It can take any combination of
+three named parameters:
+
+=over 4
+
+=item arguments
+
+A hashref of parameters for the role, same as would be passed in at a "with"
+statement.
+
+=item package
+
+A package name that, if present, we will use for the generated role; if not,
+we generate an anonymous role.
+
+=item consumer
+
+A consumer metaobject, if available.
+
+=back
=head2 apply
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-Role-Parameterized-0.27/lib/MooseX/Role/Parameterized/Tutorial.pod new/MooseX-Role-Parameterized-1.00/lib/MooseX/Role/Parameterized/Tutorial.pod
--- old/MooseX-Role-Parameterized-0.27/lib/MooseX/Role/Parameterized/Tutorial.pod 2011-04-22 22:28:58.000000000 +0200
+++ new/MooseX-Role-Parameterized-1.00/lib/MooseX/Role/Parameterized/Tutorial.pod 2011-08-29 18:20:30.000000000 +0200
@@ -29,10 +29,11 @@
=head3 C<with>
-The syntax of a class consuming a parameterized role has not changed from the
-standard C<with>. You pass in parameters just like you pass in C<-alias> and
-C<-excludes> to ordinary roles (though without hyphens, since these are not
-core Moose composition parameters):
+The syntax of a class consuming a parameterized role has not changed
+from the standard C<with>. You pass in parameters just like you
+pass in C<-alias> and C<-excludes> to ordinary roles (though your
+custom parameters do not get hyphens, since these are not core Moose
+composition parameters):
with 'MyRole::InstrumentMethod' => {
method_name => 'dbh_do',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-Role-Parameterized-0.27/lib/MooseX/Role/Parameterized.pm new/MooseX-Role-Parameterized-1.00/lib/MooseX/Role/Parameterized.pm
--- old/MooseX-Role-Parameterized-0.27/lib/MooseX/Role/Parameterized.pm 2011-08-22 20:58:49.000000000 +0200
+++ new/MooseX-Role-Parameterized-1.00/lib/MooseX/Role/Parameterized.pm 2012-01-12 18:44:03.000000000 +0100
@@ -3,29 +3,28 @@
use Moose::Role ();
use Moose::Exporter;
use Carp 'confess';
-use Scalar::Util 'blessed';
use MooseX::Role::Parameterized::Meta::Role::Parameterizable;
-our $VERSION = '0.27';
+our $VERSION = '1.00';
our $CURRENT_METACLASS;
+sub current_metaclass { $CURRENT_METACLASS }
+
Moose::Exporter->setup_import_methods(
- with_caller => ['parameter', 'role', 'method', 'has', 'with', 'extends',
- 'requires', 'excludes', 'augment', 'inner', 'before',
- 'after', 'around', 'super', 'override'],
- as_is => [ 'confess', 'blessed' ],
+ also => 'Moose::Role',
+ with_caller => ['parameter', 'role'],
+ with_meta => ['method'],
+ meta_lookup => sub { current_metaclass || Class::MOP::class_of(shift) },
);
-sub current_metaclass { $CURRENT_METACLASS }
-
sub parameter {
my $caller = shift;
confess "'parameter' may not be used inside of the role block"
- if $CURRENT_METACLASS && $CURRENT_METACLASS->genitor->name eq $caller;
+ if current_metaclass && current_metaclass->genitor->name eq $caller;
- my $meta = Class::MOP::class_of($caller);
+ my $meta = Class::MOP::class_of($caller);
my $names = shift;
$names = [$names] if !ref($names);
@@ -41,6 +40,10 @@
sub role (&) {
my $caller = shift;
my $role_generator = shift;
+
+ confess "'role' may not be used inside of the role block"
+ if current_metaclass && current_metaclass->genitor->name eq $caller;
+
Class::MOP::class_of($caller)->role_generator($role_generator);
}
@@ -52,27 +55,13 @@
return Moose::Role->init_meta(%options);
}
-sub has {
- my $caller = shift;
- my $meta = $CURRENT_METACLASS || Class::MOP::class_of($caller);
-
- my $names = shift;
- $names = [$names] if !ref($names);
-
- for my $name (@$names) {
- $meta->add_attribute($name, @_);
- }
-}
-
sub method {
- my $caller = shift;
- my $meta = $CURRENT_METACLASS || Class::MOP::class_of($caller);
-
- my $name = shift;
- my $body = shift;
+ my $meta = shift;
+ my $name = shift;
+ my $body = shift;
my $method = $meta->method_metaclass->wrap(
- package_name => $caller,
+ package_name => $meta->name,
name => $name,
body => $body,
);
@@ -80,79 +69,6 @@
$meta->add_method($name => $method);
}
-sub _add_method_modifier {
- my $type = shift;
- my $caller = shift;
- my $meta = $CURRENT_METACLASS || Class::MOP::class_of($caller);
-
- my $code = pop @_;
-
- for (@_) {
- Carp::croak "Roles do not currently support "
- . ref($_)
- . " references for $type method modifiers"
- if ref $_;
-
- my $add_method = "add_${type}_method_modifier";
- $meta->$add_method($_, $code);
- }
-}
-
-sub before {
- _add_method_modifier('before', @_);
-}
-
-sub after {
- _add_method_modifier('after', @_);
-}
-
-sub around {
- _add_method_modifier('around', @_);
-}
-
-sub with {
- my $caller = shift;
- my $meta = $CURRENT_METACLASS || Class::MOP::class_of($caller);
-
- Moose::Util::apply_all_roles($meta, @_);
-}
-
-sub requires {
- my $caller = shift;
- my $meta = $CURRENT_METACLASS || Class::MOP::class_of($caller);
-
- Carp::croak "Must specify at least one method" unless @_;
- $meta->add_required_methods(@_);
-}
-
-sub excludes {
- my $caller = shift;
- my $meta = $CURRENT_METACLASS || Class::MOP::class_of($caller);
-
- Carp::croak "Must specify at least one role" unless @_;
- $meta->add_excluded_roles(@_);
-}
-
-# see Moose.pm for discussion
-sub super {
- return unless $Moose::SUPER_BODY;
- $Moose::SUPER_BODY->(@Moose::SUPER_ARGS);
-}
-
-sub override {
- my $caller = shift;
- my $meta = $CURRENT_METACLASS || Class::MOP::class_of($caller);
-
- my ($name, $code) = @_;
- $meta->add_override_method_modifier($name, $code);
-}
-
-sub extends { Carp::croak "Roles do not currently support 'extends'" }
-
-sub inner { Carp::croak "Roles cannot support 'inner'" }
-
-sub augment { Carp::croak "Roles cannot support 'augment'" }
-
1;
__END__
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-Role-Parameterized-0.27/t/100-erroneous-keywords.t new/MooseX-Role-Parameterized-1.00/t/100-erroneous-keywords.t
--- old/MooseX-Role-Parameterized-0.27/t/100-erroneous-keywords.t 2011-08-22 20:52:36.000000000 +0200
+++ new/MooseX-Role-Parameterized-1.00/t/100-erroneous-keywords.t 2011-08-29 18:23:15.000000000 +0200
@@ -10,12 +10,12 @@
::like( ::exception {
parameter()
- }, qr/^You must provide a name for the parameter/);
+ }, qr/^You must provide a name for the attribute/);
role {
::like( ::exception {
extends 'MyRole::Parameterized';
- }, qr/^Roles do not currently support 'extends'/);
+ }, qr/^Roles do not support 'extends' \(you can use 'with' to specialize a role\)/);
::like( ::exception {
inner()
}, qr/^Roles cannot support 'inner'/);
@@ -25,6 +25,9 @@
::like( ::exception {
parameter()
}, qr/^'parameter' may not be used inside of the role block/);
+ ::like( ::exception {
+ role {}
+ }, qr/^'role' may not be used inside of the role block/);
};
};
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MooseX-Role-Parameterized-0.27/t/101-alias-excludes.t new/MooseX-Role-Parameterized-1.00/t/101-alias-excludes.t
--- old/MooseX-Role-Parameterized-0.27/t/101-alias-excludes.t 2011-04-22 22:54:24.000000000 +0200
+++ new/MooseX-Role-Parameterized-1.00/t/101-alias-excludes.t 2011-08-29 18:22:12.000000000 +0200
@@ -8,30 +8,32 @@
package MyRole;
use MooseX::Role::Parameterized;
- ::like( ::exception {
+ ::is( ::exception {
parameter 'alias';
- }, qr/^The parameter name \(alias\) is currently forbidden/);
+ }, undef);
- ::like( ::exception {
+ ::is( ::exception {
parameter 'excludes';
- }, qr/^The parameter name \(excludes\) is currently forbidden/);
+ }, undef);
+
+ role { }
};
do {
package MyClass;
use Moose;
- ::like( ::exception {
+ ::is( ::exception {
with MyRole => {
alias => 1,
};
- }, qr/^The parameter name \(alias\) is currently forbidden/);
+ }, undef);
- ::like( ::exception {
+ ::is( ::exception {
with MyRole => {
excludes => 1,
};
- }, qr/^The parameter name \(excludes\) is currently forbidden/);
+ }, undef);
};
do {
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package perl-Modern-Perl for openSUSE:Factory checked in at 2012-03-01 17:25:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Modern-Perl (Old)
and /work/SRC/openSUSE:Factory/.perl-Modern-Perl.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Modern-Perl", Maintainer is ""
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Modern-Perl/perl-Modern-Perl.changes 2011-11-21 12:43:32.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.perl-Modern-Perl.new/perl-Modern-Perl.changes 2012-03-01 17:25:05.000000000 +0100
@@ -1,0 +2,15 @@
+Mon Feb 20 10:48:53 UTC 2012 - coolo(a)suse.com
+
+- updated to 1.20120130
+ - fixed t/year_imports.t for 5.10 (ANDK and sprout again)
+ - fixed t/regressions.t for 5.10
+ - made raw numbers work in import
+ - fixed for Perl 5.15.5 and later (ANDK and sprout)
+ - loaded IO::File/IO::Handle to allow methods on lexical filehandles
+ - added unimporting
+ - removed use of autodie; moved it to a distribution prerequisite
+ - enabled unicode_strings by default when your Perl supports it
+ - migrated to Dist::Zilla
+ - added autodie dependency/import
+
+-------------------------------------------------------------------
Old:
----
Modern-Perl-1.03.tar.gz
New:
----
Modern-Perl-1.20120130.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Modern-Perl.spec ++++++
--- /var/tmp/diff_new_pack.YCeazr/_old 2012-03-01 17:25:06.000000000 +0100
+++ /var/tmp/diff_new_pack.YCeazr/_new 2012-03-01 17:25:06.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package perl-Modern-Perl
#
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 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
@@ -16,26 +16,32 @@
#
-
Name: perl-Modern-Perl
-Version: 1.03
-Release: 1
-License: GPL-1.0+ or Artistic-1.0
+Version: 1.20120130
+Release: 0
%define cpan_name Modern-Perl
-Summary: enable all of the features of Modern Perl with one command
-Url: http://search.cpan.org/dist/Modern-Perl/
+Summary: enable all of the features of Modern Perl with one import
+License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
-#Source: http://www.cpan.org/authors/id/C/CH/CHROMATIC/Modern-Perl-%{version}.tar.gz
-Source: %{cpan_name}-%{version}.tar.gz
+Url: http://search.cpan.org/dist/Modern-Perl/
+Source: http://www.cpan.org/authors/id/C/CH/CHROMATIC/%{cpan_name}-%{version}.tar.gz
+BuildArch: noarch
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
-BuildRequires: perl(Module::Build)
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
-BuildArch: noarch
+BuildRequires: perl(Module::Build) >= 0.3601
+BuildRequires: perl(Test::More) >= 0.98
+BuildRequires: perl(autodie) >= 2.10
+BuildRequires: perl(feature)
+BuildRequires: perl(mro)
+#BuildRequires: perl(Modern::Perl) >= 2010
+Requires: perl(autodie) >= 2.10
+Requires: perl(feature)
+Requires: perl(mro)
%{perl_requires}
%description
-sorry, no description found
+enable all of the features of Modern Perl with one import
%prep
%setup -q -n %{cpan_name}-%{version}
@@ -51,11 +57,8 @@
./Build install destdir=%{buildroot} create_packlist=0
%perl_gen_filelist
-%clean
-%{__rm} -rf %{buildroot}
-
%files -f %{name}.files
-%defattr(644,root,root,755)
-%doc Changes README
+%defattr(-,root,root,755)
+%doc Changes LICENSE README
%changelog
++++++ Modern-Perl-1.03.tar.gz -> Modern-Perl-1.20120130.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Modern-Perl-1.03/Build.PL new/Modern-Perl-1.20120130/Build.PL
--- old/Modern-Perl-1.03/Build.PL 2009-02-18 01:43:58.000000000 +0100
+++ new/Modern-Perl-1.20120130/Build.PL 2012-01-30 20:38:10.000000000 +0100
@@ -1,20 +1,43 @@
-BEGIN { require 5.010 }
use strict;
use warnings;
-use Module::Build;
+use Module::Build 0.3601;
-my $builder = Module::Build->new(
- module_name => 'Modern::Perl',
- license => 'perl',
- dist_author => 'chromatic <chromatic(a)wgz.org>',
- dist_version_from => 'lib/Modern/Perl.pm',
- build_requires => {
- 'Test::Simple' => 0.80,
- 'perl' => 5.010,
- },
- add_to_cleanup => [ 'Modern-Perl-*' ],
+
+my %module_build_args = (
+ "build_requires" => {
+ "Module::Build" => "0.3601",
+ "Test::More" => "0.98"
+ },
+ "configure_requires" => {
+ "ExtUtils::MakeMaker" => "6.30",
+ "Module::Build" => "0.3601"
+ },
+ "dist_abstract" => "enable all of the features of Modern Perl with one import",
+ "dist_author" => [
+ "chromatic"
+ ],
+ "dist_name" => "Modern-Perl",
+ "dist_version" => "1.20120130",
+ "license" => "perl",
+ "module_name" => "Modern::Perl",
+ "recommends" => {},
+ "recursive_test_files" => 1,
+ "requires" => {
+ "IO::File" => 0,
+ "IO::Handle" => 0,
+ "autodie" => "2.10",
+ "feature" => 0,
+ "mro" => 0,
+ "perl" => "5.010",
+ "strict" => 0,
+ "warnings" => 0
+ },
+ "script_files" => []
);
-$builder->create_build_script();
+
+my $build = Module::Build->new(%module_build_args);
+
+$build->create_build_script;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Modern-Perl-1.03/Changes new/Modern-Perl-1.20120130/Changes
--- old/Modern-Perl-1.03/Changes 2009-02-18 01:43:58.000000000 +0100
+++ new/Modern-Perl-1.20120130/Changes 2012-01-30 20:38:10.000000000 +0100
@@ -1,5 +1,27 @@
Revision history for Modern::Perl
+1.20120130 2012-01-30 11:38:08 America/Los_Angeles
+ - fixed t/year_imports.t for 5.10 (ANDK and sprout again)
+
+1.20120126 2012-01-25 22:15:50 America/Los_Angeles
+ - fixed t/regressions.t for 5.10
+
+1.20120123 2012-01-23 10:16:10 America/Los_Angeles
+ - made raw numbers work in import
+
+1.20120119 2012-01-19 15:01:10 America/Los_Angeles
+ - fixed for Perl 5.15.5 and later (ANDK and sprout)
+
+1.20120106 2012-01-05 16:26:09 America/Los_Angeles
+ - loaded IO::File/IO::Handle to allow methods on lexical filehandles
+ - added unimporting
+ - removed use of autodie; moved it to a distribution prerequisite
+ - enabled unicode_strings by default when your Perl supports it
+
+1.20120105 2012-01-04 21:01:10 America/Los_Angeles
+ - migrated to Dist::Zilla
+ - added autodie dependency/import
+
1.03 Wed Feb 18 00:40:40 UTC 2009
- removed duplicate use lines (Damien Learns Perl)
- fixed (hopefully) v-string warnings (Damien, David Moreno)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Modern-Perl-1.03/LICENSE new/Modern-Perl-1.20120130/LICENSE
--- old/Modern-Perl-1.03/LICENSE 1970-01-01 01:00:00.000000000 +0100
+++ new/Modern-Perl-1.20120130/LICENSE 2012-01-30 20:38:10.000000000 +0100
@@ -0,0 +1,379 @@
+This software is copyright (c) 2012 by chromatic(a)wgz.org.
+
+This is free software; you can redistribute it and/or modify it under
+the same terms as the Perl 5 programming language system itself.
+
+Terms of the Perl programming language system itself
+
+a) the GNU General Public License as published by the Free
+ Software Foundation; either version 1, or (at your option) any
+ later version, or
+b) the "Artistic License"
+
+--- The GNU General Public License, Version 1, February 1989 ---
+
+This software is Copyright (c) 2012 by chromatic(a)wgz.org.
+
+This is free software, licensed under:
+
+ The GNU General Public License, Version 1, February 1989
+
+ GNU GENERAL PUBLIC LICENSE
+ Version 1, February 1989
+
+ Copyright (C) 1989 Free Software Foundation, Inc.
+ 51 Franklin St, Suite 500, Boston, MA 02110-1335 USA
+
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The license agreements of most software companies try to keep users
+at the mercy of those companies. By contrast, our General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. The
+General Public License applies to the Free Software Foundation's
+software and to any other program whose authors commit to using it.
+You can use it for your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Specifically, the General Public License is designed to make
+sure that you have the freedom to give away or sell copies of free
+software, that you receive source code or can get it if you want it,
+that you can change the software or use pieces of it in new free
+programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of a such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must tell them their rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License Agreement applies to any program or other work which
+contains a notice placed by the copyright holder saying it may be
+distributed under the terms of this General Public License. The
+"Program", below, refers to any such program or work, and a "work based
+on the Program" means either the Program or any work containing the
+Program or a portion of it, either verbatim or with modifications. Each
+licensee is addressed as "you".
+
+ 1. You may copy and distribute verbatim copies of the Program's source
+code as you receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice and
+disclaimer of warranty; keep intact all the notices that refer to this
+General Public License and to the absence of any warranty; and give any
+other recipients of the Program a copy of this General Public License
+along with the Program. You may charge a fee for the physical act of
+transferring a copy.
+
+ 2. You may modify your copy or copies of the Program or any portion of
+it, and copy and distribute such modifications under the terms of Paragraph
+1 above, provided that you also do the following:
+
+ a) cause the modified files to carry prominent notices stating that
+ you changed the files and the date of any change; and
+
+ b) cause the whole of any work that you distribute or publish, that
+ in whole or in part contains the Program or any part thereof, either
+ with or without modifications, to be licensed at no charge to all
+ third parties under the terms of this General Public License (except
+ that you may choose to grant warranty protection to some or all
+ third parties, at your option).
+
+ c) If the modified program normally reads commands interactively when
+ run, you must cause it, when started running for such interactive use
+ in the simplest and most usual way, to print or display an
+ announcement including an appropriate copyright notice and a notice
+ that there is no warranty (or else, saying that you provide a
+ warranty) and that users may redistribute the program under these
+ conditions, and telling the user how to view a copy of this General
+ Public License.
+
+ d) You may charge a fee for the physical act of transferring a
+ copy, and you may at your option offer warranty protection in
+ exchange for a fee.
+
+Mere aggregation of another independent work with the Program (or its
+derivative) on a volume of a storage or distribution medium does not bring
+the other work under the scope of these terms.
+
+ 3. You may copy and distribute the Program (or a portion or derivative of
+it, under Paragraph 2) in object code or executable form under the terms of
+Paragraphs 1 and 2 above provided that you also do one of the following:
+
+ a) accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of
+ Paragraphs 1 and 2 above; or,
+
+ b) accompany it with a written offer, valid for at least three
+ years, to give any third party free (except for a nominal charge
+ for the cost of distribution) a complete machine-readable copy of the
+ corresponding source code, to be distributed under the terms of
+ Paragraphs 1 and 2 above; or,
+
+ c) accompany it with the information you received as to where the
+ corresponding source code may be obtained. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form alone.)
+
+Source code for a work means the preferred form of the work for making
+modifications to it. For an executable file, complete source code means
+all the source code for all modules it contains; but, as a special
+exception, it need not include source code for modules which are standard
+libraries that accompany the operating system on which the executable
+file runs, or for standard header files or definitions files that
+accompany that operating system.
+
+ 4. You may not copy, modify, sublicense, distribute or transfer the
+Program except as expressly provided under this General Public License.
+Any attempt otherwise to copy, modify, sublicense, distribute or transfer
+the Program is void, and will automatically terminate your rights to use
+the Program under this License. However, parties who have received
+copies, or rights to use copies, from you under this General Public
+License will not have their licenses terminated so long as such parties
+remain in full compliance.
+
+ 5. By copying, distributing or modifying the Program (or any work based
+on the Program) you indicate your acceptance of this license to do so,
+and all its terms and conditions.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the original
+licensor to copy, distribute or modify the Program subject to these
+terms and conditions. You may not impose any further restrictions on the
+recipients' exercise of the rights granted herein.
+
+ 7. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of the license which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+the license, you may choose any version ever published by the Free Software
+Foundation.
+
+ 8. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ Appendix: How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to humanity, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these
+terms.
+
+ To do so, attach the following notices to the program. It is safest to
+attach them to the start of each source file to most effectively convey
+the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) 19yy <name of author>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 1, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA
+
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) 19xx name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the
+appropriate parts of the General Public License. Of course, the
+commands you use may be called something other than `show w' and `show
+c'; they could even be mouse-clicks or menu items--whatever suits your
+program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the
+ program `Gnomovision' (a program to direct compilers to make passes
+ at assemblers) written by James Hacker.
+
+ <signature of Ty Coon>, 1 April 1989
+ Ty Coon, President of Vice
+
+That's all there is to it!
+
+
+--- The Artistic License 1.0 ---
+
+This software is Copyright (c) 2012 by chromatic(a)wgz.org.
+
+This is free software, licensed under:
+
+ The Artistic License 1.0
+
+The Artistic License
+
+Preamble
+
+The intent of this document is to state the conditions under which a Package
+may be copied, such that the Copyright Holder maintains some semblance of
+artistic control over the development of the package, while giving the users of
+the package the right to use and distribute the Package in a more-or-less
+customary fashion, plus the right to make reasonable modifications.
+
+Definitions:
+
+ - "Package" refers to the collection of files distributed by the Copyright
+ Holder, and derivatives of that collection of files created through
+ textual modification.
+ - "Standard Version" refers to such a Package if it has not been modified,
+ or has been modified in accordance with the wishes of the Copyright
+ Holder.
+ - "Copyright Holder" is whoever is named in the copyright or copyrights for
+ the package.
+ - "You" is you, if you're thinking about copying or distributing this Package.
+ - "Reasonable copying fee" is whatever you can justify on the basis of media
+ cost, duplication charges, time of people involved, and so on. (You will
+ not be required to justify it to the Copyright Holder, but only to the
+ computing community at large as a market that must bear the fee.)
+ - "Freely Available" means that no fee is charged for the item itself, though
+ there may be fees involved in handling the item. It also means that
+ recipients of the item may redistribute it under the same conditions they
+ received it.
+
+1. You may make and give away verbatim copies of the source form of the
+Standard Version of this Package without restriction, provided that you
+duplicate all of the original copyright notices and associated disclaimers.
+
+2. You may apply bug fixes, portability fixes and other modifications derived
+from the Public Domain or from the Copyright Holder. A Package modified in such
+a way shall still be considered the Standard Version.
+
+3. You may otherwise modify your copy of this Package in any way, provided that
+you insert a prominent notice in each changed file stating how and when you
+changed that file, and provided that you do at least ONE of the following:
+
+ a) place your modifications in the Public Domain or otherwise make them
+ Freely Available, such as by posting said modifications to Usenet or an
+ equivalent medium, or placing the modifications on a major archive site
+ such as ftp.uu.net, or by allowing the Copyright Holder to include your
+ modifications in the Standard Version of the Package.
+
+ b) use the modified Package only within your corporation or organization.
+
+ c) rename any non-standard executables so the names do not conflict with
+ standard executables, which must also be provided, and provide a separate
+ manual page for each non-standard executable that clearly documents how it
+ differs from the Standard Version.
+
+ d) make other distribution arrangements with the Copyright Holder.
+
+4. You may distribute the programs of this Package in object code or executable
+form, provided that you do at least ONE of the following:
+
+ a) distribute a Standard Version of the executables and library files,
+ together with instructions (in the manual page or equivalent) on where to
+ get the Standard Version.
+
+ b) accompany the distribution with the machine-readable source of the Package
+ with your modifications.
+
+ c) accompany any non-standard executables with their corresponding Standard
+ Version executables, giving the non-standard executables non-standard
+ names, and clearly documenting the differences in manual pages (or
+ equivalent), together with instructions on where to get the Standard
+ Version.
+
+ d) make other distribution arrangements with the Copyright Holder.
+
+5. You may charge a reasonable copying fee for any distribution of this
+Package. You may charge any fee you choose for support of this Package. You
+may not charge a fee for this Package itself. However, you may distribute this
+Package in aggregate with other (possibly commercial) programs as part of a
+larger (possibly commercial) software distribution provided that you do not
+advertise this Package as a product of your own.
+
+6. The scripts and library files supplied as input to or produced as output
+from the programs of this Package do not automatically fall under the copyright
+of this Package, but belong to whomever generated them, and may be sold
+commercially, and may be aggregated with this Package.
+
+7. C or perl subroutines supplied by you and linked into this Package shall not
+be considered part of this Package.
+
+8. The name of the Copyright Holder may not be used to endorse or promote
+products derived from this software without specific prior written permission.
+
+9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
+WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
+MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+
+The End
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Modern-Perl-1.03/MANIFEST new/Modern-Perl-1.20120130/MANIFEST
--- old/Modern-Perl-1.03/MANIFEST 2009-02-18 01:43:58.000000000 +0100
+++ new/Modern-Perl-1.20120130/MANIFEST 2012-01-30 20:38:10.000000000 +0100
@@ -1,7 +1,13 @@
Build.PL
Changes
+LICENSE
MANIFEST
+META.yml
+Makefile.PL
README
+dist.ini
lib/Modern/Perl.pm
t/base.t
-META.yml
+t/regressions.t
+t/unimport.t
+t/year_imports.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Modern-Perl-1.03/META.yml new/Modern-Perl-1.20120130/META.yml
--- old/Modern-Perl-1.03/META.yml 2009-02-18 01:43:58.000000000 +0100
+++ new/Modern-Perl-1.20120130/META.yml 2012-01-30 20:38:10.000000000 +0100
@@ -1,20 +1,30 @@
---
-name: Modern-Perl
-version: 1.03
+abstract: 'enable all of the features of Modern Perl with one import'
author:
- - 'chromatic <chromatic(a)wgz.org>'
-abstract: enable all of the features of Modern Perl with one command
-license: perl
-resources:
- license: ~
+ - chromatic
build_requires:
- Test::Simple: 0.8
- perl: 5.01
-provides:
- Modern::Perl:
- file: lib/Modern/Perl.pm
- version: 1.03
-generated_by: Module::Build version 0.31
+ Module::Build: 0.3601
+ Test::More: 0.98
+configure_requires:
+ ExtUtils::MakeMaker: 6.30
+ Module::Build: 0.3601
+dynamic_config: 0
+generated_by: 'Dist::Zilla version 4.300006, CPAN::Meta::Converter version 2.113640'
+license: perl
meta-spec:
- url: http://module-build.sourceforge.net/META-spec-v1.2.html
- version: 1.2
+ url: http://module-build.sourceforge.net/META-spec-v1.4.html
+ version: 1.4
+name: Modern-Perl
+requires:
+ IO::File: 0
+ IO::Handle: 0
+ autodie: 2.10
+ feature: 0
+ mro: 0
+ perl: 5.010
+ strict: 0
+ warnings: 0
+resources:
+ homepage: https://github.com/chromatic/Modern-Perl
+ repository: https://github.com/chromatic/Modern-Perl.git
+version: 1.20120130
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Modern-Perl-1.03/Makefile.PL new/Modern-Perl-1.20120130/Makefile.PL
--- old/Modern-Perl-1.03/Makefile.PL 1970-01-01 01:00:00.000000000 +0100
+++ new/Modern-Perl-1.20120130/Makefile.PL 2012-01-30 20:38:10.000000000 +0100
@@ -0,0 +1,61 @@
+
+use strict;
+use warnings;
+
+use 5.010;
+
+use ExtUtils::MakeMaker 6.30;
+
+
+
+my %WriteMakefileArgs = (
+ "ABSTRACT" => "enable all of the features of Modern Perl with one import",
+ "AUTHOR" => "chromatic",
+ "BUILD_REQUIRES" => {
+ "Module::Build" => "0.3601",
+ "Test::More" => "0.98"
+ },
+ "CONFIGURE_REQUIRES" => {
+ "ExtUtils::MakeMaker" => "6.30",
+ "Module::Build" => "0.3601"
+ },
+ "DISTNAME" => "Modern-Perl",
+ "EXE_FILES" => [],
+ "LICENSE" => "perl",
+ "NAME" => "Modern::Perl",
+ "PREREQ_PM" => {
+ "IO::File" => 0,
+ "IO::Handle" => 0,
+ "autodie" => "2.10",
+ "feature" => 0,
+ "mro" => 0,
+ "strict" => 0,
+ "warnings" => 0
+ },
+ "VERSION" => "1.20120130",
+ "test" => {
+ "TESTS" => "t/*.t"
+ }
+);
+
+
+unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) {
+ my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
+ my $pp = $WriteMakefileArgs{PREREQ_PM};
+ for my $mod ( keys %$br ) {
+ if ( exists $pp->{$mod} ) {
+ $pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod};
+ }
+ else {
+ $pp->{$mod} = $br->{$mod};
+ }
+ }
+}
+
+delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
+ unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
+
+WriteMakefile(%WriteMakefileArgs);
+
+
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Modern-Perl-1.03/dist.ini new/Modern-Perl-1.20120130/dist.ini
--- old/Modern-Perl-1.03/dist.ini 1970-01-01 01:00:00.000000000 +0100
+++ new/Modern-Perl-1.20120130/dist.ini 2012-01-30 20:38:10.000000000 +0100
@@ -0,0 +1,41 @@
+name = Modern-Perl
+author = chromatic
+license = Perl_5
+copyright_holder = chromatic(a)wgz.org
+copyright_year = 2012
+
+[AutoVersion]
+format = {{ cldr('1.yyyyMMdd') }}
+
+[AutoPrereqs]
+
+[Prereqs]
+perl = 5.010
+autodie = 2.10
+
+[@Filter]
+-bundle = @Basic
+-remove = Readme
+
+[PodWeaver]
+finder = :InstallModules
+
+[PkgVersion]
+[PodVersion]
+[NextRelease]
+[ModuleBuild]
+
+[@Git]
+changelog = Changes ; this is the default
+allow_dirty = dist.ini ; see Git::Check...
+allow_dirty = Changes ; ... and Git::Commit
+commit_msg = v%v%n%n%c ; see Git::Commit
+tag_format = %v ; see Git::Tag
+tag_message = %v ; see Git::Tag
+push_to = origin ; see Git::Push
+
+[MetaResources]
+homepage = https://github.com/chromatic/Modern-Perl
+repository.url = https://github.com/chromatic/Modern-Perl.git
+repository.web = https://github.com/chromatic/Modern-Perl
+repository.type = git
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Modern-Perl-1.03/lib/Modern/Perl.pm new/Modern-Perl-1.20120130/lib/Modern/Perl.pm
--- old/Modern-Perl-1.03/lib/Modern/Perl.pm 2009-02-18 01:43:58.000000000 +0100
+++ new/Modern-Perl-1.20120130/lib/Modern/Perl.pm 2012-01-30 20:38:10.000000000 +0100
@@ -1,16 +1,8 @@
package Modern::Perl;
-
-=head1 NAME
-
-Modern::Perl - enable all of the features of Modern Perl with one command
-
-=head1 VERSION
-
-Version 1.03
-
-=cut
-
-our $VERSION = '1.03';
+{
+ $Modern::Perl::VERSION = '1.20120130';
+}
+# ABSTRACT: enable all of the features of Modern Perl with one import
use 5.010_000;
@@ -20,13 +12,82 @@
use mro ();
use feature ();
-sub import {
+# enable methods on filehandles; unnecessary when 5.14 autoloads them
+use IO::File ();
+use IO::Handle ();
+
+our $VERSION;
+
+my $wanted_date;
+sub VERSION
+{
+ my ($self, $version) = @_;
+ return $VERSION if $version < 2009;
+
+ $wanted_date = $version if (caller(1))[3] =~ /::BEGIN/;
+ return 2012;
+}
+
+sub import
+{
+ my ($class, $date) = @_;
+ $date = $wanted_date unless defined $date;
+
+ my $feature_tag = validate_date( $date );
+ undef $wanted_date;
+
warnings->import();
strict->import();
- feature->import( ':5.10' );
+ feature->import( $feature_tag );
mro::set_mro( scalar caller(), 'c3' );
}
+sub unimport
+{
+ warnings->unimport;
+ strict->unimport;
+ feature->unimport;
+}
+
+my %dates =
+(
+ 2009 => ':5.10',
+ 2010 => ':5.10',
+ 2011 => ':5.12',
+ 2012 => ':5.14',
+);
+
+sub validate_date
+{
+ my $date = shift;
+
+ # always enable unicode_strings when available
+ unless ($date)
+ {
+ return ':5.12' if $] > 5.011003;
+ return ':5.10';
+ }
+
+ my $year = substr $date, 0, 4;
+ return $dates{$year} if exists $dates{$year};
+
+ die "Unknown date '$date' requested\n";
+}
+
+
+1;
+
+__END__
+=pod
+
+=head1 NAME
+
+Modern::Perl - enable all of the features of Modern Perl with one import
+
+=head1 VERSION
+
+version 1.20120130
+
=head1 SYNOPSIS
Modern Perl programs use several modules to enable additional features of Perl
@@ -35,14 +96,45 @@
use Modern::Perl;
-For now, this only enables the L<strict> and L<warnings> pragmas, as well as
-all of the features available in Perl 5.10. It also enables C3 method
-resolution order; see C<perldoc mro> for an explanation. In the future, it
-will include additional CPAN modules which have proven useful and stable.
+This enables the L<strict> and L<warnings> pragmas, as well as all of the
+features available in Perl 5.10. It also enables C3 method resolution order as
+documented in C<perldoc mro> and loads L<IO::File> and L<IO::Handle> so that
+you may call methods on filehandles. In the future, it may include additional
+core modules and pragmas.
+
+Because so much of this module's behavior uses lexically scoped pragmas, you
+may disable these pragmas within an inner scope with:
+
+ no Modern::Perl;
See L<http://www.modernperlbooks.com/mt/2009/01/toward-a-modernperl.html> for
-more information, and L<http://www.modernperlbooks.com/> for further discussion
-of Modern Perl and its implications.
+more information, L<http://www.modernperlbooks.com/> for further discussion of
+Modern Perl and its implications, and
+L<http://onyxneon.com/books/modern_perl/index.html> for a freely-downloadable
+Modern Perl tutorial.
+
+=head2 Forward Compatibility
+
+For forward compatibility, I recommend you specify a I<year> as the single
+optional import tag. For example:
+
+ use Modern::Perl '2009';
+ use Modern::Perl '2010';
+
+... both enable 5.10 features, while:
+
+ use Modern::Perl '2011';
+
+... enables 5.12 features and:
+
+ use Modern::Perl '2012';
+
+... enables 5.14 features. Obviously you cannot use 5.14 features on earlier
+versions, and Perl will throw the appropriate exception if you try.
+
+In the future--probably the C<Modern::Perl> 2013 timeframe--this module may
+drop support for 5.10 and will complain (once per process) if you use a year
+too old.
=head1 AUTHOR
@@ -90,17 +182,27 @@
Damian Conway (inspiration from L<Toolkit>), Florian Ragwitz
(L<B::Hooks::Parser>, so I didn't have to write it myself), chocolateboy (for
-suggesting that I don't even need L<B::Hooks::Parser>, at least for now),
-Damien Learns Perl, David Moreno, and Evan Carroll for reporting bugs and
-requesting features.
+suggesting that I don't even need L<B::Hooks::Parser>), Damien Learns Perl,
+David Moreno, Evan Carroll, Elliot Shank, Andreas König, and Father
+Chrysostomos for reporting bugs, filing patches, and requesting features.
=head1 COPYRIGHT & LICENSE
-Copyright 2009 chromatic, all rights reserved.
+Copyright 2009-2012 chromatic, all rights reserved.
This program is free software; you can redistribute it and/or modify it
-under the same terms as Perl 5.10 itself.
+under the same terms as Perl 5.14 itself.
+
+=head1 AUTHOR
+
+chromatic
+
+=head1 COPYRIGHT AND LICENSE
+
+This software is copyright (c) 2012 by chromatic(a)wgz.org.
+
+This is free software; you can redistribute it and/or modify it under
+the same terms as the Perl 5 programming language system itself.
=cut
-1; # End of Modern::Perl
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Modern-Perl-1.03/t/base.t new/Modern-Perl-1.20120130/t/base.t
--- old/Modern-Perl-1.03/t/base.t 2009-02-18 01:43:58.000000000 +0100
+++ new/Modern-Perl-1.20120130/t/base.t 2012-01-30 20:38:10.000000000 +0100
@@ -1,10 +1,16 @@
#! perl
-use Test::More tests => 5;
+use Test::More 0.98;
BEGIN
{
+ local $INC{'IO/File.pm'};
+ local $INC{'IO/Handle.pm'};
+
use_ok( 'Modern::Perl' ) or exit;
+ ok exists $INC{'IO/File.pm'}, 'M::P should load IO::File';
+ ok exists $INC{'IO/Handle.pm'}, 'M::P should load IO::Handle';
+
Modern::Perl->import();
}
@@ -45,3 +51,17 @@
package main;
is_deeply( mro::get_linear_isa( 'D' ), [qw( D B C A )], 'mro should use C3' );
+
+if ($] > 5.011003)
+{
+ eval q|
+ use Modern::Perl;
+ BEGIN
+ {
+ ok exists $^H{feature_unicode},
+ '... and should unilaterally enable unicode_strings, when available';
+ }
+ |;
+}
+
+done_testing;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Modern-Perl-1.03/t/regressions.t new/Modern-Perl-1.20120130/t/regressions.t
--- old/Modern-Perl-1.03/t/regressions.t 1970-01-01 01:00:00.000000000 +0100
+++ new/Modern-Perl-1.20120130/t/regressions.t 2012-01-30 20:38:10.000000000 +0100
@@ -0,0 +1,81 @@
+#! perl
+
+use Test::More 0.98;
+
+use Modern::Perl ();
+
+$SIG{__WARN__} = sub
+{
+ return if $_[0] =~ /Number found where operator expected/;
+ return if $_[0] =~ /Do you need to predeclare/;
+ return if $_[0] =~ /future reserved word/;
+ warn shift
+};
+
+eval 'sub { given (0) {} }';
+isnt $@, '', 'use Modern::Perl () does not enable switch';
+eval 'sub { say 0 }';
+isnt $@, '', 'use Modern::Perl () does not enable say';
+eval 'state $x;';
+isnt $@, '', 'use Modern::Perl () does not enable state';
+is uc "\xdf", "\xdf", 'Modern::Perl () does not enable unicode_strings';
+
+{
+ use Modern::Perl 2009;
+ eval 'sub { given (0) {} }';
+ is $@, '', q|use Modern::Perl 2009 enables switch|;
+ eval 'sub { say 0 }';
+ is $@, '', q|use Modern::Perl 2009 enables say|;
+ eval 'state $x';
+ is $@, '', q|use Modern::Perl 2009 enables state|;
+ is uc "\xdf", "\xdf", 'but not unicode_strings';
+}
+
+{
+ use Modern::Perl 2010;
+ eval 'sub { given (0) {} }';
+ is $@, '', q|use Modern::Perl 2010 enables switch|;
+ eval 'sub { say 0 }';
+ is $@, '', q|use Modern::Perl 2010 enables say|;
+ eval 'state $x';
+ is $@, '', q|use Modern::Perl 2010 enables state|;
+ is uc "\xdf", "\xdf", 'but not unicode_strings';
+}
+
+if ($] >= 5.012)
+{
+ eval <<'END_HERE';
+ use Modern::Perl 2011;
+ eval 'sub { given (0) {} }';
+ is $@, '', q|use Modern::Perl 2011 enables switch|;
+ eval 'sub { say 0 }';
+ is $@, '', q|use Modern::Perl 2011 enables say|;
+ eval 'state $x';
+ is $@, '', q|use Modern::Perl 2011 enables state|;
+ is uc "\xdf", "SS", '2011 enables unicode_strings';
+END_HERE
+}
+
+if ($] >= 5.014)
+{
+ eval <<'END_HERE';
+ use Modern::Perl 2012;
+ eval 'sub { given (0) {} }';
+ is $@, '', q|use Modern::Perl 2012 enables switch|;
+ eval 'sub { say 0 }';
+ is $@, '', q|use Modern::Perl 2012 enables say|;
+ eval 'state $x';
+ is $@, '', q|use Modern::Perl 2012 enables state|;
+ is uc "\xdf", "SS", '2012 enables unicode_strings';
+END_HERE
+}
+
+eval 'sub { given (0) {} }';
+isnt $@, "", 'switch feature does not leak out';
+eval 'sub { say 0 }';
+isnt $@, '', 'say feature does not leak out';
+eval 'state $x';
+isnt $@, '', 'state feature does not leak out';
+is uc "\xdf", "\xdf", 'unicode_strings feature does not leak out';
+
+done_testing;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Modern-Perl-1.03/t/unimport.t new/Modern-Perl-1.20120130/t/unimport.t
--- old/Modern-Perl-1.03/t/unimport.t 1970-01-01 01:00:00.000000000 +0100
+++ new/Modern-Perl-1.20120130/t/unimport.t 2012-01-30 20:38:10.000000000 +0100
@@ -0,0 +1,24 @@
+#! perl
+
+use Test::More 0.98;
+use Modern::Perl;
+
+eval 'say "# say() should be available";';
+is $@, '', 'say() should be available';
+
+{
+ no Modern::Perl;
+ eval 'say "# say() should be unavailable when unimported"';
+ like $@, qr/syntax error.+near "say /,
+ 'unimport should disable say feature';
+ eval '$x = 1';
+ is $@, '', 'unimport should disable strictures';
+
+ my $warnings;
+ local $SIG{__WARN__} = sub { $warnings = shift };
+ my $y =~ s/hi//;
+ unlike $warnings, qr/Use of uninitialized value/,
+ 'unimport should disable warnings';
+}
+
+done_testing;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Modern-Perl-1.03/t/year_imports.t new/Modern-Perl-1.20120130/t/year_imports.t
--- old/Modern-Perl-1.03/t/year_imports.t 1970-01-01 01:00:00.000000000 +0100
+++ new/Modern-Perl-1.20120130/t/year_imports.t 2012-01-30 20:38:10.000000000 +0100
@@ -0,0 +1,81 @@
+#! perl
+
+use Test::More 0.98;
+
+use Modern::Perl ();
+
+$SIG{__WARN__} = sub
+{
+ return if $_[0] =~ /Number found where operator expected/;
+ return if $_[0] =~ /Do you need to predeclare/;
+ return if $_[0] =~ /future reserved word/;
+ warn shift
+};
+
+eval 'sub { given (0) {} }';
+isnt $@, '', 'use Modern::Perl () does not enable switch';
+eval 'sub { say 0 }';
+isnt $@, '', 'use Modern::Perl () does not enable say';
+eval 'state $x;';
+isnt $@, '', 'use Modern::Perl () does not enable state';
+is uc "\xdf", "\xdf", 'Modern::Perl () does not enable unicode_strings';
+
+{
+ use Modern::Perl '2009';
+ eval 'sub { given (0) {} }';
+ is $@, '', q|use Modern::Perl '2009' enables switch|;
+ eval 'sub { say 0 }';
+ is $@, '', q|use Modern::Perl '2009' enables say|;
+ eval 'state $x';
+ is $@, '', q|use Modern::Perl '2009' enables state|;
+ is uc "\xdf", "\xdf", 'but not unicode_strings';
+}
+
+{
+ use Modern::Perl '2010';
+ eval 'sub { given (0) {} }';
+ is $@, '', q|use Modern::Perl '2010' enables switch|;
+ eval 'sub { say 0 }';
+ is $@, '', q|use Modern::Perl '2010' enables say|;
+ eval 'state $x';
+ is $@, '', q|use Modern::Perl '2010' enables state|;
+ is uc "\xdf", "\xdf", 'but not unicode_strings';
+}
+
+if ($] >= 5.012)
+{
+ eval q{
+ use Modern::Perl '2011';
+ eval 'sub { given (0) {} }';
+ is $@, '', q|use Modern::Perl '2011' enables switch|;
+ eval 'sub { say 0 }';
+ is $@, '', q|use Modern::Perl '2011' enables say|;
+ eval 'state $x';
+ is $@, '', q|use Modern::Perl '2011' enables state|;
+ is uc "\xdf", "SS", '2011 enables unicode_strings';
+ };
+}
+
+if ($] >= 5.014)
+{
+ eval q{
+ use Modern::Perl '2012';
+ eval 'sub { given (0) {} }';
+ is $@, '', q|use Modern::Perl '2012' enables switch|;
+ eval 'sub { say 0 }';
+ is $@, '', q|use Modern::Perl '2012' enables say|;
+ eval 'state $x';
+ is $@, '', q|use Modern::Perl '2012' enables state|;
+ is uc "\xdf", "SS", '2012 enables unicode_strings';
+ };
+}
+
+eval 'sub { given (0) {} }';
+isnt $@, "", 'switch feature does not leak out';
+eval 'sub { say 0 }';
+isnt $@, '', 'say feature does not leak out';
+eval 'state $x';
+isnt $@, '', 'state feature does not leak out';
+is uc "\xdf", "\xdf", 'unicode_strings feature does not leak out';
+
+done_testing;
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package perl-LWP-Protocol-https for openSUSE:Factory checked in at 2012-03-01 17:24:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-LWP-Protocol-https (Old)
and /work/SRC/openSUSE:Factory/.perl-LWP-Protocol-https.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-LWP-Protocol-https", Maintainer is ""
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-LWP-Protocol-https/perl-LWP-Protocol-https.changes 2011-09-23 12:37:51.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.perl-LWP-Protocol-https.new/perl-LWP-Protocol-https.changes 2012-03-01 17:25:00.000000000 +0100
@@ -1,0 +2,8 @@
+Tue Feb 21 11:26:38 UTC 2012 - coolo(a)suse.com
+
+- updated to 6.03
+ * Skip test if offline [RT#74163]
+ * Typo fixes
+ * Restore perl-5.8.1 compatibility.
+
+-------------------------------------------------------------------
Old:
----
LWP-Protocol-https-6.02-systemca.diff
LWP-Protocol-https-6.02.tar.gz
New:
----
LWP-Protocol-https-6.03-systemca.diff
LWP-Protocol-https-6.03.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-LWP-Protocol-https.spec ++++++
--- /var/tmp/diff_new_pack.BYVvws/_old 2012-03-01 17:25:01.000000000 +0100
+++ /var/tmp/diff_new_pack.BYVvws/_new 2012-03-01 17:25:01.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package perl-LWP-Protocol-https
#
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 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
@@ -16,33 +16,34 @@
#
-
Name: perl-LWP-Protocol-https
-Version: 6.02
-Release: 1
-License: GPL-1.0+ or Artistic-1.0
+Version: 6.03
+Release: 0
%define cpan_name LWP-Protocol-https
Summary: Provide https support for LWP::UserAgent
-Url: http://search.cpan.org/dist/LWP-Protocol-https/
+License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
-#Source: http://www.cpan.org/authors/id/G/GA/GAAS/LWP-Protocol-https-%{version}.tar.…
-Source: %{cpan_name}-%{version}.tar.gz
+Url: http://search.cpan.org/dist/LWP-Protocol-https/
+Source: http://www.cpan.org/authors/id/G/GA/GAAS/%{cpan_name}-%{version}.tar.gz
# patch for using system certificates
-Patch0: %{cpan_name}-%{version}-systemca.diff
-BuildRequires: perl(IO::Socket::SSL) >= 1.38
-BuildRequires: perl(LWP::UserAgent) >= 6.02
-BuildRequires: perl(Net::HTTPS) >= 6
+Patch0: %{cpan_name}-6.03-systemca.diff
+BuildArch: noarch
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
-Requires: perl(IO::Socket::SSL) >= 1.38
-Requires: perl(LWP::UserAgent) >= 6.02
+BuildRequires: perl(IO::Socket::SSL) >= 1.54
+BuildRequires: perl(LWP::UserAgent) >= 6.04
+#BuildRequires: perl(Mozilla::CA) >= 20110101
+BuildRequires: perl(Net::HTTPS) >= 6
+#BuildRequires: perl(LWP::Protocol::http)
+Requires: perl(IO::Socket::SSL) >= 1.54
+Requires: perl(LWP::UserAgent) >= 6.04
+#Requires: perl(Mozilla::CA) >= 20110101
Requires: perl(Net::HTTPS) >= 6
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
-BuildArch: noarch
%{perl_requires}
%description
-The LWP::Protocol::https module provide support for using https schemed
+The LWP::Protocol::https module provides support for using https schemed
URLs with LWP. This module is a plug-in to the LWP protocol handling, so
you don't use it directly. Once the module is installed LWP is able to
access sites using HTTP over SSL/TLS.
@@ -68,19 +69,15 @@
%{__make} %{?_smp_mflags}
%check
-# tests will fail without network
-#%{__make} test
+%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
-%clean
-%{__rm} -rf %{buildroot}
-
%files -f %{name}.files
-%defattr(644,root,root,755)
+%defattr(-,root,root,755)
%doc Changes README
%changelog
++++++ LWP-Protocol-https-6.02-systemca.diff -> LWP-Protocol-https-6.03-systemca.diff ++++++
--- /work/SRC/openSUSE:Factory/perl-LWP-Protocol-https/LWP-Protocol-https-6.02-systemca.diff 2011-09-23 12:37:50.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.perl-LWP-Protocol-https.new/LWP-Protocol-https-6.03-systemca.diff 2012-03-01 17:25:00.000000000 +0100
@@ -1,31 +1,12 @@
-Index: LWP-Protocol-https-6.02/lib/LWP/Protocol/https.pm
+Index: LWP-Protocol-https-6.03/lib/LWP/Protocol/https.pm
===================================================================
---- LWP-Protocol-https-6.02.orig/lib/LWP/Protocol/https.pm
-+++ LWP-Protocol-https-6.02/lib/LWP/Protocol/https.pm
-@@ -21,25 +21,7 @@ sub _extra_sock_opts
+--- LWP-Protocol-https-6.03.orig/lib/LWP/Protocol/https.pm 2012-02-18 23:53:36.000000000 +0100
++++ LWP-Protocol-https-6.03/lib/LWP/Protocol/https.pm 2012-02-21 12:32:56.614080436 +0100
+@@ -20,6 +20,7 @@ sub _extra_sock_opts
+ $ssl_opts{SSL_verifycn_scheme} = 'www';
}
if ($ssl_opts{SSL_verify_mode}) {
++ $ssl_opts{SSL_ca_path} ||= '/etc/ssl/certs';
unless (exists $ssl_opts{SSL_ca_file} || exists $ssl_opts{SSL_ca_path}) {
-- eval {
-- require Mozilla::CA;
-- };
-- if ($@) {
-- if ($@ =! /^Can't locate Mozilla\/CA\.pm/) {
-- $@ = <<'EOT';
--Can't verify SSL peers without knowning which Certificate Authorities to trust
--
--This problem can be fixed by either setting the PERL_LWP_SSL_CA_FILE
--envirionment variable or by installing the Mozilla::CA module.
--
--To disable verification of SSL peers set the PERL_LWP_SSL_VERIFY_HOSTNAME
--envirionment variable to 0. If you do this you can't be sure that you
--communicate with the expected peer.
--EOT
-- }
-- die $@;
-- }
-- $ssl_opts{SSL_ca_file} = Mozilla::CA::SSL_ca_file();
-+ $ssl_opts{SSL_ca_path} = '/etc/ssl/certs';
- }
- }
- $self->{ssl_opts} = \%ssl_opts;
+ eval {
+ require Mozilla::CA;
++++++ LWP-Protocol-https-6.02.tar.gz -> LWP-Protocol-https-6.03.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/LWP-Protocol-https-6.02/Changes new/LWP-Protocol-https-6.03/Changes
--- old/LWP-Protocol-https-6.02/Changes 2011-03-27 13:54:01.000000000 +0200
+++ new/LWP-Protocol-https-6.03/Changes 2012-02-18 23:58:00.000000000 +0100
@@ -1,4 +1,15 @@
_______________________________________________________________________________
+2012-02-18 LWP-Protocol-https 6.03
+
+Skip test if offline [RT#74163]
+
+Typo fixes
+
+Restore perl-5.8.1 compatibility.
+
+
+
+_______________________________________________________________________________
2011-03-27 LWP-Protocol-https 6.02
Initial release of LWP-Protocol-https as a separate distribution. There are no code
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/LWP-Protocol-https-6.02/META.yml new/LWP-Protocol-https-6.03/META.yml
--- old/LWP-Protocol-https-6.02/META.yml 2011-03-27 13:55:12.000000000 +0200
+++ new/LWP-Protocol-https-6.03/META.yml 2012-02-18 23:58:49.000000000 +0100
@@ -1,6 +1,6 @@
--- #YAML:1.0
name: LWP-Protocol-https
-version: 6.02
+version: 6.03
abstract: Provide https support for LWP::UserAgent
author:
- Gisle Aas <gisle(a)activestate.com>
@@ -11,14 +11,14 @@
build_requires:
ExtUtils::MakeMaker: 0
requires:
- IO::Socket::SSL: 1.38
- LWP::UserAgent: 6.02
+ IO::Socket::SSL: 1.54
+ LWP::UserAgent: 6.04
Mozilla::CA: 20110101
Net::HTTPS: 6
- perl: 5.008008
+ perl: 5.008001
resources:
MailingList: mailto:libwww@perl.org
- repository: http://github.com/gisle/libwww-perl/tree/LWP-Protocol-https/master
+ repository: http://github.com/gisle/lwp-protocol-https
no_index:
directory:
- t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/LWP-Protocol-https-6.02/Makefile.PL new/LWP-Protocol-https-6.03/Makefile.PL
--- old/LWP-Protocol-https-6.02/Makefile.PL 2011-03-27 13:54:01.000000000 +0200
+++ new/LWP-Protocol-https-6.03/Makefile.PL 2012-02-18 23:39:38.000000000 +0100
@@ -1,6 +1,6 @@
#!perl -w
-require 5.008008;
+require 5.008001;
use strict;
use ExtUtils::MakeMaker;
use Getopt::Long qw(GetOptions);
@@ -11,16 +11,16 @@
ABSTRACT_FROM => 'lib/LWP/Protocol/https.pm',
AUTHOR => 'Gisle Aas <gisle(a)activestate.com>',
LICENSE => "perl",
- MIN_PERL_VERSION => 5.008008,
+ MIN_PERL_VERSION => 5.008001,
PREREQ_PM => {
- 'LWP::UserAgent' => '6.02',
+ 'LWP::UserAgent' => '6.04',
'Net::HTTPS' => 6,
- 'IO::Socket::SSL' => "1.38",
+ 'IO::Socket::SSL' => "1.54",
'Mozilla::CA' => "20110101",
},
META_MERGE => {
resources => {
- repository => 'http://github.com/gisle/libwww-perl/tree/LWP-Protocol-https/master',
+ repository => 'http://github.com/gisle/lwp-protocol-https',
MailingList => 'mailto:libwww@perl.org',
}
},
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/LWP-Protocol-https-6.02/lib/LWP/Protocol/https.pm new/LWP-Protocol-https-6.03/lib/LWP/Protocol/https.pm
--- old/LWP-Protocol-https-6.02/lib/LWP/Protocol/https.pm 2011-03-27 13:54:01.000000000 +0200
+++ new/LWP-Protocol-https-6.03/lib/LWP/Protocol/https.pm 2012-02-18 23:53:36.000000000 +0100
@@ -1,7 +1,7 @@
package LWP::Protocol::https;
use strict;
-our $VERSION = "6.02";
+our $VERSION = "6.03";
require LWP::Protocol::http;
our @ISA = qw(LWP::Protocol::http);
@@ -27,7 +27,7 @@
if ($@) {
if ($@ =! /^Can't locate Mozilla\/CA\.pm/) {
$@ = <<'EOT';
-Can't verify SSL peers without knowning which Certificate Authorities to trust
+Can't verify SSL peers without knowing which Certificate Authorities to trust
This problem can be fixed by either setting the PERL_LWP_SSL_CA_FILE
envirionment variable or by installing the Mozilla::CA module.
@@ -103,7 +103,7 @@
=head1 DESCRIPTION
-The LWP::Protocol::https module provide support for using https schemed
+The LWP::Protocol::https module provides support for using https schemed
URLs with LWP. This module is a plug-in to the LWP protocol handling, so
you don't use it directly. Once the module is installed LWP is able
to access sites using HTTP over SSL/TLS.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/LWP-Protocol-https-6.02/t/apache.t new/LWP-Protocol-https-6.03/t/apache.t
--- old/LWP-Protocol-https-6.02/t/apache.t 2011-03-27 13:46:19.000000000 +0200
+++ new/LWP-Protocol-https-6.03/t/apache.t 2012-02-18 23:49:49.000000000 +0100
@@ -1,15 +1,17 @@
#!perl -w
use strict;
-use Test;
+use Test::More;
use LWP::UserAgent;
my $ua = LWP::UserAgent->new();
-my $res = $ua->simple_request(HTTP::Request->new(GET => "https://www.apache.org"));
+plan skip_all => "Not online" unless $ua->is_online;
plan tests => 2;
+my $res = $ua->simple_request(HTTP::Request->new(GET => "https://www.apache.org"));
+
ok($res->is_success);
-ok($res->content =~ /Apache Software Foundation/);
+like($res->content, qr/Apache Software Foundation/);
$res->dump(prefix => "# ");
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0