Hello community,

here is the log from the commit of package perl-Class-Inspector for 
openSUSE:Factory checked in at 2017-08-19 10:55:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Class-Inspector (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Class-Inspector.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Class-Inspector"

Sat Aug 19 10:55:34 2017 rev:31 rq:516832 version:1.32

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/perl-Class-Inspector/perl-Class-Inspector.changes    
    2016-12-02 16:36:29.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.perl-Class-Inspector.new/perl-Class-Inspector.changes
   2017-08-19 10:55:37.495162779 +0200
@@ -1,0 +2,12 @@
+Wed Aug  9 05:14:12 UTC 2017 - co...@suse.com
+
+- updated to 1.32
+   see /usr/share/doc/packages/perl-Class-Inspector/Changes
+
+  1.32      2017-08-08 14:12:42 -0400
+    - The installed method now supports @INC hooks of any type
+      (coderef was supported as of 1.29, now arrayrefs and objects
+      are supported)
+    - Detect probably broken Perl on Cygwin in Makefile.PL (see gh#5)
+
+-------------------------------------------------------------------

Old:
----
  Class-Inspector-1.31.tar.gz

New:
----
  Class-Inspector-1.32.tar.gz

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

Other differences:
------------------
++++++ perl-Class-Inspector.spec ++++++
--- /var/tmp/diff_new_pack.pnlvbV/_old  2017-08-19 10:55:38.467025750 +0200
+++ /var/tmp/diff_new_pack.pnlvbV/_new  2017-08-19 10:55:38.483023494 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-Class-Inspector
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX 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,14 +17,14 @@
 
 
 Name:           perl-Class-Inspector
-Version:        1.31
+Version:        1.32
 Release:        0
 %define cpan_name Class-Inspector
 Summary:        Get information about a class and its structure
 License:        Artistic-1.0 or GPL-1.0+
 Group:          Development/Libraries/Perl
 Url:            http://search.cpan.org/dist/Class-Inspector/
-Source0:        
http://www.cpan.org/authors/id/P/PL/PLICEASE/%{cpan_name}-%{version}.tar.gz
+Source0:        
https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/%{cpan_name}-%{version}.tar.gz
 Source1:        cpanspec.yml
 BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -57,6 +57,7 @@
 
 %files -f %{name}.files
 %defattr(-,root,root,755)
-%doc author.yml Changes LICENSE README
+%doc author.yml Changes README
+%license LICENSE
 
 %changelog

++++++ Class-Inspector-1.31.tar.gz -> Class-Inspector-1.32.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Class-Inspector-1.31/Changes 
new/Class-Inspector-1.32/Changes
--- old/Class-Inspector-1.31/Changes    2016-11-25 15:33:51.000000000 +0100
+++ new/Class-Inspector-1.32/Changes    2017-08-08 20:12:46.000000000 +0200
@@ -1,5 +1,11 @@
 Revision history for Perl extension Class-Inspector
 
+1.32      2017-08-08 14:12:42 -0400
+  - The installed method now supports @INC hooks of any type
+    (coderef was supported as of 1.29, now arrayrefs and objects
+    are supported)
+  - Detect probably broken Perl on Cygwin in Makefile.PL (see gh#5)
+
 1.31      2016-11-25 09:33:47 -0500
   - Migrated from Module::Install to Dist::Zilla and ExtUtils::MakeMaker
   - Fixed meta for repository which was pointing to the wrong URL
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Class-Inspector-1.31/MANIFEST 
new/Class-Inspector-1.32/MANIFEST
--- old/Class-Inspector-1.31/MANIFEST   2016-11-25 15:33:51.000000000 +0100
+++ new/Class-Inspector-1.32/MANIFEST   2017-08-08 20:12:46.000000000 +0200
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::Manifest 
v6.008.
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest 
v6.010.
 Changes
 INSTALL
 LICENSE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Class-Inspector-1.31/META.json 
new/Class-Inspector-1.32/META.json
--- old/Class-Inspector-1.31/META.json  2016-11-25 15:33:51.000000000 +0100
+++ new/Class-Inspector-1.32/META.json  2017-08-08 20:12:46.000000000 +0200
@@ -5,7 +5,7 @@
       "Adam Kennedy <ad...@cpan.org>"
    ],
    "dynamic_config" : 0,
-   "generated_by" : "Dist::Zilla version 6.008, CPAN::Meta::Converter version 
2.150010",
+   "generated_by" : "Dist::Zilla version 6.010, CPAN::Meta::Converter version 
2.150010",
    "license" : [
       "perl_5"
    ],
@@ -48,6 +48,16 @@
          }
       }
    },
