Hello community,

here is the log from the commit of package perl-MooX-Types-MooseLike-Numeric 
for openSUSE:Factory checked in at 2017-01-24 10:41:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-MooX-Types-MooseLike-Numeric (Old)
 and      /work/SRC/openSUSE:Factory/.perl-MooX-Types-MooseLike-Numeric.new 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-MooX-Types-MooseLike-Numeric"

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/perl-MooX-Types-MooseLike-Numeric/perl-MooX-Types-MooseLike-Numeric.changes
      2013-11-26 19:28:43.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.perl-MooX-Types-MooseLike-Numeric.new/perl-MooX-Types-MooseLike-Numeric.changes
 2017-01-24 10:41:57.309527103 +0100
@@ -1,0 +2,11 @@
+Sat Jan 21 06:06:57 UTC 2017 - co...@suse.com
+
+- updated to 1.03
+   see /usr/share/doc/packages/perl-MooX-Types-MooseLike-Numeric/Changes
+
+  1.03 - 2017-01-20
+       - Add Moo to Build requirements (wpmoore/mendoza)
+       - Improve POD (meAmidos)
+       - Simplify type constraint tests by making use of subtype (meAmidos)
+
+-------------------------------------------------------------------

Old:
----
  MooX-Types-MooseLike-Numeric-1.02.tar.gz

New:
----
  MooX-Types-MooseLike-Numeric-1.03.tar.gz
  cpanspec.yml

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

Other differences:
------------------
++++++ perl-MooX-Types-MooseLike-Numeric.spec ++++++
--- /var/tmp/diff_new_pack.TNVqhv/_old  2017-01-24 10:41:57.617483374 +0100
+++ /var/tmp/diff_new_pack.TNVqhv/_new  2017-01-24 10:41:57.621482806 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-MooX-Types-MooseLike-Numeric
 #
-# Copyright (c) 2013 SUSE LINUX Products 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,28 +17,29 @@
 
 
 Name:           perl-MooX-Types-MooseLike-Numeric
-Version:        1.02
+Version:        1.03
 Release:        0
 %define cpan_name MooX-Types-MooseLike-Numeric
 Summary:        Moo types for numbers
 License:        Artistic-1.0 or GPL-1.0+
 Group:          Development/Libraries/Perl
 Url:            http://search.cpan.org/dist/MooX-Types-MooseLike-Numeric/
-Source:         
http://www.cpan.org/authors/id/M/MA/MATEU/%{cpan_name}-%{version}.tar.gz
+Source0:        
http://www.cpan.org/authors/id/M/MA/MATEU/%{cpan_name}-%{version}.tar.gz
+Source1:        cpanspec.yml
 BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  perl
 BuildRequires:  perl-macros
+BuildRequires:  perl(Moo) >= 1.004002
 BuildRequires:  perl(MooX::Types::MooseLike) >= 0.23
 BuildRequires:  perl(Test::Fatal) >= 0.003
 BuildRequires:  perl(Test::More) >= 0.96
-# MANUAL
-BuildRequires:  perl(Moo)
 Requires:       perl(MooX::Types::MooseLike) >= 0.23
 %{perl_requires}
 
 %description
-adapted from MooseX::Types::Common::Numeric
+A set of numeric types to be used in Moo-based classes. Adapted from
+MooseX::Types::Common::Numeric
 
 %prep
 %setup -q -n %{cpan_name}-%{version}

++++++ MooX-Types-MooseLike-Numeric-1.02.tar.gz -> 
MooX-Types-MooseLike-Numeric-1.03.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MooX-Types-MooseLike-Numeric-1.02/Changes 
new/MooX-Types-MooseLike-Numeric-1.03/Changes
--- old/MooX-Types-MooseLike-Numeric-1.02/Changes       2013-11-23 
18:32:38.000000000 +0100
+++ new/MooX-Types-MooseLike-Numeric-1.03/Changes       2017-01-20 
16:42:41.000000000 +0100
@@ -1,3 +1,8 @@
+1.03 - 2017-01-20
+     - Add Moo to Build requirements (wpmoore/mendoza)
+     - Improve POD (meAmidos)
+     - Simplify type constraint tests by making use of subtype (meAmidos)
+
 1.02 - 2013-11-23
      - Correct Makefile NAME
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MooX-Types-MooseLike-Numeric-1.02/META.json 
new/MooX-Types-MooseLike-Numeric-1.03/META.json
--- old/MooX-Types-MooseLike-Numeric-1.02/META.json     2013-11-23 
18:33:09.000000000 +0100
+++ new/MooX-Types-MooseLike-Numeric-1.03/META.json     2017-01-20 
16:43:24.000000000 +0100
@@ -4,7 +4,7 @@
       "mateu - Mateu X. Hunter (cpan:MATEU) <hun...@missoula.org>"
    ],
    "dynamic_config" : 1,
