Hello community,
here is the log from the commit of package perl-String-ToIdentifier-EN for
openSUSE:Factory checked in at 2018-03-07 10:34:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-String-ToIdentifier-EN (Old)
and /work/SRC/openSUSE:Factory/.perl-String-ToIdentifier-EN.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-String-ToIdentifier-EN"
Wed Mar 7 10:34:43 2018 rev:2 rq:582482 version:0.12
Changes:
--------
---
/work/SRC/openSUSE:Factory/perl-String-ToIdentifier-EN/perl-String-ToIdentifier-EN.changes
2015-02-16 21:05:37.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.perl-String-ToIdentifier-EN.new/perl-String-ToIdentifier-EN.changes
2018-03-07 10:34:46.450269593 +0100
@@ -1,0 +2,9 @@
+Tue Feb 27 07:00:04 UTC 2018 - [email protected]
+
+- updated to 0.12
+ see /usr/share/doc/packages/perl-String-ToIdentifier-EN/Changes
+
+ 0.12 2018-02-26 04:04:09
+ - re-release dist with updated dist files gh#2
+
+-------------------------------------------------------------------
Old:
----
String-ToIdentifier-EN-0.11.tar.gz
New:
----
String-ToIdentifier-EN-0.12.tar.gz
cpanspec.yml
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-String-ToIdentifier-EN.spec ++++++
--- /var/tmp/diff_new_pack.Vn34Vz/_old 2018-03-07 10:34:47.722223713 +0100
+++ /var/tmp/diff_new_pack.Vn34Vz/_new 2018-03-07 10:34:47.722223713 +0100
@@ -1,7 +1,7 @@
#
# spec file for package perl-String-ToIdentifier-EN
#
-# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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,37 +17,36 @@
Name: perl-String-ToIdentifier-EN
-Version: 0.11
+Version: 0.12
Release: 0
%define cpan_name String-ToIdentifier-EN
Summary: Convert Strings to English Program Identifiers
-License: Artistic-1.0 or GPL-1.0+
+License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/String-ToIdentifier-EN/
-Source:
http://www.cpan.org/authors/id/R/RK/RKITOVER/%{cpan_name}-%{version}.tar.gz
+Source0:
https://cpan.metacpan.org/authors/id/R/RK/RKITOVER/%{cpan_name}-%{version}.tar.gz
+Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
-BuildRequires: perl(Lingua::EN::Inflect::Phrase) >= 0.07
-BuildRequires: perl(Test::More) >= 0.92
-BuildRequires: perl(Text::Unidecode) >= 0.04
-BuildRequires: perl(namespace::clean) >= 0.20
-Requires: perl(Lingua::EN::Inflect::Phrase) >= 0.07
-Requires: perl(Text::Unidecode) >= 0.04
-Requires: perl(namespace::clean) >= 0.20
+BuildRequires: perl(Lingua::EN::Inflect::Phrase)
+BuildRequires: perl(Text::Unidecode)
+BuildRequires: perl(namespace::clean)
+Requires: perl(Lingua::EN::Inflect::Phrase)
+Requires: perl(Text::Unidecode)
+Requires: perl(namespace::clean)
%{perl_requires}
%description
-This module provides a utility method, the /to_identifier manpage for
-converting an arbitrary string into a readable representation using the
-ASCII subset of '\w' for use as an identifier in a computer program. The
-intent is to make unique identifier names from which the content of the
-original string can be easily inferred by a human just by reading the
-identifier.
+This module provides a utility method, to_identifier for converting an
+arbitrary string into a readable representation using the ASCII subset of
+'\w' for use as an identifier in a computer program. The intent is to make
+unique identifier names from which the content of the original string can
+be easily inferred by a human just by reading the identifier.
-If you need the full set of '\w' including Unicode, see the subclass the
-String::ToIdentifier::EN::Unicode manpage.
+If you need the full set of '\w' including Unicode, see the subclass
+String::ToIdentifier::EN::Unicode.
Currently, this process is one way only, and will likely remain this way.
@@ -74,6 +73,7 @@
%files -f %{name}.files
%defattr(-,root,root,755)
-%doc Changes LICENSE README
+%doc Changes README
+%license LICENSE
%changelog
++++++ String-ToIdentifier-EN-0.11.tar.gz -> String-ToIdentifier-EN-0.12.tar.gz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/String-ToIdentifier-EN-0.11/Changes
new/String-ToIdentifier-EN-0.12/Changes
--- old/String-ToIdentifier-EN-0.11/Changes 2013-08-28 01:00:50.000000000
+0200
+++ new/String-ToIdentifier-EN-0.12/Changes 2018-02-26 10:04:12.000000000
+0100
@@ -1,5 +1,8 @@
Revision history for String::ToIdentifier::EN
+0.12 2018-02-26 04:04:09
+ - re-release dist with updated dist files gh#2
+
0.11 2013-08-27 19:00:41
- POD typo fixes from dsteinbrunner #1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/String-ToIdentifier-EN-0.11/LICENSE
new/String-ToIdentifier-EN-0.12/LICENSE
--- old/String-ToIdentifier-EN-0.11/LICENSE 2013-08-28 01:00:50.000000000
+0200
+++ new/String-ToIdentifier-EN-0.12/LICENSE 2018-02-26 10:04:12.000000000
+0100
@@ -1,4 +1,4 @@
-This software is copyright (c) 2013 by Rafael Kitover.
+This software is copyright (c) 2018 by Rafael Kitover.
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,7 +12,7 @@
--- The GNU General Public License, Version 1, February 1989 ---
-This software is Copyright (c) 2013 by Rafael Kitover.
+This software is Copyright (c) 2018 by Rafael Kitover.
This is free software, licensed under:
@@ -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.
@@ -272,7 +272,7 @@
--- The Artistic License 1.0 ---
-This software is Copyright (c) 2013 by Rafael Kitover.
+This software is Copyright (c) 2018 by Rafael Kitover.
This is free software, licensed under:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/String-ToIdentifier-EN-0.11/MANIFEST
new/String-ToIdentifier-EN-0.12/MANIFEST
--- old/String-ToIdentifier-EN-0.11/MANIFEST 2013-08-28 01:00:50.000000000
+0200
+++ new/String-ToIdentifier-EN-0.12/MANIFEST 2018-02-26 10:04:12.000000000
+0100
@@ -1,3 +1,4 @@
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest
v6.010.
Changes
LICENSE
MANIFEST
@@ -12,5 +13,5 @@
t/00_basic.t
t/10_ascii.t
t/20_capitalization.t
+t/author-pod-syntax.t
t/lib/TestString.pm
-t/release-pod-syntax.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/String-ToIdentifier-EN-0.11/META.json
new/String-ToIdentifier-EN-0.12/META.json
--- old/String-ToIdentifier-EN-0.11/META.json 2013-08-28 01:00:50.000000000
+0200
+++ new/String-ToIdentifier-EN-0.12/META.json 2018-02-26 10:04:12.000000000
+0100
@@ -1,16 +1,16 @@
{
"abstract" : "Convert Strings to English Program Identifiers",
"author" : [
- "Rafael Kitover <[email protected]>"
+ "Rafael Kitover <[email protected]>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 4.300036, CPAN::Meta::Converter
version 2.131560",
+ "generated_by" : "Dist::Zilla version 6.010, CPAN::Meta::Converter version
2.150010",
"license" : [
"perl_5"
],
"meta-spec" : {
"url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
- "version" : "2"
+ "version" : 2
},
"name" : "String-ToIdentifier-EN",
"no_index" : {
@@ -21,7 +21,7 @@
"prereqs" : {
"configure" : {
"requires" : {
- "ExtUtils::MakeMaker" : "6.30"
+ "ExtUtils::MakeMaker" : "0"
}
},
"develop" : {
@@ -44,8 +44,9 @@
},
"test" : {
"requires" : {
- "File::Find" : "0",
- "File::Temp" : "0",
+ "File::Spec" : "0",
+ "IO::Handle" : "0",
+ "IPC::Open3" : "0",
"Test::More" : "0",
"lib" : "0",
"utf8" : "0"
@@ -68,7 +69,8 @@
"web" : "http://github.com/rkitover/string-toidentifier-en"
}
},
- "version" : "0.11",
- "x_authority" : "cpan:RKITOVER"
+ "version" : "0.12",
+ "x_authority" : "cpan:AVAR",
+ "x_serialization_backend" : "Cpanel::JSON::XS version 3.0239"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/String-ToIdentifier-EN-0.11/META.yml
new/String-ToIdentifier-EN-0.12/META.yml
--- old/String-ToIdentifier-EN-0.11/META.yml 2013-08-28 01:00:50.000000000
+0200
+++ new/String-ToIdentifier-EN-0.12/META.yml 2018-02-26 10:04:12.000000000
+0100
@@ -1,39 +1,41 @@
---
abstract: 'Convert Strings to English Program Identifiers'
author:
- - 'Rafael Kitover <[email protected]>'
+ - 'Rafael Kitover <[email protected]>'
build_requires:
- File::Find: 0
- File::Temp: 0
- Test::More: 0
- lib: 0
- utf8: 0
+ File::Spec: '0'
+ IO::Handle: '0'
+ IPC::Open3: '0'
+ Test::More: '0'
+ lib: '0'
+ utf8: '0'
configure_requires:
- ExtUtils::MakeMaker: 6.30
+ ExtUtils::MakeMaker: '0'
dynamic_config: 0
-generated_by: 'Dist::Zilla version 4.300036, CPAN::Meta::Converter version
2.131560'
+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
+ version: '1.4'
name: String-ToIdentifier-EN
no_index:
directory:
- t
requires:
- Exporter: 0
- Lingua::EN::Inflect::Phrase: 0
- Text::Unidecode: 0
- Unicode::UCD: 0
- base: 0
- namespace::clean: 0
- perl: 5.008001
- strict: 0
- warnings: 0
+ Exporter: '0'
+ Lingua::EN::Inflect::Phrase: '0'
+ Text::Unidecode: '0'
+ Unicode::UCD: '0'
+ base: '0'
+ namespace::clean: '0'
+ perl: '5.008001'
+ strict: '0'
+ warnings: '0'
resources:
bugtracker:
https://rt.cpan.org/Public/Dist/Display.html?Name=String-ToIdentifier-EN
homepage: http://metacpan.org/release/String-ToIdentifier-EN
license: http://dev.perl.org/licenses/
repository: git://github.com/rkitover/string-toidentifier-en.git
-version: 0.11
-x_authority: cpan:RKITOVER
+version: '0.12'
+x_authority: cpan:AVAR
+x_serialization_backend: 'YAML::Tiny version 1.70'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/String-ToIdentifier-EN-0.11/Makefile.PL
new/String-ToIdentifier-EN-0.12/Makefile.PL
--- old/String-ToIdentifier-EN-0.11/Makefile.PL 2013-08-28 01:00:50.000000000
+0200
+++ new/String-ToIdentifier-EN-0.12/Makefile.PL 2018-02-26 10:04:12.000000000
+0100
@@ -1,23 +1,20 @@
-
+# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker
v6.010.
use strict;
use warnings;
use 5.008001;
-use ExtUtils::MakeMaker 6.30;
-
-
+use ExtUtils::MakeMaker;
my %WriteMakefileArgs = (
"ABSTRACT" => "Convert Strings to English Program Identifiers",
- "AUTHOR" => "Rafael Kitover <rkitover\@cpan.org>",
- "BUILD_REQUIRES" => {},
+ "AUTHOR" => "Rafael Kitover <rkitover\@gmail.com>",
"CONFIGURE_REQUIRES" => {
- "ExtUtils::MakeMaker" => "6.30"
+ "ExtUtils::MakeMaker" => 0
},
"DISTNAME" => "String-ToIdentifier-EN",
- "EXE_FILES" => [],
"LICENSE" => "perl",
+ "MIN_PERL_VERSION" => "5.008001",
"NAME" => "String::ToIdentifier::EN",
"PREREQ_PM" => {
"Exporter" => 0,
@@ -30,49 +27,45 @@
"warnings" => 0
},
"TEST_REQUIRES" => {
- "File::Find" => 0,
- "File::Temp" => 0,
+ "File::Spec" => 0,
+ "IO::Handle" => 0,
+ "IPC::Open3" => 0,
"Test::More" => 0,
"lib" => 0,
"utf8" => 0
},
- "VERSION" => "0.11",
+ "VERSION" => "0.12",
"test" => {
"TESTS" => "t/*.t"
}
);
-unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
- my $tr = delete $WriteMakefileArgs{TEST_REQUIRES};
- my $br = $WriteMakefileArgs{BUILD_REQUIRES};
- for my $mod ( keys %$tr ) {
- if ( exists $br->{$mod} ) {
- $br->{$mod} = $tr->{$mod} if $tr->{$mod} > $br->{$mod};
- }
- else {
- $br->{$mod} = $tr->{$mod};
- }
- }
-}
+my %FallbackPrereqs = (
+ "Exporter" => 0,
+ "File::Spec" => 0,
+ "IO::Handle" => 0,
+ "IPC::Open3" => 0,
+ "Lingua::EN::Inflect::Phrase" => 0,
+ "Test::More" => 0,
+ "Text::Unidecode" => 0,
+ "Unicode::UCD" => 0,
+ "base" => 0,
+ "lib" => 0,
+ "namespace::clean" => 0,
+ "strict" => 0,
+ "utf8" => 0,
+ "warnings" => 0
+);
-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};
- }
- }
+
+unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
+ delete $WriteMakefileArgs{TEST_REQUIRES};
+ delete $WriteMakefileArgs{BUILD_REQUIRES};
+ $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}
delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
WriteMakefile(%WriteMakefileArgs);
-
-
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/String-ToIdentifier-EN-0.11/README
new/String-ToIdentifier-EN-0.12/README
--- old/String-ToIdentifier-EN-0.11/README 2013-08-28 01:00:50.000000000
+0200
+++ new/String-ToIdentifier-EN-0.12/README 2018-02-26 10:04:12.000000000
+0100
@@ -1,11 +1,13 @@
NAME
+
String::ToIdentifier::EN - Convert Strings to English Program
Identifiers
SYNOPSIS
+
use utf8;
use String::ToIdentifier::EN 'to_identifier';
-
+
to_identifier 'foo-bar'; # fooDashBar
to_identifier 'foo-bar', '_'; # foo_dash_bar
to_identifier 'foo.bar', '_'; # foo_dot_bar
@@ -13,7 +15,7 @@
to_identifier "foo\x00bar"; # fooNullCharBar
to_identifier "foo\x00\x00bar"; # foo2NullCharsBar
to_identifier "foo\x00\x00bar", '_'; # foo_2_null_chars_bar
-
+
{
no utf8;
to_identifier "foo\xFF\xFFbar.baz"; # foo_2_0xFF_BarDotBaz
@@ -21,81 +23,61 @@
}
DESCRIPTION
- This module provides a utility method, "to_identifier" for converting an
- arbitrary string into a readable representation using the ASCII subset
- of "\w" for use as an identifier in a computer program. The intent is to
- make unique identifier names from which the content of the original
- string can be easily inferred by a human just by reading the identifier.
- If you need the full set of "\w" including Unicode, see the subclass
+ This module provides a utility method, "to_identifier" for converting
+ an arbitrary string into a readable representation using the ASCII
+ subset of \w for use as an identifier in a computer program. The intent
+ is to make unique identifier names from which the content of the
+ original string can be easily inferred by a human just by reading the
+ identifier.
+
+ If you need the full set of \w including Unicode, see the subclass
String::ToIdentifier::EN::Unicode.
Currently, this process is one way only, and will likely remain this
way.
The default is to create camelCase identifiers, or you may pass in a
- separator char of your choice such as "_".
+ separator char of your choice such as _.
- Binary char groups will be separated by "_" even in camelCase
- identifiers to make them easier to read, e.g.: "foo_2_0xFF_Bar".
+ Binary char groups will be separated by _ even in camelCase identifiers
+ to make them easier to read, e.g.: foo_2_0xFF_Bar.
EXPORT
+
Optionally exports the "to_identifier" function.
SUBROUTINES
- to_identifier
+
+ to_identifier
+
Takes the string to be converted to an identifier, and optionally a
- separator char such as "_". If a separator char is not provided, a
+ separator char such as _. If a separator char is not provided, a
camelCase identifier will be returned.
METHODS
- string_to_identifier
+
+ string_to_identifier
+
The class method version of "to_identifier", if you want to use the
object oriented interface.
SEE ALSO
+
String::ToIdentifier::EN::Unicode, Text::Unidecode,
Lingua::EN::Inflect::Phrase
AUTHOR
- Rafael Kitover, "<[email protected]>"
-BUGS
- Please report any bugs or feature requests to
- "bug-string-toidentifier-en at rt.cpan.org", or through the web
- interface at
- <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=String-ToIdentifier-EN>.
- I will be notified, and then you'll automatically be notified of
- progress on your bug as I make changes.
+ Rafael Kitover, <[email protected]>
REPOSITORY
- <http://github.com/rkitover/string-toidentifier-en>
-SUPPORT
- More information on this module is available at:
-
- * RT: CPAN's request tracker (report bugs here)
-
- <http://rt.cpan.org/NoAuth/Bugs.html?Dist=String-ToIdentifier-EN>
-
- * AnnoCPAN: Annotated CPAN documentation
-
- <http://annocpan.org/dist/String-ToIdentifier-EN>
-
- * CPAN Ratings
-
- <http://cpanratings.perl.org/d/String-ToIdentifier-EN>
-
- * MetaCPAN
-
- <https://metacpan.org/module/String::ToIdentifier::EN>
-
- * Search CPAN
-
- <http://search.cpan.org/dist/String-ToIdentifier-EN/>
+ http://github.com/rkitover/string-toidentifier-en
LICENSE AND COPYRIGHT
- Copyright (c) 2011 Rafael Kitover <[email protected]>.
+
+ Copyright (c) 2018 Rafael Kitover <[email protected]>.
This program is free software; you can redistribute it and/or modify it
under the terms of either: the GNU General Public License as published
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/String-ToIdentifier-EN-0.11/dist.ini
new/String-ToIdentifier-EN-0.12/dist.ini
--- old/String-ToIdentifier-EN-0.11/dist.ini 2013-08-28 01:00:50.000000000
+0200
+++ new/String-ToIdentifier-EN-0.12/dist.ini 2018-02-26 10:04:12.000000000
+0100
@@ -1,12 +1,11 @@
name = String-ToIdentifier-EN
-author = Rafael Kitover <[email protected]>
+author = Rafael Kitover <[email protected]>
license = Perl_5
copyright_holder = Rafael Kitover
-copyright_year = 2013
+copyright_year = 2018
[@AVAR]
dist = String-ToIdentifier-EN
bugtracker = rt
-authority = cpan:RKITOVER
github_user = rkitover
install_command = cpanm .
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/String-ToIdentifier-EN-0.11/lib/String/ToIdentifier/EN/Unicode.pm
new/String-ToIdentifier-EN-0.12/lib/String/ToIdentifier/EN/Unicode.pm
--- old/String-ToIdentifier-EN-0.11/lib/String/ToIdentifier/EN/Unicode.pm
2013-08-28 01:00:50.000000000 +0200
+++ new/String-ToIdentifier-EN-0.12/lib/String/ToIdentifier/EN/Unicode.pm
2018-02-26 10:04:12.000000000 +0100
@@ -1,11 +1,6 @@
package String::ToIdentifier::EN::Unicode;
-BEGIN {
- $String::ToIdentifier::EN::Unicode::AUTHORITY = 'cpan:RKITOVER';
-}
-{
- $String::ToIdentifier::EN::Unicode::VERSION = '0.11';
-}
-
+our $AUTHORITY = 'cpan:AVAR';
+$String::ToIdentifier::EN::Unicode::VERSION = '0.12';
use strict;
use warnings;
use base 'String::ToIdentifier::EN';
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/String-ToIdentifier-EN-0.11/lib/String/ToIdentifier/EN.pm
new/String-ToIdentifier-EN-0.12/lib/String/ToIdentifier/EN.pm
--- old/String-ToIdentifier-EN-0.11/lib/String/ToIdentifier/EN.pm
2013-08-28 01:00:50.000000000 +0200
+++ new/String-ToIdentifier-EN-0.12/lib/String/ToIdentifier/EN.pm
2018-02-26 10:04:12.000000000 +0100
@@ -1,11 +1,6 @@
package String::ToIdentifier::EN;
-BEGIN {
- $String::ToIdentifier::EN::AUTHORITY = 'cpan:RKITOVER';
-}
-{
- $String::ToIdentifier::EN::VERSION = '0.11';
-}
-
+our $AUTHORITY = 'cpan:AVAR';
+$String::ToIdentifier::EN::VERSION = '0.12';
use 5.008001;
use strict;
use warnings;
@@ -296,51 +291,15 @@
=head1 AUTHOR
-Rafael Kitover, C<< <[email protected]> >>
-
-=head1 BUGS
-
-Please report any bugs or feature requests to C<bug-string-toidentifier-en at
-rt.cpan.org>, or through the web interface at
-L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=String-ToIdentifier-EN>. I
-will be notified, and then you'll automatically be notified of progress on your
-bug as I make changes.
+Rafael Kitover, C<< <[email protected]> >>
=head1 REPOSITORY
L<http://github.com/rkitover/string-toidentifier-en>
-=head1 SUPPORT
-
-More information on this module is available at:
-
-=over 4
-
-=item * RT: CPAN's request tracker (report bugs here)
-
-L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=String-ToIdentifier-EN>
-
-=item * AnnoCPAN: Annotated CPAN documentation
-
-L<http://annocpan.org/dist/String-ToIdentifier-EN>
-
-=item * CPAN Ratings
-
-L<http://cpanratings.perl.org/d/String-ToIdentifier-EN>
-
-=item * MetaCPAN
-
-L<https://metacpan.org/module/String::ToIdentifier::EN>
-
-=item * Search CPAN
-
-L<http://search.cpan.org/dist/String-ToIdentifier-EN/>
-
-=back
-
=head1 LICENSE AND COPYRIGHT
-Copyright (c) 2011 Rafael Kitover <[email protected]>.
+Copyright (c) 2018 Rafael Kitover <[email protected]>.
This program is free software; you can redistribute it and/or modify it
under the terms of either: the GNU General Public License as published
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/String-ToIdentifier-EN-0.11/t/00-compile.t
new/String-ToIdentifier-EN-0.12/t/00-compile.t
--- old/String-ToIdentifier-EN-0.11/t/00-compile.t 2013-08-28
01:00:50.000000000 +0200
+++ new/String-ToIdentifier-EN-0.12/t/00-compile.t 2018-02-26
10:04:12.000000000 +0100
@@ -1,74 +1,61 @@
-#!perl
-
+use 5.006;
use strict;
use warnings;
+# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.058
+
use Test::More;
+plan tests => 2 + ($ENV{AUTHOR_TESTING} ? 1 : 0);
+
+my @module_files = (
+ 'String/ToIdentifier/EN.pm',
+ 'String/ToIdentifier/EN/Unicode.pm'
+);
+
-use File::Find;
-use File::Temp qw{ tempdir };
+# no fake home requested
-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 @switches = (
+ -d 'blib' ? '-Mblib' : '-Ilib',
);
-sub _find_scripts {
- my $dir = shift @_;
+use File::Spec;
+use IPC::Open3;
+use IO::Handle;
- 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,
- );
+open my $stdin, '<', File::Spec->devnull or die "can't open devnull: $!";
- return @found_scripts;
-}
+my @warnings;
+for my $lib (@module_files)
+{
+ # see L<perlfaq8/How can I capture STDERR from an external command?>
+ my $stderr = IO::Handle->new;
-my @scripts;
-do { push @scripts, _find_scripts($_) if -d $_ }
- for qw{ bin script scripts };
+ diag('Running: ', join(', ', map { my $str = $_; $str =~ s/'/\\'/g; q{'} .
$str . q{'} }
+ $^X, @switches, '-e', "require q[$lib]"))
+ if $ENV{PERL_COMPILE_TEST_DEBUG};
+
+ my $pid = open3($stdin, '>&STDERR', $stderr, $^X, @switches, '-e',
"require q[$lib]");
+ binmode $stderr, ':crlf' if $^O eq 'MSWin32';
+ my @_warnings = <$stderr>;
+ waitpid($pid, 0);
+ is($?, 0, "$lib loaded ok");
+
+ shift @_warnings if @_warnings and $_warnings[0] =~ /^Using .*\bblib/
+ and not eval { +require blib; blib->VERSION('1.01') };
+
+ if (@_warnings)
+ {
+ warn @_warnings;
+ push @warnings, @_warnings;
+ }
+}
-my $plan = scalar(@modules) + scalar(@scripts);
-$plan ? (plan tests => $plan) : (plan skip_all => "no tests to run");
-{
- # fake home for cpan-testers
- # no fake requested ## local $ENV{HOME} = tempdir( CLEANUP => 1 );
- like( qx{ $^X -Ilib -e "require $_; print '$_ ok'" }, qr/^\s*$_ ok/s, "$_
loaded ok" )
- for sort @modules;
+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};
- 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" );
- }
- }
-}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/String-ToIdentifier-EN-0.11/t/author-pod-syntax.t
new/String-ToIdentifier-EN-0.12/t/author-pod-syntax.t
--- old/String-ToIdentifier-EN-0.11/t/author-pod-syntax.t 1970-01-01
01:00:00.000000000 +0100
+++ new/String-ToIdentifier-EN-0.12/t/author-pod-syntax.t 2018-02-26
10:04:12.000000000 +0100
@@ -0,0 +1,15 @@
+#!perl
+
+BEGIN {
+ unless ($ENV{AUTHOR_TESTING}) {
+ print qq{1..0 # SKIP these tests are for testing by the author\n};
+ exit
+ }
+}
+
+# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests.
+use strict; use warnings;
+use Test::More;
+use Test::Pod 1.41;
+
+all_pod_files_ok();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/String-ToIdentifier-EN-0.11/t/release-pod-syntax.t
new/String-ToIdentifier-EN-0.12/t/release-pod-syntax.t
--- old/String-ToIdentifier-EN-0.11/t/release-pod-syntax.t 2013-08-28
01:00:50.000000000 +0200
+++ new/String-ToIdentifier-EN-0.12/t/release-pod-syntax.t 1970-01-01
01:00:00.000000000 +0100
@@ -1,15 +0,0 @@
-#!perl
-
-BEGIN {
- unless ($ENV{RELEASE_TESTING}) {
- require Test::More;
- Test::More::plan(skip_all => 'these tests are for release candidate
testing');
- }
-}
-
-use Test::More;
-
-eval "use Test::Pod 1.41";
-plan skip_all => "Test::Pod 1.41 required for testing POD" if $@;
-
-all_pod_files_ok();
++++++ 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