+   "provides" : {
+      "Class::Inspector" : {
+         "file" : "lib/Class/Inspector.pm",
+         "version" : "1.32"
+      },
+      "Class::Inspector::Functions" : {
+         "file" : "lib/Class/Inspector/Functions.pm",
+         "version" : "1.32"
+      }
+   },
    "release_status" : "stable",
    "resources" : {
       "bugtracker" : {
@@ -60,7 +70,14 @@
          "web" : "https://github.com/plicease/Class-Inspector";
       }
    },
-   "version" : "1.31",
-   "x_serialization_backend" : "Cpanel::JSON::XS version 3.0218"
+   "version" : "1.32",
+   "x_contributors" : [
+      "Adam Kennedy <ad...@cpan.org>",
+      "Graham Ollis <plice...@cpan.org>",
+      "Tom Wyant",
+      "Steffen M\u00fcller",
+      "Kivanc Yazan (KYZN)"
+   ],
+   "x_serialization_backend" : "Cpanel::JSON::XS version 3.0237"
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Class-Inspector-1.31/META.yml 
new/Class-Inspector-1.32/META.yml
--- old/Class-Inspector-1.31/META.yml   2016-11-25 15:33:51.000000000 +0100
+++ new/Class-Inspector-1.32/META.yml   2017-08-08 20:12:46.000000000 +0200
@@ -10,12 +10,19 @@
   ExtUtils::MakeMaker: '0'
   perl: '5.006'
 dynamic_config: 0
-generated_by: 'Dist::Zilla version 6.008, CPAN::Meta::Converter version 
2.150010'
+generated_by: 'Dist::Zilla version 6.010, CPAN::Meta::Converter version 
2.150010'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
   version: '1.4'
 name: Class-Inspector
+provides:
+  Class::Inspector:
+    file: lib/Class/Inspector.pm
+    version: '1.32'
+  Class::Inspector::Functions:
+    file: lib/Class/Inspector/Functions.pm
+    version: '1.32'
 requires:
   File::Spec: '0.80'
   perl: '5.006'
@@ -23,5 +30,11 @@
   bugtracker: https://github.com/plicease/Class-Inspector/issues
   homepage: https://metacpan.org/pod/Class::Inspector
   repository: git://github.com/plicease/Class-Inspector.git
-version: '1.31'
-x_serialization_backend: 'YAML::Tiny version 1.69'
+version: '1.32'
+x_contributors:
+  - 'Adam Kennedy <ad...@cpan.org>'
+  - 'Graham Ollis <plice...@cpan.org>'
+  - 'Tom Wyant'
+  - 'Steffen Müller'
+  - 'Kivanc Yazan (KYZN)'
+x_serialization_backend: 'YAML::Tiny version 1.70'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Class-Inspector-1.31/Makefile.PL 
new/Class-Inspector-1.32/Makefile.PL
--- old/Class-Inspector-1.31/Makefile.PL        2016-11-25 15:33:51.000000000 
+0100
+++ new/Class-Inspector-1.32/Makefile.PL        2017-08-08 20:12:46.000000000 
+0200
@@ -1,11 +1,22 @@
 use strict; use warnings;
 BEGIN {
+  {
+    my $fn = 'Class/Inspector.pm';
+    unless(index('lib/Class/Inspector.pm', $fn) == 
index('lib/Class/Inspector.pm', 'Class/Inspector.pm'))
+    {
+      print "I believe you have a broken Perl.\n";
+      print "Please see 
https://github.com/plicease/Class-Inspector/issues/5\n";;
+      print "If you believe this diagnostic is mistaken, you can edit the 
Makefile.PL and comment out the logic that determins this.\n";
+      print "If you believe this diagnostic is mistaken, feel free to comment 
on the issue above.\n";
+      exit;
+    }
+  }
   unless(eval q{ use 5.006; 1}) {
     print "Perl 5.006 or better required\n";
     exit;
   }
 }
-# This file was automatically generated by 
Dist::Zilla::Plugin::Author::Plicease::MakeMaker v2.10.
+# This file was automatically generated by 
Dist::Zilla::Plugin::Author::Plicease::MakeMaker v2.21.
 use strict;
 use warnings;
 
@@ -33,7 +44,7 @@
   "TEST_REQUIRES" => {
     "Test::More" => "0.94"
   },
-  "VERSION" => "1.31",
+  "VERSION" => "1.32",
   "test" => {
     "TESTS" => "t/*.t"
   }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Class-Inspector-1.31/README 
