Hello community, here is the log from the commit of package perl-Lingua-EN-Number-IsOrdinal for openSUSE:Factory checked in at 2015-04-15 16:23:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Lingua-EN-Number-IsOrdinal (Old) and /work/SRC/openSUSE:Factory/.perl-Lingua-EN-Number-IsOrdinal.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Lingua-EN-Number-IsOrdinal" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Lingua-EN-Number-IsOrdinal/perl-Lingua-EN-Number-IsOrdinal.changes 2014-12-06 13:45:39.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.perl-Lingua-EN-Number-IsOrdinal.new/perl-Lingua-EN-Number-IsOrdinal.changes 2015-04-15 16:23:45.000000000 +0200 @@ -1,0 +2,9 @@ +Mon Apr 13 19:01:10 UTC 2015 - co...@suse.com + +- updated to 0.05 + see /usr/share/doc/packages/perl-Lingua-EN-Number-IsOrdinal/Changes + + 0.05 2015-03-23 00:06:52 + - merge PR #1 to add Test::Kwalitee and License info + +------------------------------------------------------------------- Old: ---- Lingua-EN-Number-IsOrdinal-0.04.tar.gz New: ---- Lingua-EN-Number-IsOrdinal-0.05.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Lingua-EN-Number-IsOrdinal.spec ++++++ --- /var/tmp/diff_new_pack.q8h9C7/_old 2015-04-15 16:23:45.000000000 +0200 +++ /var/tmp/diff_new_pack.q8h9C7/_new 2015-04-15 16:23:45.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-Lingua-EN-Number-IsOrdinal # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 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,7 +17,7 @@ Name: perl-Lingua-EN-Number-IsOrdinal -Version: 0.04 +Version: 0.05 Release: 0 %define cpan_name Lingua-EN-Number-IsOrdinal Summary: detect if English number is ordinal or cardinal ++++++ Lingua-EN-Number-IsOrdinal-0.04.tar.gz -> Lingua-EN-Number-IsOrdinal-0.05.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Lingua-EN-Number-IsOrdinal-0.04/Changes new/Lingua-EN-Number-IsOrdinal-0.05/Changes --- old/Lingua-EN-Number-IsOrdinal-0.04/Changes 2013-01-14 04:53:35.000000000 +0100 +++ new/Lingua-EN-Number-IsOrdinal-0.05/Changes 2015-03-23 05:06:56.000000000 +0100 @@ -1,5 +1,8 @@ Revision history for Lingua::EN::Number::IsOrdinal +0.05 2015-03-23 00:06:52 + - merge PR #1 to add Test::Kwalitee and License info + 0.04 2013-01-13 22:53:26 - refactor code for stricter input checking diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Lingua-EN-Number-IsOrdinal-0.04/LICENSE new/Lingua-EN-Number-IsOrdinal-0.05/LICENSE --- old/Lingua-EN-Number-IsOrdinal-0.04/LICENSE 2013-01-14 04:53:35.000000000 +0100 +++ new/Lingua-EN-Number-IsOrdinal-0.05/LICENSE 2015-03-23 05:06:56.000000000 +0100 @@ -22,7 +22,7 @@ Version 1, February 1989 Copyright (C) 1989 Free Software Foundation, Inc. - 51 Franklin St, Suite 500, Boston, MA 02110-1335 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. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Lingua-EN-Number-IsOrdinal-0.04/MANIFEST new/Lingua-EN-Number-IsOrdinal-0.05/MANIFEST --- old/Lingua-EN-Number-IsOrdinal-0.04/MANIFEST 2013-01-14 04:53:35.000000000 +0100 +++ new/Lingua-EN-Number-IsOrdinal-0.05/MANIFEST 2015-03-23 05:06:56.000000000 +0100 @@ -1,3 +1,4 @@ +# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.031. Changes LICENSE MANIFEST @@ -10,4 +11,5 @@ t/00-compile.t t/basic.t t/lib/TestOrdinal.pm +t/release-kwalitee.t t/release-pod-syntax.t diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Lingua-EN-Number-IsOrdinal-0.04/META.json new/Lingua-EN-Number-IsOrdinal-0.05/META.json --- old/Lingua-EN-Number-IsOrdinal-0.04/META.json 2013-01-14 04:53:35.000000000 +0100 +++ new/Lingua-EN-Number-IsOrdinal-0.05/META.json 2015-03-23 05:06:56.000000000 +0100 @@ -4,13 +4,13 @@ "Rafael Kitover <rkito...@cpan.org>" ], "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 4.300028, CPAN::Meta::Converter version 2.120921", + "generated_by" : "Dist::Zilla version 5.031, CPAN::Meta::Converter version 2.143240", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", - "version" : "2" + "version" : 2 }, "name" : "Lingua-EN-Number-IsOrdinal", "no_index" : { @@ -21,11 +21,12 @@ "prereqs" : { "configure" : { "requires" : { - "ExtUtils::MakeMaker" : "6.30" + "ExtUtils::MakeMaker" : "0" } }, "develop" : { "requires" : { + "Test::Kwalitee" : "1.21", "Test::Pod" : "1.41" } }, @@ -39,11 +40,14 @@ }, "test" : { "requires" : { - "File::Find" : "0", - "File::Temp" : "0", + "File::Spec" : "0", + "IO::Handle" : "0", + "IPC::Open3" : "0", "Test::Fatal" : "0", "Test::More" : "0", - "Try::Tiny" : "0" + "Try::Tiny" : "0", + "lib" : "0", + "perl" : "5.006" } } }, @@ -63,7 +67,7 @@ "web" : "http://github.com/rkitover/lingua-en-number-isordinal" } }, - "version" : "0.04", - "x_authority" : "cpan:AVAR" + "version" : "0.05", + "x_authority" : "cpan:RKITOVER" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Lingua-EN-Number-IsOrdinal-0.04/META.yml new/Lingua-EN-Number-IsOrdinal-0.05/META.yml --- old/Lingua-EN-Number-IsOrdinal-0.04/META.yml 2013-01-14 04:53:35.000000000 +0100 +++ new/Lingua-EN-Number-IsOrdinal-0.05/META.yml 2015-03-23 05:06:56.000000000 +0100 @@ -3,32 +3,35 @@ author: - 'Rafael Kitover <rkito...@cpan.org>' build_requires: - File::Find: 0 - File::Temp: 0 - Test::Fatal: 0 - Test::More: 0 - Try::Tiny: 0 + File::Spec: '0' + IO::Handle: '0' + IPC::Open3: '0' + Test::Fatal: '0' + Test::More: '0' + Try::Tiny: '0' + lib: '0' + perl: '5.006' configure_requires: - ExtUtils::MakeMaker: 6.30 + ExtUtils::MakeMaker: '0' dynamic_config: 0 -generated_by: 'Dist::Zilla version 4.300028, CPAN::Meta::Converter version 2.120921' +generated_by: 'Dist::Zilla version 5.031, CPAN::Meta::Converter version 2.143240' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html - version: 1.4 + version: '1.4' name: Lingua-EN-Number-IsOrdinal no_index: directory: - t requires: - Exporter: 0 - Lingua::EN::FindNumber: 0 - strict: 0 - warnings: 0 + Exporter: '0' + Lingua::EN::FindNumber: '0' + strict: '0' + warnings: '0' resources: bugtracker: https://rt.cpan.org/Public/Dist/Display.html?Name=Lingua-EN-Number-IsOrdinal homepage: http://metacpan.org/release/Lingua-EN-Number-IsOrdinal license: http://dev.perl.org/licenses/ repository: git://github.com/rkitover/lingua-en-number-isordinal.git -version: 0.04 -x_authority: cpan:AVAR +version: '0.05' +x_authority: cpan:RKITOVER diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Lingua-EN-Number-IsOrdinal-0.04/Makefile.PL new/Lingua-EN-Number-IsOrdinal-0.05/Makefile.PL --- old/Lingua-EN-Number-IsOrdinal-0.04/Makefile.PL 2013-01-14 04:53:35.000000000 +0100 +++ new/Lingua-EN-Number-IsOrdinal-0.05/Makefile.PL 2015-03-23 05:06:56.000000000 +0100 @@ -1,29 +1,24 @@ +# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.031. use strict; use warnings; +use 5.006; - -use ExtUtils::MakeMaker 6.30; +use ExtUtils::MakeMaker; my %WriteMakefileArgs = ( "ABSTRACT" => "detect if English number is ordinal or cardinal", "AUTHOR" => "Rafael Kitover <rkitover\@cpan.org>", - "BUILD_REQUIRES" => { - "File::Find" => 0, - "File::Temp" => 0, - "Test::Fatal" => 0, - "Test::More" => 0, - "Try::Tiny" => 0 - }, "CONFIGURE_REQUIRES" => { - "ExtUtils::MakeMaker" => "6.30" + "ExtUtils::MakeMaker" => 0 }, "DISTNAME" => "Lingua-EN-Number-IsOrdinal", "EXE_FILES" => [], "LICENSE" => "perl", + "MIN_PERL_VERSION" => "5.006", "NAME" => "Lingua::EN::Number::IsOrdinal", "PREREQ_PM" => { "Exporter" => 0, @@ -31,24 +26,42 @@ "strict" => 0, "warnings" => 0 }, - "VERSION" => "0.04", + "TEST_REQUIRES" => { + "File::Spec" => 0, + "IO::Handle" => 0, + "IPC::Open3" => 0, + "Test::Fatal" => 0, + "Test::More" => 0, + "Try::Tiny" => 0, + "lib" => 0 + }, + "VERSION" => "0.05", "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}; - } - } +my %FallbackPrereqs = ( + "Exporter" => 0, + "ExtUtils::MakeMaker" => 0, + "File::Spec" => 0, + "IO::Handle" => 0, + "IPC::Open3" => 0, + "Lingua::EN::FindNumber" => 0, + "Test::Fatal" => 0, + "Test::More" => 0, + "Try::Tiny" => 0, + "lib" => 0, + "strict" => 0, + "warnings" => 0 +); + + +unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) { + delete $WriteMakefileArgs{TEST_REQUIRES}; + delete $WriteMakefileArgs{BUILD_REQUIRES}; + $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs; } delete $WriteMakefileArgs{CONFIGURE_REQUIRES} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Lingua-EN-Number-IsOrdinal-0.04/README new/Lingua-EN-Number-IsOrdinal-0.05/README --- old/Lingua-EN-Number-IsOrdinal-0.04/README 2013-01-14 04:53:35.000000000 +0100 +++ new/Lingua-EN-Number-IsOrdinal-0.05/README 2015-03-23 05:06:56.000000000 +0100 @@ -1,19 +1,22 @@ NAME + Lingua::EN::Number::IsOrdinal - detect if English number is ordinal or cardinal SYNOPSIS - use Lingua::EN::Number::IsOrdinal 'is_ordinal'; + use Lingua::EN::Number::IsOrdinal 'is_ordinal'; + ok is_ordinal('first'); - + ok !is_ordinal('one'); - + ok is_ordinal('2nd'); - + ok !is_ordinal('2'); DESCRIPTION + This module will tell you if a number, either in words or as digits, is a cardinal or ordinal number <http://www.ego4u.com/en/cram-up/vocabulary/numbers/ordinal>. @@ -22,35 +25,49 @@ found with Lingua::EN::FindNumber and take different actions. FUNCTIONS - is_ordinal + + is_ordinal + Takes a number as English words or digits (with or without ordinal - suffix) and returns 1 for ordinal numbers and "undef" for cardinal + suffix) and returns 1 for ordinal numbers and undef for cardinal numbers. - Checks that the whole parameter is a number using Lingua::EN::FindNumber - or a regex in the case of digits, and if it isn't will throw a "not a - number" exception. + Checks that the whole parameter is a number using + Lingua::EN::FindNumber or a regex in the case of digits, and if it + isn't will throw a not a number exception. This function can be optionally imported. METHODS - _is_ordinal + + _is_ordinal + Method version of "is_ordinal", this is where the function is actually implemented. Can be overloaded in a subclass. - _is_number + _is_number + Returns 1 if the passed in string is a word-number as detected by - Lingua::EN::FindNumber or is a cardinal or ordinal number made of digits - and (for ordinal numbers) a suffix. Otherwise returns "undef". Can be - overloaded in a subclass. + Lingua::EN::FindNumber or is a cardinal or ordinal number made of + digits and (for ordinal numbers) a suffix. Otherwise returns undef. Can + be overloaded in a subclass. SEE ALSO - * Lingua::EN::FindNumber - * Lingua::EN::Words2Nums + * Lingua::EN::FindNumber + + * Lingua::EN::Words2Nums - * Lingua::EN::Inflect::Phrase + * Lingua::EN::Inflect::Phrase AUTHOR + Rafael Kitover <rkito...@cpan.org> +LICENSE + + Copyright 2013-2015 by Rafael Kitover + + This library 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/Lingua-EN-Number-IsOrdinal-0.04/dist.ini new/Lingua-EN-Number-IsOrdinal-0.05/dist.ini --- old/Lingua-EN-Number-IsOrdinal-0.04/dist.ini 2013-01-14 04:53:35.000000000 +0100 +++ new/Lingua-EN-Number-IsOrdinal-0.05/dist.ini 2015-03-23 05:06:56.000000000 +0100 @@ -4,7 +4,10 @@ copyright_holder = Rafael Kitover copyright_year = 2012 + [@AVAR] dist = Lingua-EN-Number-IsOrdinal bugtracker = rt github_user = rkitover + +[Test::Kwalitee] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Lingua-EN-Number-IsOrdinal-0.04/lib/Lingua/EN/Number/IsOrdinal.pm new/Lingua-EN-Number-IsOrdinal-0.05/lib/Lingua/EN/Number/IsOrdinal.pm --- old/Lingua-EN-Number-IsOrdinal-0.04/lib/Lingua/EN/Number/IsOrdinal.pm 2013-01-14 04:53:35.000000000 +0100 +++ new/Lingua-EN-Number-IsOrdinal-0.05/lib/Lingua/EN/Number/IsOrdinal.pm 2015-03-23 05:06:56.000000000 +0100 @@ -1,11 +1,6 @@ package Lingua::EN::Number::IsOrdinal; -BEGIN { - $Lingua::EN::Number::IsOrdinal::AUTHORITY = 'cpan:AVAR'; -} -{ - $Lingua::EN::Number::IsOrdinal::VERSION = '0.04'; -} - +our $AUTHORITY = 'cpan:RKITOVER'; +$Lingua::EN::Number::IsOrdinal::VERSION = '0.05'; use strict; use warnings; use Exporter 'import'; @@ -134,6 +129,13 @@ Rafael Kitover <rkito...@cpan.org> +=head1 LICENSE + +Copyright 2013-2015 by Rafael Kitover + +This library is free software; you can redistribute it and/or modify it under +the same terms as Perl itself. + =cut 1; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Lingua-EN-Number-IsOrdinal-0.04/t/00-compile.t new/Lingua-EN-Number-IsOrdinal-0.05/t/00-compile.t --- old/Lingua-EN-Number-IsOrdinal-0.04/t/00-compile.t 2013-01-14 04:53:35.000000000 +0100 +++ new/Lingua-EN-Number-IsOrdinal-0.05/t/00-compile.t 2015-03-23 05:06:56.000000000 +0100 @@ -1,73 +1,51 @@ -#!perl - +use 5.006; use strict; use warnings; -use Test::More; - +# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.051 +use Test::More; -use File::Find; -use File::Temp qw{ tempdir }; +plan tests => 1 + ($ENV{AUTHOR_TESTING} ? 1 : 0); -my @modules; -find( - sub { - return if $File::Find::name !~ /\.pm\z/; - my $found = $File::Find::name; - $found =~ s{^lib/}{}; - $found =~ s{[/\\]}{::}g; - $found =~ s/\.pm$//; - # nothing to skip - push @modules, $found; - }, - 'lib', +my @module_files = ( + 'Lingua/EN/Number/IsOrdinal.pm' ); -sub _find_scripts { - my $dir = shift @_; - my @found_scripts = (); - find( - sub { - return unless -f; - my $found = $File::Find::name; - # nothing to skip - open my $FH, '<', $_ or do { - note( "Unable to open $found in ( $! ), skipping" ); - return; - }; - my $shebang = <$FH>; - return unless $shebang =~ /^#!.*?\bperl\b\s*$/; - push @found_scripts, $found; - }, - $dir, - ); - return @found_scripts; -} +# no fake home requested -my @scripts; -do { push @scripts, _find_scripts($_) if -d $_ } - for qw{ bin script scripts }; +my $inc_switch = -d 'blib' ? '-Mblib' : '-Ilib'; -my $plan = scalar(@modules) + scalar(@scripts); -$plan ? (plan tests => $plan) : (plan skip_all => "no tests to run"); +use File::Spec; +use IPC::Open3; +use IO::Handle; -{ - # fake home for cpan-testers - # no fake requested ## local $ENV{HOME} = tempdir( CLEANUP => 1 ); +open my $stdin, '<', File::Spec->devnull or die "can't open devnull: $!"; - like( qx{ $^X -Ilib -e "require $_; print '$_ ok'" }, qr/^\s*$_ ok/s, "$_ loaded ok" ) - for sort @modules; +my @warnings; +for my $lib (@module_files) +{ + # see L<perlfaq8/How can I capture STDERR from an external command?> + my $stderr = IO::Handle->new; - SKIP: { - eval "use Test::Script 1.05; 1;"; - skip "Test::Script needed to test script compilation", scalar(@scripts) if $@; - foreach my $file ( @scripts ) { - my $script = $file; - $script =~ s!.*/!!; - script_compiles( $file, "$script script compiles" ); - } + my $pid = open3($stdin, '>&STDERR', $stderr, $^X, $inc_switch, '-e', "require q[$lib]"); + binmode $stderr, ':crlf' if $^O eq 'MSWin32'; + my @_warnings = <$stderr>; + waitpid($pid, 0); + is($?, 0, "$lib loaded ok"); + + if (@_warnings) + { + warn @_warnings; + push @warnings, @_warnings; } } + + + +is(scalar(@warnings), 0, 'no warnings found') + or diag 'got warnings: ', ( Test::More->can('explain') ? Test::More::explain(\@warnings) : join("\n", '', @warnings) ) if $ENV{AUTHOR_TESTING}; + + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Lingua-EN-Number-IsOrdinal-0.04/t/release-kwalitee.t new/Lingua-EN-Number-IsOrdinal-0.05/t/release-kwalitee.t --- old/Lingua-EN-Number-IsOrdinal-0.04/t/release-kwalitee.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Lingua-EN-Number-IsOrdinal-0.05/t/release-kwalitee.t 2015-03-23 05:06:56.000000000 +0100 @@ -0,0 +1,17 @@ + +BEGIN { + unless ($ENV{RELEASE_TESTING}) { + require Test::More; + Test::More::plan(skip_all => 'these tests are for release candidate testing'); + } +} + +# this test was generated with Dist::Zilla::Plugin::Test::Kwalitee 2.11 +use strict; +use warnings; +use Test::More 0.88; +use Test::Kwalitee 1.21 'kwalitee_ok'; + +kwalitee_ok(); + +done_testing; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Lingua-EN-Number-IsOrdinal-0.04/t/release-pod-syntax.t new/Lingua-EN-Number-IsOrdinal-0.05/t/release-pod-syntax.t --- old/Lingua-EN-Number-IsOrdinal-0.04/t/release-pod-syntax.t 2013-01-14 04:53:35.000000000 +0100 +++ new/Lingua-EN-Number-IsOrdinal-0.05/t/release-pod-syntax.t 2015-03-23 05:06:56.000000000 +0100 @@ -7,9 +7,8 @@ } } +# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. use Test::More; - -eval "use Test::Pod 1.41"; -plan skip_all => "Test::Pod 1.41 required for testing POD" if $@; +use Test::Pod 1.41; all_pod_files_ok();