-   "generated_by" : "ExtUtils::MakeMaker version 6.8, CPAN::Meta::Converter 
version 2.120921",
+   "generated_by" : "ExtUtils::MakeMaker version 7.24, CPAN::Meta::Converter 
version 2.150010",
    "license" : [
       "perl_5"
    ],
@@ -22,6 +22,7 @@
    "prereqs" : {
       "build" : {
          "requires" : {
+            "Moo" : "1.004002",
             "Test::Fatal" : "0.003",
             "Test::More" : "0.96"
          }
@@ -33,7 +34,8 @@
       },
       "runtime" : {
          "requires" : {
-            "MooX::Types::MooseLike" : "0.23"
+            "MooX::Types::MooseLike" : "0.23",
+            "perl" : "5.006"
          }
       }
    },
@@ -43,9 +45,11 @@
          "web" : 
"http://rt.cpan.org/NoAuth/Bugs.html?Dist=MooX-Types-MooseLike-Numeric";
       },
       "repository" : {
+         "type" : "git",
          "url" : "git://github.com/mateu/MooX-Types-MooseLike-Numeric.git"
       },
       "x_IRC" : "irc://irc.perl.org/#web-simple"
    },
-   "version" : "1.02"
+   "version" : "1.03",
+   "x_serialization_backend" : "JSON::PP version 2.27400"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MooX-Types-MooseLike-Numeric-1.02/META.yml 
new/MooX-Types-MooseLike-Numeric-1.03/META.yml
--- old/MooX-Types-MooseLike-Numeric-1.02/META.yml      2013-11-23 
18:33:09.000000000 +0100
+++ new/MooX-Types-MooseLike-Numeric-1.03/META.yml      2017-01-20 
16:43:24.000000000 +0100
@@ -3,25 +3,28 @@
 author:
   - 'mateu - Mateu X. Hunter (cpan:MATEU) <hun...@missoula.org>'
 build_requires:
-  Test::Fatal: 0.003
-  Test::More: 0.96
+  Moo: '1.004002'
+  Test::Fatal: '0.003'
+  Test::More: '0.96'
 configure_requires:
-  ExtUtils::MakeMaker: 0
+  ExtUtils::MakeMaker: '0'
 dynamic_config: 1
-generated_by: 'ExtUtils::MakeMaker version 6.8, CPAN::Meta::Converter version 
2.120921'
+generated_by: 'ExtUtils::MakeMaker version 7.24, CPAN::Meta::Converter version 
2.150010'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
-  version: 1.4
+  version: '1.4'
 name: MooX-Types-MooseLike-Numeric
 no_index:
   directory:
     - t
     - inc
 requires:
-  MooX::Types::MooseLike: 0.23
+  MooX::Types::MooseLike: '0.23'
+  perl: '5.006'
 resources:
+  IRC: irc://irc.perl.org/#web-simple
   bugtracker: 
http://rt.cpan.org/NoAuth/Bugs.html?Dist=MooX-Types-MooseLike-Numeric
   repository: git://github.com/mateu/MooX-Types-MooseLike-Numeric.git