new/Class-Inspector-1.32/README
--- old/Class-Inspector-1.31/README     2016-11-25 15:33:51.000000000 +0100
+++ new/Class-Inspector-1.32/README     2017-08-08 20:12:46.000000000 +0200
@@ -4,7 +4,7 @@
 
 VERSION
 
-    version 1.31
+    version 1.32
 
 SYNOPSIS
 
@@ -244,6 +244,8 @@
 
     Steffen Müller
 
+    Kivanc Yazan (KYZN)
+
 COPYRIGHT AND LICENSE
 
     This software is copyright (c) 2016 by Adam Kennedy.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Class-Inspector-1.31/dist.ini 
new/Class-Inspector-1.32/dist.ini
--- old/Class-Inspector-1.31/dist.ini   2016-11-25 15:33:51.000000000 +0100
+++ new/Class-Inspector-1.32/dist.ini   2017-08-08 20:12:46.000000000 +0200
@@ -4,13 +4,25 @@
 license = Perl_5
 copyright_holder = Adam Kennedy
 copyright_year = 2016
-version = 1.31
+version = 1.32
 
 [@Author::Plicease]
-:version      = 2.10
+:version      = 2.21
 travis_status = 1
 release_tests = 1
 
+preamble = | {
+preamble = |   my $fn = 'Class/Inspector.pm';
+preamble = |   unless(index('lib/Class/Inspector.pm', $fn) == 
index('lib/Class/Inspector.pm', 'Class/Inspector.pm'))
+preamble = |   {
+preamble = |     print "I believe you have a broken Perl.\n";
+preamble = |     print "Please see 
https://github.com/plicease/Class-Inspector/issues/5\n";;
+preamble = |     print "If you believe this diagnostic is mistaken, you can 
edit the Makefile.PL and comment out the logic that determins this.\n";
+preamble = |     print "If you believe this diagnostic is mistaken, feel free 
to comment on the issue above.\n";
+preamble = |     exit;
+preamble = |   }
+preamble = | }
+
 [Prereqs / TestPrereqs]
 -phase = test
 ; TODO: this gets overridden with 0.94
@@ -35,6 +47,9 @@
 original = Adam Kennedy <ad...@cpan.org>
 contributor = Tom Wyant
 contributor = Steffen Müller
+contributor = Kivanc Yazan (KYZN)
+
+[MetaProvides::Package]
 
 [PruneFiles]
 filename = xt/release/changes.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/Class-Inspector-1.31/lib/Class/Inspector/Functions.pm 
new/Class-Inspector-1.32/lib/Class/Inspector/Functions.pm
--- old/Class-Inspector-1.31/lib/Class/Inspector/Functions.pm   2016-11-25 
15:33:51.000000000 +0100
+++ new/Class-Inspector-1.32/lib/Class/Inspector/Functions.pm   2017-08-08 
20:12:46.000000000 +0200
@@ -7,7 +7,7 @@
 use Class::Inspector ();
 
 # ABSTRACT: Get information about a class and its structure
