Hello community,
here is the log from the commit of package perl-List-SomeUtils-XS for openSUSE:Factory checked in at 2017-08-08 12:05:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-List-SomeUtils-XS (Old)
and /work/SRC/openSUSE:Factory/.perl-List-SomeUtils-XS.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-List-SomeUtils-XS"
Tue Aug 8 12:05:37 2017 rev:3 rq:514095 version:0.55
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-List-SomeUtils-XS/perl-List-SomeUtils-XS.changes 2017-06-17 10:21:11.606951214 +0200
+++ /work/SRC/openSUSE:Factory/.perl-List-SomeUtils-XS.new/perl-List-SomeUtils-XS.changes 2017-08-08 12:05:38.273953325 +0200
@@ -1,0 +2,23 @@
+Tue Jul 25 05:44:20 UTC 2017 - coolo@suse.com
+
+- updated to 0.55
+ see /usr/share/doc/packages/perl-List-SomeUtils-XS/Changes
+
+ 0.55 2017-07-23
+
+ - Skip all the tests unless List::SomeUtils 0.56 is installed. This fixes the
+ issue where trying to install the new List::SomeUtils ends up pulling this
+ distribution, which then fails because an older LSU is installed but doesn't
+ export mode(). Reported by John SJ Anderson. GH #1.
+
+-------------------------------------------------------------------
+Sun Jul 23 05:46:03 UTC 2017 - coolo@suse.com
+
+- updated to 0.54
+ see /usr/share/doc/packages/perl-List-SomeUtils-XS/Changes
+
+ 0.54 2017-07-22
+
+ - Added a new function, mode(), requested by Jerrad Pierce. GH #2.
+
+-------------------------------------------------------------------
Old:
----
List-SomeUtils-XS-0.53.tar.gz
New:
----
List-SomeUtils-XS-0.55.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-List-SomeUtils-XS.spec ++++++
--- /var/tmp/diff_new_pack.qeYBv6/_old 2017-08-08 12:05:39.921721241 +0200
+++ /var/tmp/diff_new_pack.qeYBv6/_new 2017-08-08 12:05:39.929720114 +0200
@@ -17,7 +17,7 @@
Name: perl-List-SomeUtils-XS
-Version: 0.53
+Version: 0.55
Release: 0
%define cpan_name List-SomeUtils-XS
Summary: XS implementation for List::SomeUtils
++++++ List-SomeUtils-XS-0.53.tar.gz -> List-SomeUtils-XS-0.55.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/List-SomeUtils-XS-0.53/Changes new/List-SomeUtils-XS-0.55/Changes
--- old/List-SomeUtils-XS-0.53/Changes 2017-06-01 22:03:44.000000000 +0200
+++ new/List-SomeUtils-XS-0.55/Changes 2017-07-23 17:17:03.000000000 +0200
@@ -1,7 +1,21 @@
+0.55 2017-07-23
+
+- Skip all the tests unless List::SomeUtils 0.56 is installed. This fixes the
+ issue where trying to install the new List::SomeUtils ends up pulling this
+ distribution, which then fails because an older LSU is installed but doesn't
+ export mode(). Reported by John SJ Anderson. GH #1.
+
+
+0.54 2017-07-22
+
+- Added a new function, mode(), requested by Jerrad Pierce. GH #2.
+
+
0.53 2017-06-01
- Moved issue tracking to GitHub.
+
0.52 2016-05-06
- Contains XS code changes from List::MoreUtils 0.415 ...
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/List-SomeUtils-XS-0.53/MANIFEST new/List-SomeUtils-XS-0.55/MANIFEST
--- old/List-SomeUtils-XS-0.53/MANIFEST 2017-06-01 22:03:44.000000000 +0200
+++ new/List-SomeUtils-XS-0.55/MANIFEST 2017-07-23 17:17:03.000000000 +0200
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.009.
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.010.
CONTRIBUTING.md
Changes
INSTALL
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/List-SomeUtils-XS-0.53/META.json new/List-SomeUtils-XS-0.55/META.json
--- old/List-SomeUtils-XS-0.53/META.json 2017-06-01 22:03:44.000000000 +0200
+++ new/List-SomeUtils-XS-0.55/META.json 2017-07-23 17:17:03.000000000 +0200
@@ -4,7 +4,7 @@
"Dave Rolsky "
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 6.009, CPAN::Meta::Converter version 2.150010",
+ "generated_by" : "Dist::Zilla version 6.010, CPAN::Meta::Converter version 2.150010",
"license" : [
"artistic_2"
],
@@ -67,6 +67,8 @@
"Exporter" : "0",
"ExtUtils::MakeMaker" : "0",
"File::Spec" : "0",
+ "Scalar::Util" : "0",
+ "Storable" : "0",
"Test::Builder::Module" : "0",
"Test::LeakTrace" : "0",
"Test::More" : "0.96",
@@ -81,7 +83,7 @@
"provides" : {
"List::SomeUtils::XS" : {
"file" : "lib/List/SomeUtils/XS.pm",
- "version" : "0.53"
+ "version" : "0.55"
}
},
"release_status" : "stable",
@@ -96,7 +98,7 @@
"web" : "https://github.com/houseabsolute/List-SomeUtils-XS"
}
},
- "version" : "0.53",
+ "version" : "0.55",
"x_Dist_Zilla" : {
"perl" : {
"version" : "5.024001"
@@ -110,7 +112,7 @@
}
},
"name" : "@DROLSKY/MakeMaker",
- "version" : "6.009"
+ "version" : "6.010"
},
{
"class" : "Dist::Zilla::Plugin::Git::GatherDir",
@@ -141,27 +143,27 @@
{
"class" : "Dist::Zilla::Plugin::ManifestSkip",
"name" : "@DROLSKY/ManifestSkip",
- "version" : "6.009"
+ "version" : "6.010"
},
{
"class" : "Dist::Zilla::Plugin::License",
"name" : "@DROLSKY/License",
- "version" : "6.009"
+ "version" : "6.010"
},
{
"class" : "Dist::Zilla::Plugin::ExecDir",
"name" : "@DROLSKY/ExecDir",
- "version" : "6.009"
+ "version" : "6.010"
},
{
"class" : "Dist::Zilla::Plugin::ShareDir",
"name" : "@DROLSKY/ShareDir",
- "version" : "6.009"
+ "version" : "6.010"
},
{
"class" : "Dist::Zilla::Plugin::Manifest",
"name" : "@DROLSKY/Manifest",
- "version" : "6.009"
+ "version" : "6.010"
},
{
"class" : "Dist::Zilla::Plugin::CheckVersionIncrement",
@@ -171,22 +173,22 @@
{
"class" : "Dist::Zilla::Plugin::TestRelease",
"name" : "@DROLSKY/TestRelease",
- "version" : "6.009"
+ "version" : "6.010"
},
{
"class" : "Dist::Zilla::Plugin::ConfirmRelease",
"name" : "@DROLSKY/ConfirmRelease",
- "version" : "6.009"
+ "version" : "6.010"
},
{
"class" : "Dist::Zilla::Plugin::UploadToCPAN",
"name" : "@DROLSKY/UploadToCPAN",
- "version" : "6.009"
+ "version" : "6.010"
},
{
"class" : "Dist::Zilla::Plugin::VersionFromMainModule",
"name" : "@DROLSKY/VersionFromMainModule",
- "version" : "0.02"
+ "version" : "0.03"
},
{
"class" : "Dist::Zilla::Plugin::Authority",
@@ -196,7 +198,7 @@
{
"class" : "Dist::Zilla::Plugin::AutoPrereqs",
"name" : "@DROLSKY/AutoPrereqs",
- "version" : "6.009"
+ "version" : "6.010"
},
{
"class" : "Dist::Zilla::Plugin::CopyFilesFromBuild",
@@ -221,7 +223,7 @@
{
"class" : "Dist::Zilla::Plugin::MetaResources",
"name" : "@DROLSKY/MetaResources",
- "version" : "6.009"
+ "version" : "6.010"
},
{
"class" : "Dist::Zilla::Plugin::MetaProvides::Package",
@@ -231,13 +233,13 @@
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : "@DROLSKY/MetaProvides::Package/AUTOVIV/:InstallModulesPM",
- "version" : "6.009"
+ "version" : "6.010"
}
],
"include_underscores" : 0
},
"Dist::Zilla::Role::MetaProvider::Provider" : {
- "$Dist::Zilla::Role::MetaProvider::Provider::VERSION" : "2.002003",
+ "$Dist::Zilla::Role::MetaProvider::Provider::VERSION" : "2.002004",
"inherit_missing" : 1,
"inherit_version" : 1,
"meta_noindex" : 1
@@ -258,22 +260,22 @@
{
"class" : "Dist::Zilla::Plugin::MetaConfig",
"name" : "@DROLSKY/MetaConfig",
- "version" : "6.009"
+ "version" : "6.010"
},
{
"class" : "Dist::Zilla::Plugin::MetaJSON",
"name" : "@DROLSKY/MetaJSON",
- "version" : "6.009"
+ "version" : "6.010"
},
{
"class" : "Dist::Zilla::Plugin::MetaYAML",
"name" : "@DROLSKY/MetaYAML",
- "version" : "6.009"
+ "version" : "6.010"
},
{
"class" : "Dist::Zilla::Plugin::NextRelease",
"name" : "@DROLSKY/NextRelease",
- "version" : "6.009"
+ "version" : "6.010"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
@@ -284,7 +286,7 @@
}
},
"name" : "@DROLSKY/Test::More with subtest",
- "version" : "6.009"
+ "version" : "6.010"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
@@ -295,7 +297,7 @@
}
},
"name" : "@DROLSKY/Modules for use with tidyall",
- "version" : "6.009"
+ "version" : "6.010"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
@@ -306,7 +308,7 @@
}
},
"name" : "@DROLSKY/Test::Version which fixes https://github.com/plicease/Test-Version/issues/7",
- "version" : "6.009"
+ "version" : "6.010"
},
{
"class" : "Dist::Zilla::Plugin::PromptIfStale",
@@ -464,7 +466,7 @@
{
"class" : "Dist::Zilla::Plugin::PodSyntaxTests",
"name" : "@DROLSKY/PodSyntaxTests",
- "version" : "6.009"
+ "version" : "6.010"
},
{
"class" : "Dist::Zilla::Plugin::RunExtraTests",
@@ -790,7 +792,7 @@
{
"class" : "Dist::Zilla::Plugin::CPANFile",
"name" : "@DROLSKY/CPANFile",
- "version" : "6.009"
+ "version" : "6.010"
},
{
"class" : "Dist::Zilla::Plugin::PPPort",
@@ -927,7 +929,7 @@
"branch" : null,
"changelog" : "Changes",
"signed" : 0,
- "tag" : "v0.53",
+ "tag" : "v0.55",
"tag_format" : "v%v",
"tag_message" : "v%v"
},
@@ -1022,57 +1024,57 @@
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":InstallModules",
- "version" : "6.009"
+ "version" : "6.010"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":IncModules",
- "version" : "6.009"
+ "version" : "6.010"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":TestFiles",
- "version" : "6.009"
+ "version" : "6.010"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ExtraTestFiles",
- "version" : "6.009"
+ "version" : "6.010"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ExecFiles",
- "version" : "6.009"
+ "version" : "6.010"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":PerlExecFiles",
- "version" : "6.009"
+ "version" : "6.010"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ShareFiles",
- "version" : "6.009"
+ "version" : "6.010"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":MainModule",
- "version" : "6.009"
+ "version" : "6.010"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":AllFiles",
- "version" : "6.009"
+ "version" : "6.010"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":NoFiles",
- "version" : "6.009"
+ "version" : "6.010"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : "@DROLSKY/MetaProvides::Package/AUTOVIV/:InstallModulesPM",
- "version" : "6.009"
+ "version" : "6.010"
}
],
"zilla" : {
@@ -1080,10 +1082,10 @@
"config" : {
"is_trial" : 0
},
- "version" : "6.009"
+ "version" : "6.010"
}
},
"x_authority" : "cpan:DROLSKY",
- "x_serialization_backend" : "Cpanel::JSON::XS version 3.0229"
+ "x_serialization_backend" : "Cpanel::JSON::XS version 3.0233"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/List-SomeUtils-XS-0.53/META.yml new/List-SomeUtils-XS-0.55/META.yml
--- old/List-SomeUtils-XS-0.53/META.yml 2017-06-01 22:03:44.000000000 +0200
+++ new/List-SomeUtils-XS-0.55/META.yml 2017-07-23 17:17:03.000000000 +0200
@@ -7,6 +7,8 @@
Exporter: '0'
ExtUtils::MakeMaker: '0'
File::Spec: '0'
+ Scalar::Util: '0'
+ Storable: '0'
Test::Builder::Module: '0'
Test::LeakTrace: '0'
Test::More: '0.96'
@@ -18,7 +20,7 @@
configure_requires:
ExtUtils::MakeMaker: '0'
dynamic_config: 0
-generated_by: 'Dist::Zilla version 6.009, CPAN::Meta::Converter version 2.150010'
+generated_by: 'Dist::Zilla version 6.010, CPAN::Meta::Converter version 2.150010'
license: artistic_2
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -27,7 +29,7 @@
provides:
List::SomeUtils::XS:
file: lib/List/SomeUtils/XS.pm
- version: '0.53'
+ version: '0.55'
requires:
XSLoader: '0'
perl: '5.006'
@@ -37,7 +39,7 @@
bugtracker: https://github.com/houseabsolute/List-SomeUtils-XS/issues
homepage: http://metacpan.org/release/List-SomeUtils-XS
repository: git://github.com/houseabsolute/List-SomeUtils-XS.git
-version: '0.53'
+version: '0.55'
x_Dist_Zilla:
perl:
version: '5.024001'
@@ -48,7 +50,7 @@
Dist::Zilla::Role::TestRunner:
default_jobs: 1
name: '@DROLSKY/MakeMaker'
- version: '6.009'
+ version: '6.010'
-
class: Dist::Zilla::Plugin::Git::GatherDir
config:
@@ -73,23 +75,23 @@
-
class: Dist::Zilla::Plugin::ManifestSkip
name: '@DROLSKY/ManifestSkip'
- version: '6.009'
+ version: '6.010'
-
class: Dist::Zilla::Plugin::License
name: '@DROLSKY/License'
- version: '6.009'
+ version: '6.010'
-
class: Dist::Zilla::Plugin::ExecDir
name: '@DROLSKY/ExecDir'
- version: '6.009'
+ version: '6.010'
-
class: Dist::Zilla::Plugin::ShareDir
name: '@DROLSKY/ShareDir'
- version: '6.009'
+ version: '6.010'
-
class: Dist::Zilla::Plugin::Manifest
name: '@DROLSKY/Manifest'
- version: '6.009'
+ version: '6.010'
-
class: Dist::Zilla::Plugin::CheckVersionIncrement
name: '@DROLSKY/CheckVersionIncrement'
@@ -97,19 +99,19 @@
-
class: Dist::Zilla::Plugin::TestRelease
name: '@DROLSKY/TestRelease'
- version: '6.009'
+ version: '6.010'
-
class: Dist::Zilla::Plugin::ConfirmRelease
name: '@DROLSKY/ConfirmRelease'
- version: '6.009'
+ version: '6.010'
-
class: Dist::Zilla::Plugin::UploadToCPAN
name: '@DROLSKY/UploadToCPAN'
- version: '6.009'
+ version: '6.010'
-
class: Dist::Zilla::Plugin::VersionFromMainModule
name: '@DROLSKY/VersionFromMainModule'
- version: '0.02'
+ version: '0.03'
-
class: Dist::Zilla::Plugin::Authority
name: '@DROLSKY/Authority'
@@ -117,7 +119,7 @@
-
class: Dist::Zilla::Plugin::AutoPrereqs
name: '@DROLSKY/AutoPrereqs'
- version: '6.009'
+ version: '6.010'
-
class: Dist::Zilla::Plugin::CopyFilesFromBuild
name: '@DROLSKY/CopyFilesFromBuild'
@@ -136,7 +138,7 @@
-
class: Dist::Zilla::Plugin::MetaResources
name: '@DROLSKY/MetaResources'
- version: '6.009'
+ version: '6.010'
-
class: Dist::Zilla::Plugin::MetaProvides::Package
config:
@@ -145,10 +147,10 @@
-
class: Dist::Zilla::Plugin::FinderCode
name: '@DROLSKY/MetaProvides::Package/AUTOVIV/:InstallModulesPM'
- version: '6.009'
+ version: '6.010'
include_underscores: 0
Dist::Zilla::Role::MetaProvider::Provider:
- $Dist::Zilla::Role::MetaProvider::Provider::VERSION: '2.002003'
+ $Dist::Zilla::Role::MetaProvider::Provider::VERSION: '2.002004'
inherit_missing: '1'
inherit_version: '1'
meta_noindex: '1'
@@ -164,19 +166,19 @@
-
class: Dist::Zilla::Plugin::MetaConfig
name: '@DROLSKY/MetaConfig'
- version: '6.009'
+ version: '6.010'
-
class: Dist::Zilla::Plugin::MetaJSON
name: '@DROLSKY/MetaJSON'
- version: '6.009'
+ version: '6.010'
-
class: Dist::Zilla::Plugin::MetaYAML
name: '@DROLSKY/MetaYAML'
- version: '6.009'
+ version: '6.010'
-
class: Dist::Zilla::Plugin::NextRelease
name: '@DROLSKY/NextRelease'
- version: '6.009'
+ version: '6.010'
-
class: Dist::Zilla::Plugin::Prereqs
config:
@@ -184,7 +186,7 @@
phase: test
type: requires
name: '@DROLSKY/Test::More with subtest'
- version: '6.009'
+ version: '6.010'
-
class: Dist::Zilla::Plugin::Prereqs
config:
@@ -192,7 +194,7 @@
phase: develop
type: requires
name: '@DROLSKY/Modules for use with tidyall'
- version: '6.009'
+ version: '6.010'
-
class: Dist::Zilla::Plugin::Prereqs
config:
@@ -200,7 +202,7 @@
phase: develop
type: requires
name: '@DROLSKY/Test::Version which fixes https://github.com/plicease/Test-Version/issues/7'
- version: '6.009'
+ version: '6.010'
-
class: Dist::Zilla::Plugin::PromptIfStale
config:
@@ -343,7 +345,7 @@
-
class: Dist::Zilla::Plugin::PodSyntaxTests
name: '@DROLSKY/PodSyntaxTests'
- version: '6.009'
+ version: '6.010'
-
class: Dist::Zilla::Plugin::RunExtraTests
config:
@@ -595,7 +597,7 @@
-
class: Dist::Zilla::Plugin::CPANFile
name: '@DROLSKY/CPANFile'
- version: '6.009'
+ version: '6.010'
-
class: Dist::Zilla::Plugin::PPPort
name: '@DROLSKY/PPPort'
@@ -701,7 +703,7 @@
branch: ~
changelog: Changes
signed: 0
- tag: v0.53
+ tag: v0.55
tag_format: v%v
tag_message: v%v
Dist::Zilla::Role::Git::Repo:
@@ -769,51 +771,51 @@
-
class: Dist::Zilla::Plugin::FinderCode
name: ':InstallModules'
- version: '6.009'
+ version: '6.010'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':IncModules'
- version: '6.009'
+ version: '6.010'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':TestFiles'
- version: '6.009'
+ version: '6.010'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ExtraTestFiles'
- version: '6.009'
+ version: '6.010'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ExecFiles'
- version: '6.009'
+ version: '6.010'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':PerlExecFiles'
- version: '6.009'
+ version: '6.010'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ShareFiles'
- version: '6.009'
+ version: '6.010'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':MainModule'
- version: '6.009'
+ version: '6.010'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':AllFiles'
- version: '6.009'
+ version: '6.010'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':NoFiles'
- version: '6.009'
+ version: '6.010'
-
class: Dist::Zilla::Plugin::FinderCode
name: '@DROLSKY/MetaProvides::Package/AUTOVIV/:InstallModulesPM'
- version: '6.009'
+ version: '6.010'
zilla:
class: Dist::Zilla::Dist::Builder
config:
is_trial: '0'
- version: '6.009'
+ version: '6.010'
x_authority: cpan:DROLSKY
-x_serialization_backend: 'YAML::Tiny version 1.69'
+x_serialization_backend: 'YAML::Tiny version 1.70'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/List-SomeUtils-XS-0.53/Makefile.PL new/List-SomeUtils-XS-0.55/Makefile.PL
--- old/List-SomeUtils-XS-0.53/Makefile.PL 2017-06-01 22:03:44.000000000 +0200
+++ new/List-SomeUtils-XS-0.55/Makefile.PL 2017-07-23 17:17:03.000000000 +0200
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.009.
+# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.010.
use strict;
use warnings;
@@ -26,6 +26,8 @@
"Exporter" => 0,
"ExtUtils::MakeMaker" => 0,
"File::Spec" => 0,
+ "Scalar::Util" => 0,
+ "Storable" => 0,
"Test::Builder::Module" => 0,
"Test::LeakTrace" => 0,
"Test::More" => "0.96",
@@ -35,7 +37,7 @@
"lib" => 0,
"overload" => 0
},
- "VERSION" => "0.53",
+ "VERSION" => "0.55",
"test" => {
"TESTS" => "t/*.t"
}
@@ -47,6 +49,8 @@
"Exporter" => 0,
"ExtUtils::MakeMaker" => 0,
"File::Spec" => 0,
+ "Scalar::Util" => 0,
+ "Storable" => 0,
"Test::Builder::Module" => 0,
"Test::LeakTrace" => 0,
"Test::More" => "0.96",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/List-SomeUtils-XS-0.53/README.md new/List-SomeUtils-XS-0.55/README.md
--- old/List-SomeUtils-XS-0.53/README.md 2017-06-01 22:03:44.000000000 +0200
+++ new/List-SomeUtils-XS-0.55/README.md 2017-07-23 17:17:03.000000000 +0200
@@ -4,7 +4,7 @@
# VERSION
-version 0.53
+version 0.55
# DESCRIPTION
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/List-SomeUtils-XS-0.53/XS.xs new/List-SomeUtils-XS-0.55/XS.xs
--- old/List-SomeUtils-XS-0.53/XS.xs 2017-06-01 22:03:44.000000000 +0200
+++ new/List-SomeUtils-XS-0.55/XS.xs 2017-07-23 17:17:03.000000000 +0200
@@ -1806,3 +1806,70 @@
}
OUTPUT:
RETVAL
+
+void
+mode (...)
+ PROTOTYPE: @
+ PPCODE:
+ {
+ int i;
+ unsigned int max = 0;
+ unsigned int c = 0;
+ unsigned int modality = 0;
+ SV **args = &PL_stack_base[ax];
+ HV *hv = newHV();
+ SV *tmp = sv_newmortal();
+ HE *he;
+
+ sv_2mortal(newRV_noinc((SV*)hv));
+ if (!items) {
+ if (GIMME_V == G_SCALAR) {
+ mPUSHi(0);
+ PUTBACK;
+ return;
+ }
+ else {
+ XSRETURN_EMPTY;
+ }
+ }
+
+ for (i = 0; i < items; i++) {
+ SvGETMAGIC(args[i]);
+
+ SvSetSV_nosteal(tmp, args[i]);
+ he = hv_fetch_ent(hv, tmp, 0, 0);
+
+ if (NULL == he) {
+ hv_store_ent(hv, tmp, newSViv(1), 0);
+ }
+ else {
+ SV *v = HeVAL(he);
+ IV how_many = SvIVX(v);
+ sv_setiv(v, ++how_many);
+ }
+ }
+
+ hv_iterinit(hv);
+ while (he = hv_iternext(hv)) {
+ c = SvIV(HeVAL(he));
+ if (c > max) {
+ max = c;
+ }
+ }
+
+ i = 0;
+ hv_iterinit(hv);
+ while (he = hv_iternext(hv)) {
+ if (SvIV(HeVAL(he)) == max) {
+ if (GIMME_V == G_SCALAR) {
+ modality++;
+ } else {
+ XPUSHs(HeSVKEY_force(he));
+ }
+ }
+ }
+
+ if (GIMME_V == G_SCALAR) {
+ mXPUSHu(modality);
+ }
+ }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/List-SomeUtils-XS-0.53/cpanfile new/List-SomeUtils-XS-0.55/cpanfile
--- old/List-SomeUtils-XS-0.53/cpanfile 2017-06-01 22:03:44.000000000 +0200
+++ new/List-SomeUtils-XS-0.55/cpanfile 2017-07-23 17:17:03.000000000 +0200
@@ -8,6 +8,8 @@
requires "Exporter" => "0";
requires "ExtUtils::MakeMaker" => "0";
requires "File::Spec" => "0";
+ requires "Scalar::Util" => "0";
+ requires "Storable" => "0";
requires "Test::Builder::Module" => "0";
requires "Test::LeakTrace" => "0";
requires "Test::More" => "0.96";
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/List-SomeUtils-XS-0.53/lib/List/SomeUtils/XS.pm new/List-SomeUtils-XS-0.55/lib/List/SomeUtils/XS.pm
--- old/List-SomeUtils-XS-0.53/lib/List/SomeUtils/XS.pm 2017-06-01 22:03:44.000000000 +0200
+++ new/List-SomeUtils-XS-0.55/lib/List/SomeUtils/XS.pm 2017-07-23 17:17:03.000000000 +0200
@@ -4,7 +4,7 @@
use strict;
use warnings;
-our $VERSION = '0.53';
+our $VERSION = '0.55';
require XSLoader;
XSLoader::load( __PACKAGE__, $VERSION );
@@ -14,22 +14,49 @@
# This list is copied from List::SomeUtils itself and should be updated
# when subs are added.
my @subs = qw(
- any all none notall
- true false
- firstidx lastidx
- insert_after insert_after_string
- apply indexes
- after after_incl before before_incl
- firstval lastval
- each_array each_arrayref
- pairwise natatime
- mesh uniq
- minmax part
+ after
+ after_incl
+ all
+ all_u
+ any
+ any_u
+ apply
+ before
+ before_incl
bsearch
- sort_by nsort_by
- one any_u all_u none_u notall_u one_u
- firstres onlyidx onlyval onlyres lastres
- singleton bsearchidx
+ bsearchidx
+ each_array
+ each_arrayref
+ false
+ firstidx
+ firstres
+ firstval
+ indexes
+ insert_after
+ insert_after_string
+ lastidx
+ lastres
+ lastval
+ mesh
+ minmax
+ mode
+ natatime
+ none
+ none_u
+ notall
+ notall_u
+ nsort_by
+ one
+ one_u
+ onlyidx
+ onlyres
+ onlyval
+ pairwise
+ part
+ singleton
+ sort_by
+ true
+ uniq
);
for my $sub (@subs) {
@@ -55,7 +82,7 @@
=head1 VERSION
-version 0.53
+version 0.55
=head1 DESCRIPTION
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/List-SomeUtils-XS-0.53/t/00-report-prereqs.dd new/List-SomeUtils-XS-0.55/t/00-report-prereqs.dd
--- old/List-SomeUtils-XS-0.53/t/00-report-prereqs.dd 2017-06-01 22:03:44.000000000 +0200
+++ new/List-SomeUtils-XS-0.55/t/00-report-prereqs.dd 2017-07-23 17:17:03.000000000 +0200
@@ -52,6 +52,8 @@
'Exporter' => '0',
'ExtUtils::MakeMaker' => '0',
'File::Spec' => '0',
+ 'Scalar::Util' => '0',
+ 'Storable' => '0',
'Test::Builder::Module' => '0',
'Test::LeakTrace' => '0',
'Test::More' => '0.96',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/List-SomeUtils-XS-0.53/t/Functions.t new/List-SomeUtils-XS-0.55/t/Functions.t
--- old/List-SomeUtils-XS-0.53/t/Functions.t 2017-06-01 22:03:44.000000000 +0200
+++ new/List-SomeUtils-XS-0.55/t/Functions.t 2017-07-23 17:17:03.000000000 +0200
@@ -6,9 +6,9 @@
use Test::More 0.96;
BEGIN {
- eval 'require List::SomeUtils';
+ eval 'use List::SomeUtils 0.56';
if ($@) {
- plan skip_all => 'These tests require that List::SomeUtils already be installed';
+ plan skip_all => 'These tests require that List::SomeUtils 0.56 already be installed';
}
}
BEGIN { $ENV{LIST_SOMEUTILS_IMPLEMENTATION} = 'XS' }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/List-SomeUtils-XS-0.53/t/Import.t new/List-SomeUtils-XS-0.55/t/Import.t
--- old/List-SomeUtils-XS-0.53/t/Import.t 2017-06-01 22:03:44.000000000 +0200
+++ new/List-SomeUtils-XS-0.55/t/Import.t 2017-07-23 17:17:03.000000000 +0200
@@ -6,9 +6,9 @@
use Test::More 0.96;
BEGIN {
- eval 'require List::SomeUtils';
+ eval 'use List::SomeUtils 0.56';
if ($@) {
- plan skip_all => 'These tests require that List::SomeUtils already be installed';
+ plan skip_all => 'These tests require that List::SomeUtils 0.56 already be installed';
}
}
BEGIN { $ENV{LIST_SOMEUTILS_IMPLEMENTATION} = 'XS' }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/List-SomeUtils-XS-0.53/t/ab.t new/List-SomeUtils-XS-0.55/t/ab.t
--- old/List-SomeUtils-XS-0.53/t/ab.t 2017-06-01 22:03:44.000000000 +0200
+++ new/List-SomeUtils-XS-0.55/t/ab.t 2017-07-23 17:17:03.000000000 +0200
@@ -6,9 +6,9 @@
use Test::More 0.96;
BEGIN {
- eval 'require List::SomeUtils';
+ eval 'use List::SomeUtils 0.56';
if ($@) {
- plan skip_all => 'These tests require that List::SomeUtils already be installed';
+ plan skip_all => 'These tests require that List::SomeUtils 0.56 already be installed';
}
}
BEGIN { $ENV{LIST_SOMEUTILS_IMPLEMENTATION} = 'XS' }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/List-SomeUtils-XS-0.53/t/lib/LSU/Test/Functions.pm new/List-SomeUtils-XS-0.55/t/lib/LSU/Test/Functions.pm
--- old/List-SomeUtils-XS-0.53/t/lib/LSU/Test/Functions.pm 2017-06-01 22:03:44.000000000 +0200
+++ new/List-SomeUtils-XS-0.55/t/lib/LSU/Test/Functions.pm 2017-07-23 17:17:03.000000000 +0200
@@ -3,61 +3,65 @@
use strict;
use warnings;
-use Test::More;
-use Test::LSU;
-use Tie::Array ();
-use List::SomeUtils ':all';
-
use Config;
+use List::SomeUtils ':all';
+use Scalar::Util qw( weaken );
+use Storable qw( freeze );
+use Tie::Array ();
-my $have_scalar_util;
-eval "use Scalar::Util qw(); \$have_scalar_util = 1;";
-
-eval "use Storable qw();";
-$@ or Storable->import(qw(freeze));
+use Test::More 0.96;
+use Test::LSU;
# Run all tests
sub run_tests {
- test_any();
- test_all();
- test_none();
- test_notall();
- test_one();
- test_any_u();
- test_all_u();
- test_none_u();
- test_notall_u();
- test_one_u();
- test_true();
- test_false();
- test_firstidx();
- test_lastidx();
- test_onlyidx();
- test_insert_after();
- test_insert_after_string();
- test_apply();
- test_indexes();
- test_before();
- test_before_incl();
- test_after();
- test_after_incl();
- test_firstval();
- test_lastval();
- test_onlyval();
- test_firstres();
- test_lastres();
- test_onlyres();
- test_each_array();
- test_pairwise();
- test_natatime();
- test_zip();
- test_mesh();
- test_uniq();
- test_singleton();
- test_part();
- test_minmax();
- test_bsearch();
- test_bsearchidx();
+ for my $export (
+ qw(
+ any
+ all
+ none
+ notall
+ one
+ any_u
+ all_u
+ none_u
+ notall_u
+ one_u
+ true
+ false
+ firstidx
+ lastidx
+ onlyidx
+ insert_after
+ insert_after_string
+ apply
+ indexes
+ before
+ before_incl
+ after
+ after_incl
+ firstval
+ lastval
+ onlyval
+ firstres
+ lastres
+ onlyres
+ each_array
+ pairwise
+ natatime
+ zip
+ mesh
+ uniq
+ singleton
+ part
+ minmax
+ bsearch
+ bsearchidx
+ mode
+ )
+ ) {
+ my $sub = __PACKAGE__->can( 'test_' . $export );
+ subtest( $export, $sub );
+ }
done_testing();
}
@@ -419,11 +423,10 @@
$lr and is_deeply( \@o, [ 1, 3, 5 ], "indexes/leak: odd" );
$lr and is_deeply( \@e, [ 0, 2, 4 ], "indexes/leak: even" );
- if ($have_scalar_util) {
- my $ref = \( indexes( sub {1}, 123 ) );
- Scalar::Util::weaken($ref);
- is( $ref, undef, "weakened away" );
- }
+ my $ref = \( indexes( sub {1}, 123 ) );
+ weaken($ref);
+ is( $ref, undef, "weakened away" );
+
is_dying( sub { &indexes( 42, 4711 ); } );
}
@@ -1567,4 +1570,105 @@
);
}
+sub test_mode {
+ my @list = ( 1 .. 5 );
+ is_deeply(
+ [ sort { $a <=> $b } mode(@list) ],
+ [ sort @list ],
+ 'mode of list without repeats is the list itself'
+ );
+ is(
+ scalar mode(@list),
+ 5,
+ 'mode returns modality in scalar context'
+ );
+
+ @list = ( 1, 1 .. 5 );
+ is_deeply(
+ [ mode(@list) ],
+ [1],
+ 'mode of list with one repeat is the repeated item'
+ );
+ is(
+ scalar mode(@list),
+ 1,
+ 'mode returns modality in scalar context'
+ );
+
+ @list = ( 1, 1 .. 5, 5 );
+ is_deeply(
+ [ sort { $a <=> $b } mode(@list) ],
+ [ 1, 5 ],
+ 'mode of bimodal list'
+ );
+ is(
+ scalar mode(@list),
+ 2,
+ 'mode returns modality in scalar context'
+ );
+
+ @list = ( 1, 1 .. 5, 5, 9, 9 );
+ is_deeply(
+ [ sort { $a <=> $b } mode(@list) ],
+ [ 1, 5, 9 ],
+ 'mode of trimodal list'
+ );
+
+ @list = ( 1, 1, 1, 1 .. 5, 5, 9, 9 );
+ is_deeply(
+ [ mode(@list) ],
+ [1],
+ 'mode of list with multiple repeats is the most repeated item'
+ );
+
+ @list = ();
+ is_deeply(
+ [ mode() ],
+ [],
+ 'mode of empty list is an empty list'
+ );
+ is(
+ scalar mode(@list),
+ 0,
+ 'mode returns modality in scalar context'
+ );
+
+ @list = qw( a a b c d );
+ is_deeply(
+ [ mode(@list) ],
+ ['a'],
+ 'mode of list of strings'
+ );
+
+ my $foo1 = Overloaded->new('foo');
+ my $foo2 = Overloaded->new('foo');
+ my $bar = Overloaded->new('bar');
+
+ @list = ( $foo1, $foo2, $bar );
+ is_deeply(
+ [ sort( mode(@list) ) ],
+ ['foo'],
+ 'objects passed to mode are stringified'
+ );
+
+ leak_free_ok(
+ mode => sub {
+ my @mode = mode(qw( a b c a b a b ));
+ my $modality = mode(qw( a b c a b a b ));
+ @mode = mode();
+ $modality = mode();
+ }
+ );
+}
+
+{
+ package Overloaded;
+ use overload q{""} => sub { $_[0]->{string} };
+
+ sub new {
+ my $class = shift;
+ return bless { string => shift }, $class;
+ }
+}
+
1;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/List-SomeUtils-XS-0.53/t/xs-only.t new/List-SomeUtils-XS-0.55/t/xs-only.t
--- old/List-SomeUtils-XS-0.53/t/xs-only.t 2017-06-01 22:03:44.000000000 +0200
+++ new/List-SomeUtils-XS-0.55/t/xs-only.t 2017-07-23 17:17:03.000000000 +0200
@@ -5,12 +5,13 @@
use Test::Warnings 0.006;
BEGIN {
- eval 'require List::SomeUtils';
+ eval 'use List::SomeUtils 0.56';
if ($@) {
- plan skip_all =>
- 'These tests require that List::SomeUtils already be installed';
+ plan skip_all => 'These tests require that List::SomeUtils 0.56 already be installed';
}
+}
+BEGIN {
$^W++;
$ENV{LIST_SOMEUTILS_IMPLEMENTATION} = 'XS';
}