-  x_IRC: irc://irc.perl.org/#web-simple
-version: 1.02
+version: '1.03'
+x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MooX-Types-MooseLike-Numeric-1.02/Makefile.PL 
new/MooX-Types-MooseLike-Numeric-1.03/Makefile.PL
--- old/MooX-Types-MooseLike-Numeric-1.02/Makefile.PL   2013-03-27 
01:31:08.000000000 +0100
+++ new/MooX-Types-MooseLike-Numeric-1.03/Makefile.PL   2017-01-20 
16:40:56.000000000 +0100
@@ -10,6 +10,7 @@
 my %BUILD_DEPS = (
   'Test::More'  => 0.96,
   'Test::Fatal' => 0.003,
+  'Moo'         => 1.004002,
 );
 
 WriteMakefile(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MooX-Types-MooseLike-Numeric-1.02/README 
new/MooX-Types-MooseLike-Numeric-1.03/README
--- old/MooX-Types-MooseLike-Numeric-1.02/README        2013-11-23 
18:33:09.000000000 +0100
+++ new/MooX-Types-MooseLike-Numeric-1.03/README        2017-01-20 
16:43:24.000000000 +0100
@@ -2,16 +2,18 @@
     MooX::Types::MooseLike::Numeric - Moo types for numbers
 
 SYNOPSIS
-        package MyPackage;
-        use Moo;
-        use MooX::Types::MooseLike::Numeric qw(PositiveInt);
-
-        has "daily_breathes" => (
-            isa => PositiveInt
-        );
+      package MyPackage;
+      use Moo;
+      use MooX::Types::MooseLike::Numeric qw(PositiveInt);
+
+      has "daily_breathes" => (
+        is  => 'rw',
+        isa => PositiveInt
+      );
 
 DESCRIPTION
-    adapted from MooseX::Types::Common::Numeric
+    A set of numeric types to be used in Moo-based classes. Adapted from
+    MooseX::Types::Common::Numeric
 
 TYPES (subroutines)
     Available types are listed below.
@@ -26,3 +28,23 @@
     NegativeOrZeroInt
     SingleDigit
 
+SEE ALSO
+    MooX::Types::MooseLike - a type builder.
+
+    MooX::Types::MooseLike::Base - a set of basic types.
+
+    MooX::Types::MooseLike::Email, MooX::Types::MooseLike::DateTime
+
+AUTHOR
+    mateu - Mateu X. Hunter (cpan:MATEU) <hun...@missoula.org>
+
+CONTRIBUTORS
+    amidos - Dmitry Matrosov (cpan:AMIDOS) <ami...@amidos.ru>
+
+COPYRIGHT
+    Copyright (c) 2011-2015 the MooX::Types::MooseLike::Numeric "AUTHOR"
+
+LICENSE
+    This library is free software and may be distributed under the same
+    terms as perl itself.
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/MooX-Types-MooseLike-Numeric-1.02/lib/MooX/Types/MooseLike/Numeric.pm 
new/MooX-Types-MooseLike-Numeric-1.03/lib/MooX/Types/MooseLike/Numeric.pm
--- old/MooX-Types-MooseLike-Numeric-1.02/lib/MooX/Types/MooseLike/Numeric.pm   
2013-11-23 18:30:58.000000000 +0100
+++ new/MooX-Types-MooseLike-Numeric-1.03/lib/MooX/Types/MooseLike/Numeric.pm   
2017-01-20 16:40:25.000000000 +0100
@@ -6,70 +6,70 @@
 use Exporter 5.57 'import';
 our @EXPORT_OK = ();
 
-our $VERSION = '1.02';
+our $VERSION = '1.03';
 
 my $type_definitions = [
   {
     name       => 'PositiveNum',
     subtype_of => 'Num',
     from       => 'MooX::Types::MooseLike::Base',
-    test       => sub { defined $_[0] and $_[0] > 0 },
+    test       => sub { $_[0] > 0 },
     message    => sub { return exception_message($_[0], 'a positive number') },
   },
   {
     name       => 'PositiveOrZeroNum',
     subtype_of => 'Num',
     from       => 'MooX::Types::MooseLike::Base',
-    test       => sub { defined $_[0] and $_[0] >= 0 },
+    test       => sub { $_[0] >= 0 },
     message    => sub { return exception_message($_[0], 'a positive number or 
zero') },
   },
   {
     name       => 'PositiveInt',
     subtype_of => 'Int',
     from       => 'MooX::Types::MooseLike::Base',
-    test       => sub { defined $_[0] and $_[0] > 0 },
+    test       => sub { $_[0] > 0 },
     message    => sub { return exception_message($_[0], 'a positive integer') 
},
   },
   {
     name       => 'PositiveOrZeroInt',
     subtype_of => 'Int',
     from       => 'MooX::Types::MooseLike::Base',
-    test       => sub { defined $_[0] and $_[0] >= 0 },
+    test       => sub { $_[0] >= 0 },
     message    => sub { return exception_message($_[0], 'a positive integer or 
zero') },
   },
   {
     name       => 'NegativeNum',
     subtype_of => 'Num',
     from       => 'MooX::Types::MooseLike::Base',
-    test       => sub { defined $_[0] and $_[0] < 0 },
+    test       => sub { $_[0] < 0 },
     message    => sub { return exception_message($_[0], 'a negative number') },
   },
   {
     name       => 'NegativeOrZeroNum',
     subtype_of => 'Num',
     from       => 'MooX::Types::MooseLike::Base',
-    test       => sub { defined $_[0] and $_[0] <= 0 },
+    test       => sub { $_[0] <= 0 },
     message    => sub { return exception_message($_[0], 'a negative number or 
zero') },
   },
   {
     name       => 'NegativeInt',
     subtype_of => 'Int',
     from       => 'MooX::Types::MooseLike::Base',
-    test       => sub { defined $_[0] and $_[0] < 0 },
+    test       => sub { $_[0] < 0 },
     message    => sub { return exception_message($_[0], 'a negative integer') 
},
   },
   {
     name       => 'NegativeOrZeroInt',
     subtype_of => 'Int',
     from       => 'MooX::Types::MooseLike::Base',
-    test       => sub { defined $_[0] and $_[0] <= 0 },
+    test       => sub { $_[0] <= 0 },
     message    => sub { return exception_message($_[0], 'a negative integer or 
zero') },
   },
   {
     name       => 'SingleDigit',
     subtype_of => 'PositiveOrZeroInt',
     from       => 'MooX::Types::MooseLike::Numeric',
-    test       => sub { defined $_[0] and $_[0] < 10 },
+    test       => sub { $_[0] < 10 },
     message    => sub { return exception_message($_[0], 'a single digit') },
   },
   ];
@@ -88,17 +88,18 @@
 
 =head1 SYNOPSIS
 
-    package MyPackage;
-    use Moo;
-    use MooX::Types::MooseLike::Numeric qw(PositiveInt);
-
-    has "daily_breathes" => (
-        isa => PositiveInt
-    );
+  package MyPackage;
+  use Moo;
+  use MooX::Types::MooseLike::Numeric qw(PositiveInt);
+
+  has "daily_breathes" => (
+    is  => 'rw',
+    isa => PositiveInt
+  );
 
 =head1 DESCRIPTION
 
-adapted from MooseX::Types::Common::Numeric
+A set of numeric types to be used in Moo-based classes. Adapted from 
MooseX::Types::Common::Numeric
 
 =head1 TYPES (subroutines)
 
@@ -125,3 +126,30 @@
 =item SingleDigit
 
 =back
+
+=head1 SEE ALSO
+
+L<MooX::Types::MooseLike> - a type builder.
+
+L<MooX::Types::MooseLike::Base> - a set of basic types.
+
+L<MooX::Types::MooseLike::Email>, L<MooX::Types::MooseLike::DateTime>
+
+=head1 AUTHOR
+
+mateu - Mateu X. Hunter (cpan:MATEU) <hun...@missoula.org>
+
+=head1 CONTRIBUTORS
+
+amidos - Dmitry Matrosov (cpan:AMIDOS) <ami...@amidos.ru>
+
+=head1 COPYRIGHT
+
+Copyright (c) 2011-2015 the MooX::Types::MooseLike::Numeric L</AUTHOR>
+
+=head1 LICENSE
+
+This library is free software and may be distributed under the same terms
+as perl itself.
+
+=cut
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MooX-Types-MooseLike-Numeric-1.02/t/numeric.t 
new/MooX-Types-MooseLike-Numeric-1.03/t/numeric.t
--- old/MooX-Types-MooseLike-Numeric-1.02/t/numeric.t   2013-03-27 
01:29:37.000000000 +0100
+++ new/MooX-Types-MooseLike-Numeric-1.03/t/numeric.t   2017-01-20 
16:33:44.000000000 +0100
@@ -89,6 +89,7 @@
     qr/is not a positive number/,
     'empty string is an exception when we want a positive number'
     );
+
 ## PositiveOrZeroNum
   ok(MooX::Types::MooseLike::Numeric::Test->new(a_nonnegative_number => 0),
     'PositiveOrZeroNum');
@@ -99,6 +100,13 @@
     qr/is not a positive number or zero/,
     '-1 is an exception when we want a non-negative number'
     );
+  like(
+    exception {
+      MooX::Types::MooseLike::Numeric::Test->new(a_nonnegative_number => 
undef);
+    },
+    qr/is not a positive number or zero/,
+    'undef is an exception when we want a non-negative number'
+    );
 
 ## PositiveInt
   ok(MooX::Types::MooseLike::Numeric::Test->new(a_positive_integer => 1),
@@ -110,6 +118,14 @@
     qr/is not a positive integer/,
     'empty string is an exception when we want a positive integer'
     );
+  like(
+    exception {
+      MooX::Types::MooseLike::Numeric::Test->new(a_positive_integer => undef);
+    },
+    qr/is not a positive integer/,
+    'undef is an exception when we want a positive integer'
+    );
+
 ## PositiveOrZeroInt
   ok(MooX::Types::MooseLike::Numeric::Test->new(a_nonnegative_integer => 0),
     'PositiveOrZeroInt');
@@ -120,6 +136,13 @@
     qr/is not a positive integer or zero/,
     '-1 is an exception when we want a non-negative integer'
     );
+  like(
+    exception {
+      MooX::Types::MooseLike::Numeric::Test->new(a_nonnegative_integer => 
undef);
+    },
+    qr/is not a positive integer or zero/,
+    'undef is an exception when we want a non-negative integer'
+    );
 
 ## NegativeNum
   ok(MooX::Types::MooseLike::Numeric::Test->new(a_negative_number => -11),
@@ -131,6 +154,14 @@
     qr/is not a negative number/,
     'empty string is an exception when we want a negative number'
     );
+  like(
+    exception {
+      MooX::Types::MooseLike::Numeric::Test->new(a_negative_number => undef);
+    },
+    qr/is not a negative number/,
+    'undef is an exception when we want a negative number'
+    );
+
 ## NegativeOrZeroNum
   ok(MooX::Types::MooseLike::Numeric::Test->new(a_nonpositive_number => 0),
     'NegativeOrZeroNum');
@@ -141,6 +172,13 @@
     qr/is not a negative number or zero/,
     '1 is an exception when we want a non-negative number'
     );
+  like(
+    exception {
+      MooX::Types::MooseLike::Numeric::Test->new(a_nonpositive_number => 
undef);
+    },
+    qr/is not a negative number or zero/,
+    'undef is an exception when we want a non-negative number'
+    );
 
 ## NegativeInt
   ok(MooX::Types::MooseLike::Numeric::Test->new(a_negative_integer => -1),
@@ -152,6 +190,14 @@
     qr/is not a negative integer/,
     'empty string is an exception when we want a negative integer'
     );
+  like(
+    exception {
+      MooX::Types::MooseLike::Numeric::Test->new(a_negative_integer => undef);
+    },
+    qr/is not a negative integer/,
+    'undef is an exception when we want a negative integer'
+    );
+
 ## NegativeOrZeroInt
   ok(MooX::Types::MooseLike::Numeric::Test->new(a_nonpositive_integer => 0),
     'NegativeOrZeroInt');
@@ -162,6 +208,14 @@
     qr/is not a negative integer or zero/,
     '1 is an exception when we want a non-positive integer'
     );
+  like(
+    exception {
+      MooX::Types::MooseLike::Numeric::Test->new(a_nonpositive_integer => 
undef);
+    },
+    qr/is not a negative integer or zero/,
+    'undef is an exception when we want a non-positive integer'
+    );
+
 ## SingleDigit
   ok(MooX::Types::MooseLike::Numeric::Test->new(a_single_digit => 0),
     'SingleDigit');
@@ -172,6 +226,13 @@
     qr/is not a single digit/,
     '10 is an exception when we want a single digit'
     );
+  like(
+    exception {
+      MooX::Types::MooseLike::Numeric::Test->new(a_single_digit => undef);
+    },
+    qr/is not a single digit/,
+    'undef is an exception when we want a single digit'
+    );
 
 eval q{ require Moose; require MooseX::Types::Common::Numeric; } or do {
     note "Moose or Type not available; skipping actual inflation tests";

++++++ cpanspec.yml ++++++
---
#description_paragraphs: 3
#description: |-
#  override description from CPAN
#summary: override summary from CPAN
#no_testing: broken upstream
#sources:
#  - source1
#  - source2
#patches:
#  foo.patch: -p1
#  bar.patch:
#preamble: |-
# BuildRequires:  gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s,  *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL 
#post_build: |-
# rm unused.files
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module

Reply via email to