Hello community,

here is the log from the commit of package perl-IO-All for openSUSE:Factory 
checked in at 2013-06-06 13:23:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-IO-All (Old)
 and      /work/SRC/openSUSE:Factory/.perl-IO-All.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-IO-All"

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-IO-All/perl-IO-All.changes  2011-12-27 
18:14:11.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.perl-IO-All.new/perl-IO-All.changes     
2013-06-06 13:23:46.000000000 +0200
@@ -1,0 +2,6 @@
+Tue Jun  4 14:47:20 UTC 2013 - [email protected]
+
+- updated to 0.46
+ - Added an example for ->assert and fixed the \E warnings on 5.16, courtesy 
shlomi fish
+
+-------------------------------------------------------------------

Old:
----
  IO-All-0.44.tar.gz

New:
----
  IO-All-0.46.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-IO-All.spec ++++++
--- /var/tmp/diff_new_pack.Gehqp6/_old  2013-06-06 13:23:46.000000000 +0200
+++ /var/tmp/diff_new_pack.Gehqp6/_new  2013-06-06 13:23:46.000000000 +0200
@@ -1,8 +1,7 @@
-# vim: set sw=4 ts=4 et nu:
 #
 # spec file for package perl-IO-All
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -15,62 +14,106 @@
 
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
+
+
 Name:           perl-IO-All
-Version:        0.44
+Version:        0.46
 Release:        0
+%define cpan_name IO-All
 Summary:        IO::All of it to Graham and Damian!
 License:        Artistic-1.0 or GPL-1.0+
 Group:          Development/Libraries/Perl
-Source:         
http://search.cpan.org/CPAN/authors/id/I/IN/INGY/IO-All-%{version}.tar.gz
-Url:            http://search.cpan.org/dist/IO-All
+Url:            http://search.cpan.org/dist/IO-All/
+Source:         
http://www.cpan.org/authors/id/I/IN/INGY/%{cpan_name}-%{version}.tar.gz
+BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%{perl_requires}
-BuildRequires:  make
 BuildRequires:  perl
 BuildRequires:  perl-macros
-BuildRequires:  perl(ExtUtils::MakeMaker)
-BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.42
-BuildRequires:  perl(File::ReadBackwards)
-BuildRequires:  perl(IO::String)
-Requires:       perl(IO::String)
+BuildRequires:  perl(IO::String) >= 1.08
+#BuildRequires: perl(File::ReadBackwards)
+#BuildRequires: perl(inc::Module::Package)
+#BuildRequires: perl(IO::All)
+#BuildRequires: perl(IO::All::Base)
+#BuildRequires: perl(IO::All::DBM)
+#BuildRequires: perl(IO::All::Dir)
+#BuildRequires: perl(IO::All::File)
+#BuildRequires: perl(IO::All::Filesys)
+#BuildRequires: perl(IO::All::Link)
+#BuildRequires: perl(IO::All::MLDBM)
+#BuildRequires: perl(IO::All::Pipe)
+#BuildRequires: perl(IO::All::Socket)
+#BuildRequires: perl(IO::All::STDIO)
+#BuildRequires: perl(IO::All::String)
+#BuildRequires: perl(IO::All::Temp)
+#BuildRequires: perl(IO_All_Test)
+#BuildRequires: perl(IO_Dumper)
+#BuildRequires: perl(JSON)
+#BuildRequires: perl(LWP::Simple)
+#BuildRequires: perl(MLDBM)
+#BuildRequires: perl(Module::Build)
+#BuildRequires: perl(Module::Install::Base)
+#BuildRequires: perl(Parse::CPAN::Meta)
+#BuildRequires: perl(YAML::Tiny)
+Requires:       perl(IO::String) >= 1.08
+Recommends:     perl(File::ReadBackwards)
+%{perl_requires}
 
 %description
-IO::All combines all of the best Perl IO modules into a single nifty
-object oriented interface to greatly simplify your everyday Perl IO
-idioms. It exports a single function called "io", which returns a new
-IO::All object. And that object can do it all!
+"Graham Barr for doing it all. Damian Conway for doing it all different."
 
-%prep
-%setup -q -n "IO-All-%{version}"
-%__sed -i '/^auto_install/d' Makefile.PL
+IO::All combines all of the best Perl IO modules into a single nifty object
+oriented interface to greatly simplify your everyday Perl IO idioms. It
+exports a single function called 'io', which returns a new IO::All object.
+And that object can do it all!
+
+The IO::All object is a proxy for IO::File, IO::Dir, IO::Socket,
+IO::String, Tie::File, File::Spec, File::Path and File::ReadBackwards; as
+well as all the DBM and MLDBM modules. You can use most of the methods
+found in these classes and in IO::Handle (which they inherit from). IO::All
+adds dozens of other helpful idiomatic methods including file stat and
+manipulation functions.
+
+IO::All is pluggable, and modules like the IO::All::LWP manpage and the
+IO::All::Mailto manpage add even more functionality. Optionally, every
+IO::All object can be tied to itself. This means that you can use most perl
+IO builtins on it: readline, <>, getc, print, printf, syswrite, sysread,
+close.
+
+The distinguishing magic of IO::All is that it will automatically open (and
+close) files, directories, sockets and other IO things for you. You never
+need to specify the mode ('<', '>>', etc), since it is determined by the
+usage context. That means you can replace this:
+
+    open STUFF, '<', './mystuff'
+      or die "Can't open './mystuff' for input:\n$!";
+    local $/;
+    my $stuff = <STUFF>;
+    close STUFF;
 