-our $VERSION = '1.31'; # VERSION
+our $VERSION = '1.32'; # VERSION
 
 BEGIN {
   our @ISA     = 'Exporter';
@@ -58,7 +58,7 @@
 
 =head1 VERSION
 
-version 1.31
+version 1.32
 
 =head1 SYNOPSIS
 
@@ -125,6 +125,8 @@
 
 Steffen Müller
 
+Kivanc Yazan (KYZN)
+
 =head1 COPYRIGHT AND LICENSE
 
 This software is copyright (c) 2016 by Adam Kennedy.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Class-Inspector-1.31/lib/Class/Inspector.pm 
new/Class-Inspector-1.32/lib/Class/Inspector.pm
--- old/Class-Inspector-1.31/lib/Class/Inspector.pm     2016-11-25 
15:33:51.000000000 +0100
+++ new/Class-Inspector-1.32/lib/Class/Inspector.pm     2017-08-08 
20:12:46.000000000 +0200
@@ -8,7 +8,7 @@
 use File::Spec ();
 
 # ABSTRACT: Get information about a class and its structure
-our $VERSION = '1.31'; # VERSION
+our $VERSION = '1.32'; # VERSION
 
 
 # If Unicode is available, enable it so that the
@@ -36,12 +36,25 @@
   my $filename = $class->_inc_filename(shift) or return undef;
   
   foreach my $inc ( @INC ) {
-    if(ref $inc eq 'CODE') {
+    my $ref = ref $inc;
+    if($ref eq 'CODE') {
       my @ret = $inc->($inc, $filename);
       if(@ret) {
         return 1;
       }
     }
+    elsif($ref eq 'ARRAY' && ref($inc->[0]) eq 'CODE') {
+      my @ret = $inc->[0]->($inc, $filename);
+      if(@ret) {
+        return 1;
+      }
+    }
+    elsif($ref && eval { $inc->can('INC') }) {
+      my @ret = $inc->INC($filename);
+      if(@ret) {
+        return 1;
+      }
+    }
   }
   
   '';
@@ -391,7 +404,7 @@
 
 =head1 VERSION
 
-version 1.31
+version 1.32
 
 =head1 SYNOPSIS
 
@@ -631,6 +644,8 @@
 
 Steffen Müller
 
+Kivanc Yazan (KYZN)
+
 =head1 COPYRIGHT AND LICENSE
 
 This software is copyright (c) 2016 by Adam Kennedy.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Class-Inspector-1.31/t/04_main_functions.t 
new/Class-Inspector-1.32/t/04_main_functions.t
--- old/Class-Inspector-1.31/t/04_main_functions.t      2016-11-25 
15:33:51.000000000 +0100
+++ new/Class-Inspector-1.32/t/04_main_functions.t      2017-08-08 
20:12:46.000000000 +0200
@@ -6,7 +6,7 @@
 
 use strict;
 use warnings;
-use Test::More tests => 22;
+use Test::More tests => 24;
 use Class::Inspector::Functions;
 
 # To make maintaining this a little faster,
@@ -74,7 +74,47 @@
   return
 };
 
+unshift @INC, [ sub { 
+  my $arrayref = shift;
+  my $filename = shift;
+
+  die "args wrong" unless
+     ref($arrayref->[0]) eq 'CODE' 
+  && $arrayref->[1] == 1
+  && $arrayref->[2] == 2
+  && $arrayref->[3] == 3;
+
+  if($filename eq 'Foo/Baz.pm') {
+    open my $fh,  '<', __FILE__;
+    return $fh;
+  }
+  return
+}, 1,2,3];
+
+unshift @INC, MyHook->new;
+
 # Check the installed stuff
 ok( installed( CI ), "installed detects installed" );
 ok( ! installed( BAD ), "installed detects not installed" );
 ok( installed( 'Foo::Bar'), "installed detects coderef installed" );
+ok( installed( 'Foo::Baz'), "installed detects arrayref installed" );
+ok( installed( 'Foo::Foo'), "installed detects object installed" );
+
+package
+  MyHook;
+
+sub new {
+  my($class) = @_;
+  bless {}, $class;
+}
+
+sub MyHook::INC {
+  my($self, $filename) = @_;
+  die "self wrong" unless ref $self eq 'MyHook';
+  
+  if($filename eq 'Foo/Foo.pm') {
+    open my $fh, '<', __FILE__;
+    return $fh;
+  }
+  return;
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Class-Inspector-1.31/xt/author/strict.t 
new/Class-Inspector-1.32/xt/author/strict.t
--- old/Class-Inspector-1.31/xt/author/strict.t 2016-11-25 15:33:51.000000000 
+0100
+++ new/Class-Inspector-1.32/xt/author/strict.t 2017-08-08 20:12:46.000000000 
+0200
@@ -12,8 +12,9 @@
 chdir(File::Spec->catdir($FindBin::Bin, File::Spec->updir, File::Spec->updir));
 
 unshift @Test::Strict::MODULES_ENABLING_STRICT,
-  'sips',
+  'ozo',
   'Test2::Bundle::SIPS',
+  'Test2::V0',
   'Test2::Bundle::Extended';
 note "enabling strict = $_" for @Test::Strict::MODULES_ENABLING_STRICT;
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Class-Inspector-1.31/xt/release/fixme.t 
new/Class-Inspector-1.32/xt/release/fixme.t
--- old/Class-Inspector-1.31/xt/release/fixme.t 2016-11-25 15:33:51.000000000 
+0100
+++ new/Class-Inspector-1.32/xt/release/fixme.t 2017-08-08 20:12:46.000000000 
+0200
@@ -13,7 +13,7 @@
 
 run_tests(
   match => qr/FIXME/,
-  where => [ grep { -e $_ } qw( bin lib t Makefile.PL )],
+  where => [ grep { -e $_ } qw( bin lib t Makefile.PL Build.PL )],
   warn  => 1,
 );
 


Reply via email to