-%build
-%__perl Makefile.PL PREFIX="%{_prefix}"
-%__make %{?jobs:-j%{jobs}}
+with this:
 
-%install
-%perl_make_install
+    my $stuff < io './mystuff';
 
-find "%{buildroot}" -name '*.pm' -type f -exec %__chmod 0644 {} \;
+And that is a *good thing*!
 
-%perl_process_packlist
+%prep
+%setup -q -n %{cpan_name}-%{version}
+find . -type f -print0 | xargs -0 chmod 644
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+%{__make} %{?_smp_mflags}
 
 %check
-%__make test
+%{__make} test
 
-%clean
-%{?buildroot:%__rm -rf "%{buildroot}"}
+%install
+%perl_make_install
+%perl_process_packlist
+%perl_gen_filelist
 
-%files
-%defattr(-,root,root)
-%doc Changes README
-%dir %{perl_vendorlib}/IO
-%{perl_vendorlib}/IO/All
-%{perl_vendorlib}/IO/All.pm
-%doc %{perl_vendorlib}/IO/All.pod
-%dir %{perl_vendorarch}/auto/IO
-%{perl_vendorarch}/auto/IO/All
-%doc %{perl_man3dir}/IO::All.%{perl_man3ext}%{ext_man}
-%doc %{perl_man3dir}/IO::All::*.%{perl_man3ext}%{ext_man}
+%files -f %{name}.files
+%defattr(-,root,root,755)
+%doc Changes examples LICENSE README
 
 %changelog

++++++ IO-All-0.44.tar.gz -> IO-All-0.46.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/IO-All-0.44/Changes new/IO-All-0.46/Changes
--- old/IO-All-0.44/Changes     2011-10-06 00:11:52.000000000 +0200
+++ new/IO-All-0.46/Changes     2012-07-26 02:36:07.000000000 +0200
@@ -1,4 +1,14 @@
 ---
+version: 0.46
+date:    Wed Jul 25 17:35:44 PDT 2012
+changes:
+- Re-releasing to reclaim indexing from Alt-IO-All-new
+---
+version: 0.45
+date:    Wed Jul 18 22:15:04 EDT 2012
+changes:
+- Added an example for ->assert and fixed the \E warnings on 5.16, courtesy 
shlomi fish
+---
 version: 0.44
 date:    Wed Oct  5 18:11:27 EDT 2011
 changes:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/IO-All-0.44/LICENSE new/IO-All-0.46/LICENSE
--- old/IO-All-0.44/LICENSE     2011-10-06 00:11:53.000000000 +0200
+++ new/IO-All-0.46/LICENSE     2012-07-26 02:36:08.000000000 +0200
@@ -1,4 +1,4 @@
-This software is copyright (c) 2011 by Ingy döt Net <[email protected]>.
+This software is copyright (c) 2012 by Ingy döt Net <[email protected]>.
 
 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 Ingy döt Net <[email protected]>.
+This software is Copyright (c) 2012 by Ingy döt Net <[email protected]>.
 
 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, 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
+                            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 Ingy döt Net <[email protected]>.
+This software is Copyright (c) 2012 by Ingy döt Net <[email protected]>.
 
 This is free software, licensed under:
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/IO-All-0.44/MANIFEST new/IO-All-0.46/MANIFEST
--- old/IO-All-0.44/MANIFEST    2011-10-06 00:11:54.000000000 +0200
+++ new/IO-All-0.46/MANIFEST    2012-07-26 02:36:08.000000000 +0200
@@ -1,4 +1,5 @@
 Changes
+examples/create-cat-to.pl
 inc/Module/Install.pm
 inc/Module/Install/Base.pm
 inc/Module/Install/Can.pm
@@ -28,6 +29,7 @@
 Makefile.PL
 MANIFEST                       This list of files
 META.yml
+Notes/Design.md
 Notes/Design.st
 README
 t/absolute.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/IO-All-0.44/META.yml new/IO-All-0.46/META.yml
--- old/IO-All-0.44/META.yml    2011-10-06 00:11:53.000000000 +0200
+++ new/IO-All-0.46/META.yml    2012-07-26 02:36:08.000000000 +0200
@@ -3,11 +3,12 @@
 author:
   - 'Ingy döt Net <[email protected]>'
 build_requires:
-  ExtUtils::MakeMaker: 6.42
+  ExtUtils::MakeMaker: 6.59
 configure_requires:
-  ExtUtils::MakeMaker: 6.42
+  ExtUtils::MakeMaker: 6.59
 distribution_type: module
-generated_by: 'Module::Install version 1.01'
+dynamic_config: 1
+generated_by: 'Module::Install version 1.06'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -16,6 +17,7 @@
 name: IO-All
 no_index:
   directory:
+    - examples
     - inc
     - t
 recommends:
@@ -24,7 +26,10 @@
   IO::String: 1.08
   perl: 5.6.1
 resources:
-  homepage: http://github.com/ingydotnet/io-all-pm/tree
+  homepage: https://github.com/ingydotnet/io-all-pm/tree
   license: http://dev.perl.org/licenses/
-  repository: git://github.com/ingydotnet/io-all-pm.git
-version: 0.44
+  repository:
+    type: git
+    url: git://github.com/ingydotnet/io-all-pm.git
+    web: https://github.com/ingydotnet/io-all-pm/tree
+version: 0.46
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/IO-All-0.44/Makefile.PL new/IO-All-0.46/Makefile.PL
--- old/IO-All-0.44/Makefile.PL 2011-10-06 00:10:58.000000000 +0200
+++ new/IO-All-0.46/Makefile.PL 2012-07-26 02:34:53.000000000 +0200
@@ -1,4 +1,4 @@
-use inc::Module::Package 'Ingy:modern 0.17';
+use inc::Module::Package 'Ingy:modern 0.20';
 
 requires    'IO::String' => '1.08';
 recommends  'File::ReadBackwards';
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/IO-All-0.44/Notes/Design.md 
new/IO-All-0.46/Notes/Design.md
--- old/IO-All-0.44/Notes/Design.md     1970-01-01 01:00:00.000000000 +0100
+++ new/IO-All-0.46/Notes/Design.md     2012-07-26 02:32:19.000000000 +0200
@@ -0,0 +1,100 @@
+# Introduction
+
+This is a design document for an upcoming version of IO::All.
+
+IO::All is a Perl module that attempts to make all Input/Output operations in
+Perl, as simple and normal as possible. IO::All has been in existence since
+2005. It is useful and somewhat extensible, but has a number of
+inconsistencies, flaws and misgivings.
+
+This document will propose a better way to do it, and will also discuss how to
+move the current API forward to the new API.
+
+# Basic Principles of how IO::All should work
+
+* IO::All provides a single entry point function called `io`.
+* `use IO::All` should make this function available in a lexical scope.
+  * Currently this scope is 'package' scope.
+  * Would be nice, but maybe not possible to have true lexical scope.
+* The `io` function is custom to its scope
+  * The behavior it provides depends on the state of the scope
+  * The behavior it provides also depends on the arguments passed to `use
+    IO::All`
+* `io` returns an IO::All object
+  * The IO::All object has no I/O capabilities
+  * Further method calls invoke a context, causing the IO::All object to
+    rebless itself it something useful like IO::All::File.
+* Certain methods force a rebless
+  * `file(...), dir(...), socket(...), etc
+  * These methods are more or less hard-coded currently
+* Options to `use IO::All` that begin with a `-`, cause a method to be called
+  on each new IO::All object.
+  * use IO::All -strict, -encoding => 'big5';   # causes:
+  * io('foo')->print('hi');                     # to mean:
+  * io('foo')->strict->encoding('big5')->print('hi');
+* IO::All operations generally return other IO::All objects
+  * Often they return themselves ($self) for chaining
+* IO::All needs to be completely and consistently extensible
+  * The extensions that ship with IO-All should be the same as third party
+    extensions
+  * Extensions register capabilities with IO::All (tied to a scope)
+* IO::All operations can be strict or loose. Strict always throws errors on
+  any possible error condition. Strict or loose should be determined by the
+  presence of `use strict` in the scope (possibly).
+* IO::All currently uses a big set of overloaded operations by default. This
+  is loved by some and hated by others. It should probably be off by default
+  for 2.0.
+
+# IO::All Extensions
+
+Currently the extension API is fairly muddy. I would like the new API to
+require something like this:
+
+    {
+        use strict;
+        use IO::All -overload;
+        use IO::All::PrintingPress;
+
+        my $io = io('path:to:printing:press#1');
+        # is ref($io), 'IO::All';
+        $io->print('IO::All');        # calls IO::All::PrintingPress::print
+        # is ref($io), 'IO::All::PrintingPress';
+    }
+        
+So you need to load any extensions that you want to use, within the scope that
+you want them in. Exceptions are IO::All::File and IO::All::Dir, which are
+automatically loaded, unless you say:
+
+    use IO::All -none;
+
+Extensions can register 2 things:
+
+1. Register a method (or methods) that will force a rebless in that class.
+2. Register a regexp (or function) that will cause a rebless when the input
+   to io(...) matches.
+
+These things are register according to the scope of the IO::All, so that the
+`io` function will do the right things.
+
+# Transition to the new API
+
+It needs to be determined if the changes that need to be made are too
+destructive to coexist with the current IO::All. That determination obviously
+cannot be made until the new design is complete.
+
+If it is not too destructive, IO::All and its extensions can be brought
+forward.
+
+If it is too destructive, here is one proposed solution:
+
+Support IO::All 2 <options>;
+
+The version '2' will load IO::All2 (or something) and no version will load the
+old code.
+
+It is important to assure that the old and new interfaces can coexist in the
+same process space.
+
+In the IO::All2 scenario, we would need to figure out if the current IO::All
+extensions also needed forwarding.
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/IO-All-0.44/README new/IO-All-0.46/README
--- old/IO-All-0.44/README      2011-10-06 00:11:53.000000000 +0200
+++ new/IO-All-0.46/README      2012-07-26 02:36:07.000000000 +0200
@@ -157,7 +157,7 @@
 
     with this:
 
-        my $stuff < io "./mystuff";
+        my $stuff < io './mystuff';
 
     And that is a good thing!
 
@@ -685,6 +685,36 @@
         exists before the file is open. If the path does not exist, it is
         created.
 
+        For example, here is a program called "create-cat-to" that outputs
+        to a file that it creates.
+
+            #!/usr/bin/perl
+
+            # create-cat-to.pl
+            # cat to a file that can be created.
+
+            use strict;
+            use warnings;
+
+            use IO::All;
+
+            my $filename = shift(@ARGV);
+
+            # Create a file called $filename, including all leading components.
+            io('-') > io->file($filename)->assert;
+
+        Here's an example use of it:
+
+            $ ls -l
+            total 0
+            $ echo "Hello World" | create-cat-to one/two/three/four.txt
+            $ ls -l
+            total 4
+            drwxr-xr-x 3 shlomif shlomif 4096 2010-10-14 18:03 one/
+            $ cat one/two/three/four.txt 
+            Hello World
+            $
+
     *   autoclose
 
         By default, IO::All will close an object opened for input when EOF
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/IO-All-0.44/examples/create-cat-to.pl 
new/IO-All-0.46/examples/create-cat-to.pl
--- old/IO-All-0.44/examples/create-cat-to.pl   1970-01-01 01:00:00.000000000 
+0100
+++ new/IO-All-0.46/examples/create-cat-to.pl   2012-07-26 02:32:19.000000000 
+0200
@@ -0,0 +1,14 @@
+#!/usr/bin/perl
+
+# create-cat-to.pl
+# cat to a file that can be created.
+
+use strict;
+use warnings;
+
+use IO::All;
+
+my $filename = shift(@ARGV);
+
+# Create a file called $filename, including all leading components.
+io('-') > io->file($filename)->assert;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/IO-All-0.44/inc/Module/Install/Base.pm 
new/IO-All-0.46/inc/Module/Install/Base.pm
--- old/IO-All-0.44/inc/Module/Install/Base.pm  2011-10-06 00:11:52.000000000 
+0200
+++ new/IO-All-0.46/inc/Module/Install/Base.pm  2012-07-26 02:36:07.000000000 
+0200
@@ -4,7 +4,7 @@
 use strict 'vars';
 use vars qw{$VERSION};
 BEGIN {
-       $VERSION = '1.01';
+       $VERSION = '1.06';
 }
 
 # Suspend handler for "redefined" warnings
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/IO-All-0.44/inc/Module/Install/Can.pm 
new/IO-All-0.46/inc/Module/Install/Can.pm
--- old/IO-All-0.44/inc/Module/Install/Can.pm   2011-10-06 00:11:53.000000000 
+0200
+++ new/IO-All-0.46/inc/Module/Install/Can.pm   2012-07-26 02:36:08.000000000 
+0200
@@ -3,13 +3,12 @@
 
 use strict;
 use Config                ();
-use File::Spec            ();
 use ExtUtils::MakeMaker   ();
 use Module::Install::Base ();
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-       $VERSION = '1.01';
+       $VERSION = '1.06';
        @ISA     = 'Module::Install::Base';
        $ISCORE  = 1;
 }
@@ -29,7 +28,7 @@
        eval { require $mod; $pkg->VERSION($ver || 0); 1 };
 }
 
-# check if we can run some command
+# Check if we can run some command
 sub can_run {
        my ($self, $cmd) = @_;
 
@@ -38,14 +37,88 @@
 
        for my $dir ((split /$Config::Config{path_sep}/, $ENV{PATH}), '.') {
                next if $dir eq '';
-               my $abs = File::Spec->catfile($dir, $_[1]);
+               require File::Spec;
+               my $abs = File::Spec->catfile($dir, $cmd);
                return $abs if (-x $abs or $abs = MM->maybe_command($abs));
        }
 
        return;
 }
 
-# can we locate a (the) C compiler
+# Can our C compiler environment build XS files
+sub can_xs {
+       my $self = shift;
+
+       # Ensure we have the CBuilder module
+       $self->configure_requires( 'ExtUtils::CBuilder' => 0.27 );
+
+       # Do we have the configure_requires checker?
+       local $@;
+       eval "require ExtUtils::CBuilder;";
+       if ( $@ ) {
+               # They don't obey configure_requires, so it is
+               # someone old and delicate. Try to avoid hurting
+               # them by falling back to an older simpler test.
+               return $self->can_cc();
+       }
+
+       # Do we have a working C compiler
+       my $builder = ExtUtils::CBuilder->new(
+               quiet => 1,
+       );
+       unless ( $builder->have_compiler ) {
+               # No working C compiler
+               return 0;
+       }
+
+       # Write a C file representative of what XS becomes
+       require File::Temp;
+       my ( $FH, $tmpfile ) = File::Temp::tempfile(
+               "compilexs-XXXXX",
+               SUFFIX => '.c',
+       );
+       binmode $FH;
+       print $FH <<'END_C';
+#include "EXTERN.h"
+#include "perl.h"
+#include "XSUB.h"
+
+int main(int argc, char **argv) {
+    return 0;
+}
+
+int boot_sanexs() {
+    return 1;
+}
+
+END_C
+       close $FH;
+
+       # Can the C compiler access the same headers XS does
+       my @libs   = ();
+       my $object = undef;
+       eval {
+               local $^W = 0;
+               $object = $builder->compile(
+                       source => $tmpfile,
+               );
+               @libs = $builder->link(
+                       objects     => $object,
+                       module_name => 'sanexs',
+               );
+       };
+       my $result = $@ ? 0 : 1;
+
+       # Clean up all the build files
+       foreach ( $tmpfile, $object, @libs ) {
+               next unless defined $_;
+               1 while unlink;
+       }
+
+       return $result;
+}
+
+# Can we locate a (the) C compiler
 sub can_cc {
        my $self   = shift;
        my @chunks = split(/ /, $Config::Config{cc}) or return;
@@ -78,4 +151,4 @@
 
 __END__
 
-#line 156
+#line 236
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/IO-All-0.44/inc/Module/Install/Fetch.pm 
new/IO-All-0.46/inc/Module/Install/Fetch.pm
--- old/IO-All-0.44/inc/Module/Install/Fetch.pm 2011-10-06 00:11:53.000000000 
+0200
+++ new/IO-All-0.46/inc/Module/Install/Fetch.pm 2012-07-26 02:36:08.000000000 
+0200
@@ -6,7 +6,7 @@
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-       $VERSION = '1.01';
+       $VERSION = '1.06';
        @ISA     = 'Module::Install::Base';
        $ISCORE  = 1;
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/IO-All-0.44/inc/Module/Install/GithubMeta.pm 
new/IO-All-0.46/inc/Module/Install/GithubMeta.pm
--- old/IO-All-0.44/inc/Module/Install/GithubMeta.pm    2011-10-06 
00:11:53.000000000 +0200
+++ new/IO-All-0.46/inc/Module/Install/GithubMeta.pm    2012-07-26 
02:36:08.000000000 +0200
@@ -7,20 +7,27 @@
 use base qw(Module::Install::Base);
 use vars qw($VERSION);
 
-$VERSION = '0.10';
+$VERSION = '0.16';
 
 sub githubmeta {
   my $self = shift;
   return unless $Module::Install::AUTHOR;
   return unless _under_git();
   return unless $self->can_run('git');
-  return unless my ($git_url) = `git remote show -n origin` =~ /URL: (.*)$/m;
+  my $remote = shift || 'origin';
+  return unless my ($git_url) = `git remote show -n $remote` =~ /URL: (.*)$/m;
   return unless $git_url =~ /github\.com/; # Not a Github repository
   my $http_url = $git_url;
   $git_url =~ s![\w\-]+\@([^:]+):!git://$1/!;
-  $http_url =~ s![\w\-]+\@([^:]+):!http://$1/!;
+  $http_url =~ s![\w\-]+\@([^:]+):!https://$1/!;
   $http_url =~ s!\.git$!/tree!;
-  $self->repository( $git_url );
+  $self->repository(
+      {
+          type => 'git',
+          url  => $git_url,
+          web  => $http_url,
+      },
+  );
   $self->homepage( $http_url ) unless $self->homepage();
   return 1;
 }
@@ -47,4 +54,4 @@
 'Github';
 __END__
 
-#line 108
+#line 117
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/IO-All-0.44/inc/Module/Install/Makefile.pm 
new/IO-All-0.46/inc/Module/Install/Makefile.pm
--- old/IO-All-0.44/inc/Module/Install/Makefile.pm      2011-10-06 
00:11:53.000000000 +0200
+++ new/IO-All-0.46/inc/Module/Install/Makefile.pm      2012-07-26 
02:36:07.000000000 +0200
@@ -8,7 +8,7 @@
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-       $VERSION = '1.01';
+       $VERSION = '1.06';
        @ISA     = 'Module::Install::Base';
        $ISCORE  = 1;
 }
@@ -215,18 +215,22 @@
        require ExtUtils::MakeMaker;
 
        if ( $perl_version and $self->_cmp($perl_version, '5.006') >= 0 ) {
-               # MakeMaker can complain about module versions that include
-               # an underscore, even though its own version may contain one!
-               # Hence the funny regexp to get rid of it.  See RT #35800
-               # for details.
-               my $v = $ExtUtils::MakeMaker::VERSION =~ /^(\d+\.\d+)/;
-               $self->build_requires(     'ExtUtils::MakeMaker' => $v );
-               $self->configure_requires( 'ExtUtils::MakeMaker' => $v );
+               # This previous attempted to inherit the version of
+               # ExtUtils::MakeMaker in use by the module author, but this
+               # was found to be untenable as some authors build releases
+               # using future dev versions of EU:MM that nobody else has.
+               # Instead, #toolchain suggests we use 6.59 which is the most
+               # stable version on CPAN at time of writing and is, to quote
+               # ribasushi, "not terminally fucked, > and tested enough".
+               # TODO: We will now need to maintain this over time to push
+               # the version up as new versions are released.
+               $self->build_requires(     'ExtUtils::MakeMaker' => 6.59 );
+               $self->configure_requires( 'ExtUtils::MakeMaker' => 6.59 );
        } else {
                # Allow legacy-compatibility with 5.005 by depending on the
                # most recent EU:MM that supported 5.005.
-               $self->build_requires(     'ExtUtils::MakeMaker' => 6.42 );
-               $self->configure_requires( 'ExtUtils::MakeMaker' => 6.42 );
+               $self->build_requires(     'ExtUtils::MakeMaker' => 6.36 );
+               $self->configure_requires( 'ExtUtils::MakeMaker' => 6.36 );
        }
 
        # Generate the MakeMaker params
@@ -241,7 +245,6 @@
 'all_from' if you prefer) in Makefile.PL.
 EOT
 
-       $DB::single = 1;
        if ( $self->tests ) {
                my @tests = split ' ', $self->tests;
                my %seen;
@@ -412,4 +415,4 @@
 
 __END__
 
-#line 541
+#line 544
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/IO-All-0.44/inc/Module/Install/Metadata.pm 
new/IO-All-0.46/inc/Module/Install/Metadata.pm
--- old/IO-All-0.44/inc/Module/Install/Metadata.pm      2011-10-06 
00:11:53.000000000 +0200
+++ new/IO-All-0.46/inc/Module/Install/Metadata.pm      2012-07-26 
02:36:08.000000000 +0200
@@ -6,7 +6,7 @@
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-       $VERSION = '1.01';
+       $VERSION = '1.06';
        @ISA     = 'Module::Install::Base';
        $ISCORE  = 1;
 }
@@ -151,15 +151,21 @@
 sub install_as_vendor { $_[0]->installdirs('vendor') }
 
 sub dynamic_config {
-       my $self = shift;
-       unless ( @_ ) {
-               warn "You MUST provide an explicit true/false value to 
dynamic_config\n";
-               return $self;
+       my $self  = shift;
+       my $value = @_ ? shift : 1;
+       if ( $self->{values}->{dynamic_config} ) {
+               # Once dynamic we never change to static, for safety
+               return 0;
        }
-       $self->{values}->{dynamic_config} = $_[0] ? 1 : 0;
+       $self->{values}->{dynamic_config} = $value ? 1 : 0;
        return 1;
 }
 
+# Convenience command
+sub static_config {
+       shift->dynamic_config(0);
+}
+
 sub perl_version {
        my $self = shift;
        return $self->{values}->{perl_version} unless @_;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/IO-All-0.44/inc/Module/Install/Package.pm 
new/IO-All-0.46/inc/Module/Install/Package.pm
--- old/IO-All-0.44/inc/Module/Install/Package.pm       2011-10-06 
00:11:52.000000000 +0200
+++ new/IO-All-0.46/inc/Module/Install/Package.pm       2012-07-26 
02:36:07.000000000 +0200
@@ -16,7 +16,7 @@
 use Module::Install::Base;
 use vars qw'@ISA $VERSION';
 @ISA = 'Module::Install::Base';
-$VERSION = '0.29';
+$VERSION = '0.30';
 
 #-----------------------------------------------------------------------------#
 # XXX BOOTBUGHACK
@@ -54,6 +54,7 @@
 # plugin directive:
 my $module_install_plugin;
 my $module_package_plugin;
+my $module_package_dist_plugin;
 # XXX ARGVHACK This @argv thing is a temporary fix for an ugly bug somewhere 
in the
 # Wikitext module usage.
 my @argv;
@@ -67,6 +68,10 @@
         $module_package_plugin->mi($module_install_plugin);
         $module_package_plugin->version_check($VERSION);
     }
+    else {
+        $module_package_dist_plugin = $self->_load_dist_plugin($plugin_spec);
+        $module_package_dist_plugin->mi($module_install_plugin) if ref 
$module_package_dist_plugin;
+    }
     # NOTE - This is the point in time where the body of Makefile.PL runs...
     return;
 
@@ -80,7 +85,9 @@
             }
             else {
                 $module_install_plugin->_initial();
+                $module_package_dist_plugin->_initial() if ref 
$module_package_dist_plugin;
                 $module_install_plugin->_main();
+                $module_package_dist_plugin->_main() if ref 
$module_package_dist_plugin;
             }
         };
         if ($@) {
@@ -101,7 +108,10 @@
                 $module_package_plugin->final;
                 $module_package_plugin->replicate_module_package;
             }
-            : $module_install_plugin->_final;
+            : do {
+                $module_install_plugin->_final;
+                $module_package_dist_plugin->_final() if ref 
$module_package_dist_plugin;
+            }
     }
 }
 
@@ -123,8 +133,9 @@
 
 # Find and load the author side plugin:
 sub _load_plugin {
-    my ($self, $spec) = @_;
+    my ($self, $spec, $namespace) = @_;
     $spec ||= '';
+    $namespace ||= 'Module::Package';
     my $version = '';
     $Module::Package::plugin_version = 0;
     if ($spec =~ s/\s+(\S+)\s*//) {
@@ -137,12 +148,22 @@
         ($spec =~ /^:(\w+)$/) ? ('Plugin', "Plugin::$1") :
         ($spec =~ /^(\S*\w):(\w+)$/) ? ($1, "$1::$2") :
         die "$spec is invalid";
-    $module = "Module::Package::$module";
-    $plugin = "Module::Package::$plugin";
+    $module = "${namespace}::${module}";
+    $plugin = "${namespace}::${plugin}";
     eval "use $module $version (); 1" or die $@;
     return $plugin->new();
 }
 
+# Find and load the user side plugin:
+sub _load_dist_plugin {
+    my ($self, $spec, $namespace) = @_;
+    $spec ||= '';
+    $namespace ||= 'Module::Package::Dist';
+    my $r = eval { $self->_load_plugin($spec, $namespace); };
+    return $r if ref $r;
+    return;
+}
+
 #-----------------------------------------------------------------------------#
 # These are the user side analogs to the author side plugin API calls.
 # Prefix with '_' to not pollute Module::Install plugin space.
@@ -218,6 +239,32 @@
     $self->WriteAll(@_);
 }
 
+# Base package for Module::Package plugin distributed components.
+package Module::Package::Dist;
+
+sub new {
+    my ($class, %args) = @_;
+    bless \%args, $class;
+}
+
+sub mi {
+    @_ > 1 ? ($_[0]->{mi}=$_[1]) : $_[0]->{mi};
+}
+
+sub _initial {
+    my ($self) = @_;
+}
+
+sub _main {
+    my ($self) = @_;
+}
+
+sub _final {
+    my ($self) = @_;
+}
+
+1;
+
 #-----------------------------------------------------------------------------#
 # Take a guess at the primary .pm and .pod files for 'all_from', and friends.
 # Put them in global magical vars in the main:: namespace.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/IO-All-0.44/inc/Module/Install/Win32.pm 
new/IO-All-0.46/inc/Module/Install/Win32.pm
--- old/IO-All-0.44/inc/Module/Install/Win32.pm 2011-10-06 00:11:53.000000000 
+0200
+++ new/IO-All-0.46/inc/Module/Install/Win32.pm 2012-07-26 02:36:08.000000000 
+0200
@@ -6,7 +6,7 @@
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-       $VERSION = '1.01';
+       $VERSION = '1.06';
        @ISA     = 'Module::Install::Base';
        $ISCORE  = 1;
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/IO-All-0.44/inc/Module/Install/WriteAll.pm 
new/IO-All-0.46/inc/Module/Install/WriteAll.pm
--- old/IO-All-0.44/inc/Module/Install/WriteAll.pm      2011-10-06 
00:11:53.000000000 +0200
+++ new/IO-All-0.46/inc/Module/Install/WriteAll.pm      2012-07-26 
02:36:08.000000000 +0200
@@ -6,7 +6,7 @@
 
 use vars qw{$VERSION @ISA $ISCORE};
 BEGIN {
-       $VERSION = '1.01';
+       $VERSION = '1.06';
        @ISA     = qw{Module::Install::Base};
        $ISCORE  = 1;
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/IO-All-0.44/inc/Module/Install.pm 
new/IO-All-0.46/inc/Module/Install.pm
--- old/IO-All-0.44/inc/Module/Install.pm       2011-10-06 00:11:52.000000000 
+0200
+++ new/IO-All-0.46/inc/Module/Install.pm       2012-07-26 02:36:07.000000000 
+0200
@@ -31,7 +31,7 @@
        # This is not enforced yet, but will be some time in the next few
        # releases once we can make sure it won't clash with custom
        # Module::Install extensions.
-       $VERSION = '1.01';
+       $VERSION = '1.06';
 
        # Storage for the pseudo-singleton
        $MAIN    = undef;
@@ -451,7 +451,7 @@
 }
 
 sub _cmp ($$) {
-       _version($_[0]) <=> _version($_[1]);
+       _version($_[1]) <=> _version($_[2]);
 }
 
 # Cloned from Params::Util::_CLASS
@@ -467,4 +467,4 @@
 
 1;
 
-# Copyright 2008 - 2011 Adam Kennedy.
+# Copyright 2008 - 2012 Adam Kennedy.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/IO-All-0.44/inc/Module/Package.pm 
new/IO-All-0.46/inc/Module/Package.pm
--- old/IO-All-0.44/inc/Module/Package.pm       2011-10-06 00:11:53.000000000 
+0200
+++ new/IO-All-0.46/inc/Module/Package.pm       2012-07-26 02:36:08.000000000 
+0200
@@ -15,7 +15,7 @@
 use strict;
 
 BEGIN {
-    $Module::Package::VERSION = '0.29';
+    $Module::Package::VERSION = '0.30';
     $inc::Module::Package::VERSION ||= $Module::Package::VERSION;
     @inc::Module::Package::ISA = __PACKAGE__;
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/IO-All-0.44/lib/IO/All.pm 
new/IO-All-0.46/lib/IO/All.pm
--- old/IO-All-0.44/lib/IO/All.pm       2011-10-06 00:10:12.000000000 +0200
+++ new/IO-All-0.46/lib/IO/All.pm       2012-07-26 02:34:32.000000000 +0200
@@ -13,7 +13,7 @@
 use Symbol();
 use Fcntl;
 
-our $VERSION = '0.44';
+our $VERSION = '0.46';
 our @EXPORT = qw(io);
 
 
#===============================================================================
@@ -73,16 +73,18 @@
     my $self = shift;
     my $method = shift;
     my $class_id = $self->autoload->{$method} || $method;
-    return "IO::All::\u$class_id" if $INC{"IO/All/\u$class_id\E.pm"};
+    my $ucfirst_class_name = 'IO::All::' . ucfirst($class_id);
+    my $ucfirst_class_fn = "IO/All/" . ucfirst($class_id) . ".pm";
+    return $ucfirst_class_name if $INC{$ucfirst_class_fn};
     return "IO::All::\U$class_id" if $INC{"IO/All/\U$class_id\E.pm"};
     require IO::All::Temp;
-    if (eval "require IO::All::\u$class_id; 1") {
-        my $class = "IO::All::\u$class_id";
+    if (eval "require $ucfirst_class_name; 1") {
+        my $class = $ucfirst_class_name;
         my $return = $class->can('new')
         ? $class
         : do { # (OS X hack)
-            my $value = $INC{"IO/All/\u$class_id\E.pm"};
-            delete $INC{"IO/All/\u$class_id\E.pm"};
+            my $value = $INC{$ucfirst_class_fn};
+            delete $INC{$ucfirst_class_fn};
             $INC{"IO/All/\U$class_id\E.pm"} = $value;
             "IO::All::\U$class_id";
         };
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/IO-All-0.44/lib/IO/All.pod 
new/IO-All-0.46/lib/IO/All.pod
--- old/IO-All-0.44/lib/IO/All.pod      2011-03-31 18:43:12.000000000 +0200
+++ new/IO-All-0.46/lib/IO/All.pod      2012-07-26 02:32:19.000000000 +0200
@@ -161,7 +161,7 @@
 
 with this:
 
-    my $stuff < io "./mystuff";
+    my $stuff < io './mystuff';
 
 And that is a B<good thing>!
 
@@ -707,6 +707,36 @@
 This method ensures that the path for a file or directory actually exists
 before the file is open. If the path does not exist, it is created.
 
+For example, here is a program called "create-cat-to" that outputs to a file
+that it creates.
+
+    #!/usr/bin/perl
+
+    # create-cat-to.pl
+    # cat to a file that can be created.
+
+    use strict;
+    use warnings;
+
+    use IO::All;
+
+    my $filename = shift(@ARGV);
+
+    # Create a file called $filename, including all leading components.
+    io('-') > io->file($filename)->assert;
+
+Here's an example use of it:
+
+    $ ls -l
+    total 0
+    $ echo "Hello World" | create-cat-to one/two/three/four.txt
+    $ ls -l
+    total 4
+    drwxr-xr-x 3 shlomif shlomif 4096 2010-10-14 18:03 one/
+    $ cat one/two/three/four.txt 
+    Hello World
+    $
+
 =item * autoclose
 
 By default, IO::All will close an object opened for input when EOF is

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to