Hello community, here is the log from the commit of package perl-Config-Tiny for openSUSE:Factory checked in at 2019-08-07 13:55:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Config-Tiny (Old) and /work/SRC/openSUSE:Factory/.perl-Config-Tiny.new.9556 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "perl-Config-Tiny" Wed Aug 7 13:55:54 2019 rev:17 rq:720161 version:2.24 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Config-Tiny/perl-Config-Tiny.changes 2017-10-11 23:02:50.492990257 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Config-Tiny.new.9556/perl-Config-Tiny.changes 2019-08-07 13:55:57.844856464 +0200 @@ -1,0 +2,18 @@ +Thu Aug 1 08:37:37 UTC 2019 - Stephan Kulow <coolo@suse.com> + +- Update to 0.24 + - Delete from caveats in documentation where it used to say: + 'Config::Tiny will only recognize the first time an option is set in a config file.' + 'Any further attempts to set the same option later in the config file are ignored.' + In reality the code uses the 2nd and subsequent values to overwrite earlier values. + - Make this topic a new FAQ. + - Add corresponding test t/06.repeat.key.t. + - Update POD to clarify trailing comment options. + - Add corresponding test t/07.trailing.comment.t. + - Romanize Gregory Kidrenko's name so Config::IniFiles does not get 'Wide char in print'. + - Move xt/pod.t to xt/author/pod.t. + - Adopt new repo structure. See + http://savage.net.au/Ron/html/My.Workflow.for.Building.Distros.html. + - Move require 5.008001 from Tiny.pm into Makefile.PL. + +------------------------------------------------------------------- Old: ---- Config-Tiny-2.23.tgz New: ---- Config-Tiny-2.24.tgz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Config-Tiny.spec ++++++ --- /var/tmp/diff_new_pack.acnZKJ/_old 2019-08-07 13:55:59.196856449 +0200 +++ /var/tmp/diff_new_pack.acnZKJ/_new 2019-08-07 13:55:59.200856449 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-Config-Tiny # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -12,16 +12,16 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: perl-Config-Tiny -Version: 2.23 +Version: 2.24 Release: 0 %define cpan_name Config-Tiny Summary: Read/Write .ini style files with as little code as possible -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/Config-Tiny/ Source0: https://cpan.metacpan.org/authors/id/R/RS/RSAVAGE/%{cpan_name}-%{version}.tgz ++++++ Config-Tiny-2.23.tgz -> Config-Tiny-2.24.tgz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-Tiny-2.23/.travis.yml new/Config-Tiny-2.24/.travis.yml --- old/Config-Tiny-2.23/.travis.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/Config-Tiny-2.24/.travis.yml 2018-01-20 00:38:04.000000000 +0100 @@ -0,0 +1,12 @@ +language: perl +perl: + - "5.26" + - "5.24" + - "5.22" + - "5.20" + - "5.18" + - "5.16" + - "5.14" + - "5.12" + - "5.10" + - "5.8" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-Tiny-2.23/Changelog.ini new/Config-Tiny-2.24/Changelog.ini --- old/Config-Tiny-2.23/Changelog.ini 2015-10-14 00:45:44.000000000 +0200 +++ new/Config-Tiny-2.24/Changelog.ini 2019-06-17 06:30:13.000000000 +0200 @@ -1,7 +1,25 @@ [Module] Name=Config-Tiny: -Changelog.Creator=Module::Metadata::Changes V 2.05 -Changelog.Parser=Config::IniFiles V 2.83 +Changelog.Creator=Module::Metadata::Changes V 2.12 +Changelog.Parser=Config::IniFiles V 2.94 + +[V 2.24] +Date=2019-06-11T15:30:00 +Comments= <<EOT +- Delete from caveats in documentation where it used to say: +'Config::Tiny will only recognize the first time an option is set in a config file.' +'Any further attempts to set the same option later in the config file are ignored.' +In reality the code uses the 2nd and subsequent values to overwrite earlier values. +- Make this topic a new FAQ. +- Add corresponding test t/06.repeat.key.t. +- Update POD to clarify trailing comment options. +- Add corresponding test t/07.trailing.comment.t. +- Romanize Gregory Kidrenko's name so Config::IniFiles does not get 'Wide char in print'. +- Move xt/pod.t to xt/author/pod.t. +- Adopt new repo structure. See +http://savage.net.au/Ron/html/My.Workflow.for.Building.Distros.html. +- Move require 5.008001 from Tiny.pm into Makefile.PL. +EOT [V 2.23] Date=2015-10-14T09:11:00 @@ -9,7 +27,7 @@ - Add the utf8 BOM to this file. Let's hope the CPAN toolchain can cope. If it can't, another version of the code will have to be released. - Fix read() and write() so they work on files called '0' (zero). See RT#107754. -Many thanx to Григорий Кудренко for the report and patch. +Many thanx to Gregory Kidrenko for the report and patch. - Add t/05.zero.t and t/0 to test the new code. - Reformat the source slightly. EOT diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-Tiny-2.23/Changes new/Config-Tiny-2.24/Changes --- old/Config-Tiny-2.23/Changes 2015-10-14 00:45:44.000000000 +0200 +++ new/Config-Tiny-2.24/Changes 2019-06-17 04:23:26.000000000 +0200 @@ -1,17 +1,32 @@ Revision history for Perl extension Config-Tiny: -2.23 Wed Oct 14 09:11:00 2015 +2.24 2019-06-11T15:30:00 + - Delete from caveats in documentation where it used to say: + 'Config::Tiny will only recognize the first time an option is set in a config file.' + 'Any further attempts to set the same option later in the config file are ignored.' + In reality the code uses the 2nd and subsequent values to overwrite earlier values. + - Make this topic a new FAQ. + - Add corresponding test t/06.repeat.key.t. + - Update POD to clarify trailing comment options. + - Add corresponding test t/07.trailing.comment.t. + - Romanize Gregory Kidrenko's name so Config::IniFiles does not get 'Wide char in print'. + - Move xt/pod.t to xt/author/pod.t. + - Adopt new repo structure. See + http://savage.net.au/Ron/html/My.Workflow.for.Building.Distros.html. + - Move require 5.008001 from Tiny.pm into Makefile.PL. + +2.23 2015-10-14T09:11:00 - Add the utf8 BOM to this file. Let's hope the CPAN toolchain can cope. If it can't, another version of the code will have to be released. - Fix read() and write() so they work on files called '0' (zero). See RT#107754. - Many thanx to Григорий Кудренко for the report and patch. + Many thanx to Gregory Kidrenko for the report and patch. - Add t/05.zero.t and t/0 to test the new code. - Reformat the source slightly. -2.22 Tue Feb 17 08:32:00 2015 +2.22 2015-02-17T08:32:00 - Fix licence info in Makefile.PL to say Perl. -2.21 Mon Feb 16 08:59:00 2015 +2.21 2015-02-16T08:59:00 - Patch Makefile.PL to refer to the current repo, which is on github, and not the original one, which is on Adam's web site. See RT#102125. - Remove Build.PL because Karen Etheridge tells me Module::Build is no longer in core. @@ -20,31 +35,31 @@ - Edit line lengths in the docs the same way. - Expand the See Also section of the docs. -2.20 Sun Nov 24 10:52:00 2013 +2.20 2013-11-24T10:52:00 - Relax pre-req version requirements -2.19 Sun Sep 15 09:16:00 2013 +2.19 2013-09-15T09:16:00 - Change VERSION => $VERSION in Makefile.PL to VERSION_FROM => 'lib/Config/Tiny.pm'. Reported by Jean-Louis Morel. See RT#88670. -2.18 Sat Sep 14 10:03:00 2013 +2.18 2013-09-14T10:03:00 - Remove obsolete and wrong version # from Makefile.PL. Reported by Jean-Louis Morel. See RT#88658. - Implement Kevin Ryde's suggestion to test if read() will return undef. If so, set an error message and (still) return undef. -2.17 Fri Sep 13 12:41:00 2013 +2.17 2013-09-13T12:41:00 - Remove the file tests -efr during calls to read(). The open() tests for any error. Also, the -f test was reporting /dev/null as a directory, not a file. Thanx to Kevin Ryde for pushing me to implement this. See RT#36974. - Clean up some error messages slightly. -2.16 Fri Sep 6 11:54:00 2013 +2.16 2013-09-06T11:54:00 - Replace Path::Tiny with File::Spec, because the former's list of dependencies is so long :-(. Changed files: t/02.main.t, t/04.utf8.t, Build.PL and Makefile.PL. See: RT#88435 (for Tree::DAG_Node) for an explanation. -2.15 Sun Aug 4 14:59:00 2013 +2.15 2013-08-04T14:59:00 - Clean up the shambolic dates in this file. - Add a note under Caveats about setting options more that once. Only the first case is respected. Thanx to Kimmel K. See RT#69795. @@ -176,4 +191,4 @@ - Don't import Fcntl symbols 0.1 Wed Nov 13 16:50:23 2002 - - original version + - original version \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-Tiny-2.23/LICENSE new/Config-Tiny-2.24/LICENSE --- old/Config-Tiny-2.23/LICENSE 2015-10-14 00:45:44.000000000 +0200 +++ new/Config-Tiny-2.24/LICENSE 2019-06-17 04:11:10.000000000 +0200 @@ -1,4 +1,3 @@ - Terms of Perl itself a) the GNU General Public License as published by the Free @@ -11,8 +10,9 @@ The General Public License (GPL) Version 2, June 1991 -Copyright (C) 1989, 1991 Free Software Foundation, Inc. 675 Mass Ave, -Cambridge, MA 02139, USA. Everyone is permitted to copy and distribute +Copyright (C) 1989, 1991 Free Software Foundation, Inc., +51 Franklin Street, 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. Preamble @@ -286,21 +286,21 @@ - "Package" refers to the collection of files distributed by the Copyright Holder, and derivatives of that collection of files created through textual - modification. + modification. - "Standard Version" refers to such a Package if it has not been modified, or has been modified in accordance with the wishes of the Copyright - Holder. + Holder. - "Copyright Holder" is whoever is named in the copyright or copyrights for - the package. + the package. - "You" is you, if you're thinking about copying or distributing this Package. - "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, but only to the - computing community at large as a market that must bear the fee.) + computing community at large as a market that must bear the fee.) - "Freely Available" means that no fee is charged for the item itself, though there may be fees involved in handling the item. It also means that recipients of the item may redistribute it under the same conditions they - received it. + received it. 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, provided that you duplicate diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-Tiny-2.23/MANIFEST new/Config-Tiny-2.24/MANIFEST --- old/Config-Tiny-2.23/MANIFEST 2015-10-14 00:45:44.000000000 +0200 +++ new/Config-Tiny-2.24/MANIFEST 2019-06-17 06:30:14.000000000 +0200 @@ -1,20 +1,26 @@ +.travis.yml Changelog.ini Changes lib/Config/Tiny.pm LICENSE Makefile.PL MANIFEST This list of files -META.json -META.yml +MANIFEST.SKIP README t/0 +t/00.versions.t +t/00.versions.tx t/01.compile.t t/02.main.t t/03.read.string.t t/04.utf8.t t/04.utf8.txt t/05.zero.t +t/06.repeat.key.t +t/07.trailing.comment.t test.conf +xt/author/pod.t xt/meta.t xt/pmv.t -xt/pod.t +META.yml Module YAML meta-data (added by MakeMaker) +META.json Module JSON meta-data (added by MakeMaker) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-Tiny-2.23/MANIFEST.SKIP new/Config-Tiny-2.24/MANIFEST.SKIP --- old/Config-Tiny-2.23/MANIFEST.SKIP 1970-01-01 01:00:00.000000000 +0100 +++ new/Config-Tiny-2.24/MANIFEST.SKIP 2019-06-17 04:09:31.000000000 +0200 @@ -0,0 +1,47 @@ +# Avoid version control files. +,v$ +\B.cvsignore$ +\B.git\b +\B.gitignore\b +\B.svn\b +\bCVS\b +\bRCS\b + +# Avoid Makemaker generated and utility files. +\bblib +\bblibdirs$ +\bpm_to_blib$ +\bMakefile$ +\bMakeMaker-\d + +# Avoid Module::Build generated and utility files. +\b_build +\bBuild$ +\bBuild.bat$ + +# Avoid Devel::Cover generated files +\bcover_db + +# Avoid temp and backup files. +~$ +#$ +.# +.bak$ +.old$ +.rej$ +.tmp$ + +# Avoid OS-specific files/dirs +# Mac OSX metadata +\B.DS_Store +# Mac OSX SMB mount metadata files +\B._ + +# Avoid UltraEdit files. +.prj$ +.pui$ + +^MYMETA.yml$ +^MYMETA.json$ + +^Config-Tiny-.* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-Tiny-2.23/META.json new/Config-Tiny-2.24/META.json --- old/Config-Tiny-2.23/META.json 2015-10-14 00:45:44.000000000 +0200 +++ new/Config-Tiny-2.24/META.json 2019-06-17 06:30:14.000000000 +0200 @@ -4,7 +4,7 @@ "Adam Kennedy <adamk@cpan.org>" ], "dynamic_config" : 1, - "generated_by" : "ExtUtils::MakeMaker version 7.06, CPAN::Meta::Converter version 2.143240", + "generated_by" : "ExtUtils::MakeMaker version 7.32, CPAN::Meta::Converter version 2.150005", "license" : [ "perl_5" ], @@ -35,10 +35,15 @@ "File::Spec" : "3.3", "File::Temp" : "0.22", "UNIVERSAL" : "0", - "perl" : "v5.8.1", "strict" : "0", "utf8" : "0" } + }, + "test" : { + "requires" : { + "Test::More" : "1.001002", + "Test::Pod" : "1.51" + } } }, "release_status" : "stable", @@ -52,6 +57,6 @@ "web" : "https://github.com/ronsavage/Config-Tiny" } }, - "version" : "2.23" + "version" : "2.24", + "x_serialization_backend" : "JSON::PP version 2.27400" } - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-Tiny-2.23/META.yml new/Config-Tiny-2.24/META.yml --- old/Config-Tiny-2.23/META.yml 2015-10-14 00:45:44.000000000 +0200 +++ new/Config-Tiny-2.24/META.yml 2019-06-17 06:30:14.000000000 +0200 @@ -3,11 +3,12 @@ author: - 'Adam Kennedy <adamk@cpan.org>' build_requires: - Test::More: '0.47' + Test::More: '1.001002' + Test::Pod: '1.51' configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 1 -generated_by: 'ExtUtils::MakeMaker version 7.06, CPAN::Meta::Converter version 2.143240' +generated_by: 'ExtUtils::MakeMaker version 7.32, CPAN::Meta::Converter version 2.150005' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -21,11 +22,10 @@ File::Spec: '3.3' File::Temp: '0.22' UNIVERSAL: '0' - perl: v5.8.1 strict: '0' utf8: '0' resources: license: http://opensource.org/licenses/Perl repository: https://github.com/ronsavage/Config-Tiny.git -version: '2.23' - +version: '2.24' +x_serialization_backend: 'CPAN::Meta::YAML version 0.012' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-Tiny-2.23/Makefile.PL new/Config-Tiny-2.24/Makefile.PL --- old/Config-Tiny-2.23/Makefile.PL 2015-10-14 00:45:44.000000000 +0200 +++ new/Config-Tiny-2.24/Makefile.PL 2019-06-17 06:29:08.000000000 +0200 @@ -40,11 +40,15 @@ { 'File::Spec' => 3.30, 'File::Temp' => 0.22, - 'perl' => '5.8.1', # For the utf stuff. 'strict' => 0, 'UNIVERSAL' => 0, 'utf8' => 0, }, + TEST_REQUIRES => + { + 'Test::More' => 1.001002, + 'Test::Pod' => 1.51, + }, VERSION_FROM => 'lib/Config/Tiny.pm', INSTALLDIRS => 'site', EXE_FILES => [], diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-Tiny-2.23/README new/Config-Tiny-2.24/README --- old/Config-Tiny-2.23/README 2015-10-14 00:45:44.000000000 +0200 +++ new/Config-Tiny-2.24/README 2018-05-18 09:24:22.000000000 +0200 @@ -10,7 +10,7 @@ 1 Installing from a Unix-like distro ------------------------------------ shell>gunzip Config-Tiny-2.20.tgz -shell>tar mxvf Config-Tiny-2.20.tar +shell>tar xvf Config-Tiny-2.20.tar On Unix-like systems, assuming you have installed Module::Build V 0.25+: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-Tiny-2.23/lib/Config/Tiny.pm new/Config-Tiny-2.24/lib/Config/Tiny.pm --- old/Config-Tiny-2.23/lib/Config/Tiny.pm 2015-10-14 00:45:44.000000000 +0200 +++ new/Config-Tiny-2.24/lib/Config/Tiny.pm 2019-06-17 06:30:13.000000000 +0200 @@ -6,10 +6,10 @@ # Warning: There is another version line, in t/02.main.t. -our $VERSION = '2.23'; +our $VERSION = '2.24'; BEGIN { - require 5.008001; + require 5.008001; # For the utf8 stuff. $Config::Tiny::errstr = ''; } @@ -247,7 +247,7 @@ as are blank lines. When writing back to the config file, all comments, custom whitespace, -and the ordering of your config file elements is discarded. If you need +and the ordering of your config file elements are discarded. If you need to keep the human elements of a config when writing back, upgrade to something better, this module is not for you. @@ -310,16 +310,50 @@ =head1 FAQ +=head2 What happens if a key is repeated? + +The last value is retained, overwriting any previous values. + +See t/06.repeat.key.t. + =head2 Why can't I put comments at the ends of lines? -Because a line like: +=over 4 + +=item o The # char is only introduces a comment when it's at the start of a line. + +So a line like: key=value # A comment -Sets key to 'value # A comment' :-(. +Sets key to 'value # A comment', which, presumably, you did not intend. This conforms to the syntax discussed in L</CONFIGURATION FILE SYNTAX>. +=item o Comments matching /\s;\s.+$//g; are ignored. + +This means you can't preserve the suffix using: + + key = Prefix ; Suffix + +Result: key is now 'Prefix'. + +But you can do this: + + key = Prefix;Suffix + +Result: key is now 'Prefix;Suffix'. + +Or this: + + key = Prefix; Suffix + +Result: key is now 'Prefix; Suffix'. + +=back + +See t/07.trailing.comment.t. + =head2 Why can't I omit the '=' signs? E.g.: @@ -366,8 +400,6 @@ =head1 CAVEATS -=head2 Unsupported Section Headers - Some edge cases in section headers are not supported, and additionally may not be detected when writing the config file. @@ -375,11 +407,9 @@ or newlines anywhere in the section header, will not be written correctly to the file and may cause file corruption. -=head2 Setting an option more than once +=head1 Repository -CConfig::Tiny will only recognize the first time an option is set in a -config file. Any further attempts to set the same option later in the config -file are ignored. +Lhttps://github.com/ronsavage/Config-Tiny.git =head1 SUPPORT diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-Tiny-2.23/t/00.versions.t new/Config-Tiny-2.24/t/00.versions.t --- old/Config-Tiny-2.23/t/00.versions.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Config-Tiny-2.24/t/00.versions.t 2019-06-17 06:30:13.000000000 +0200 @@ -0,0 +1,42 @@ +#/usr/bin/env perl + +use strict; +use warnings; + +# I tried 'require'-ing modules but that did not work. + +use Config::Tiny; # For the version #. + +use Test::More; + +use File::Spec; +use File::Temp; +use strict; +use UNIVERSAL; +use utf8; + +# ---------------------- + +pass('All external modules loaded'); + +my(@modules) = qw +/ + File::Spec + File::Temp + strict + UNIVERSAL + utf8 +/; + +diag "Testing Config::Tiny V $Config::Tiny::VERSION"; + +for my $module (@modules) +{ + no strict 'refs'; + + my($ver) = ${$module . '::VERSION'} || 'N/A'; + + diag "Using $module V $ver"; +} + +done_testing; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-Tiny-2.23/t/00.versions.tx new/Config-Tiny-2.24/t/00.versions.tx --- old/Config-Tiny-2.23/t/00.versions.tx 1970-01-01 01:00:00.000000000 +0100 +++ new/Config-Tiny-2.24/t/00.versions.tx 2019-06-17 04:16:08.000000000 +0200 @@ -0,0 +1,34 @@ +#/usr/bin/env perl + +use strict; +use warnings; + +# I tried 'require'-ing modules but that did not work. + +use <: $module_name :>; # For the version #. + +use Test::More; + +<: $module_list_1 :> + +# ---------------------- + +pass('All external modules loaded'); + +my(@modules) = qw +/ +<: $module_list_2 :> +/; + +diag "Testing <: $module_name :> V $<: $module_name :>::VERSION"; + +for my $module (@modules) +{ + no strict 'refs'; + + my($ver) = ${$module . '::VERSION'} || 'N/A'; + + diag "Using $module V $ver"; +} + +done_testing; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-Tiny-2.23/t/02.main.t new/Config-Tiny-2.24/t/02.main.t --- old/Config-Tiny-2.23/t/02.main.t 2015-10-14 00:45:44.000000000 +0200 +++ new/Config-Tiny-2.24/t/02.main.t 2019-06-17 04:19:27.000000000 +0200 @@ -19,7 +19,7 @@ # Warning: There is another version line, in lib/Config/Tiny.pm. -our $VERSION = '2.23'; +our $VERSION = '2.24'; # -------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-Tiny-2.23/t/06.repeat.key.t new/Config-Tiny-2.24/t/06.repeat.key.t --- old/Config-Tiny-2.23/t/06.repeat.key.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Config-Tiny-2.24/t/06.repeat.key.t 2019-06-17 03:50:36.000000000 +0200 @@ -0,0 +1,19 @@ +#!/usr/bin/perl + +use Config::Tiny; + +use Test::More tests => 3; + +# ------------------------ + +my($string) = <<'EOS'; +key1=One +key2=Infix +key1=Two +EOS + +my($config) = Config::Tiny -> read_string($string); + +isa_ok($config, 'Config::Tiny', 'read_string() returns an object'); +ok($$config{_}{key1} eq 'Two', 'Access to hashref returns correct value'); +ok($$config{_}{key2} eq 'Infix', 'Access to hashref returns correct value'); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-Tiny-2.23/t/07.trailing.comment.t new/Config-Tiny-2.24/t/07.trailing.comment.t --- old/Config-Tiny-2.23/t/07.trailing.comment.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Config-Tiny-2.24/t/07.trailing.comment.t 2019-06-17 04:19:53.000000000 +0200 @@ -0,0 +1,24 @@ +#!/usr/bin/perl + +use Config::Tiny; + +use Test::More tests => 4; + +# ------------------------ + +my($source1) = 'One ; Two'; +my($source2) = 'One;Two'; +my($source3) = 'One; Two'; + +my($string) = <<EOS; +key1 = $source1 +key2 = $source2 +key3 = $source3 +EOS + +my($config) = Config::Tiny -> read_string($string); + +isa_ok($config, 'Config::Tiny', 'read_string() returns an object'); +ok($$config{_}{key1} eq 'One', "Source '$source1' read correctly as '$$config{_}{key1}'"); +ok($$config{_}{key2} eq 'One;Two', "Source '$source2' read correctly as '$$config{_}{key2}'"); +ok($$config{_}{key3} eq 'One; Two', "Source '$source3' read correctly as '$$config{_}{key3}'"); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-Tiny-2.23/xt/author/pod.t new/Config-Tiny-2.24/xt/author/pod.t --- old/Config-Tiny-2.23/xt/author/pod.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Config-Tiny-2.24/xt/author/pod.t 2011-03-24 03:18:32.000000000 +0100 @@ -0,0 +1,32 @@ +#!/usr/bin/perl + +# Test that the syntax of our POD documentation is valid + +use strict; +BEGIN { + $| = 1; + $^W = 1; +} + +my @MODULES = ( + 'Pod::Simple 3.14', + 'Test::Pod 1.44', +); + +# Don't run tests for installs +use Test::More; +unless ( $ENV{AUTOMATED_TESTING} or $ENV{RELEASE_TESTING} ) { + plan( skip_all => "Author tests not required for installation" ); +} + +# Load the testing modules +foreach my $MODULE ( @MODULES ) { + eval "use $MODULE"; + if ( $@ ) { + $ENV{RELEASE_TESTING} + ? die( "Failed to load required release-testing module $MODULE" ) + : plan( skip_all => "$MODULE not available for testing" ); + } +} + +all_pod_files_ok(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-Tiny-2.23/xt/pod.t new/Config-Tiny-2.24/xt/pod.t --- old/Config-Tiny-2.23/xt/pod.t 2015-10-14 00:45:44.000000000 +0200 +++ new/Config-Tiny-2.24/xt/pod.t 1970-01-01 01:00:00.000000000 +0100 @@ -1,32 +0,0 @@ -#!/usr/bin/perl - -# Test that the syntax of our POD documentation is valid - -use strict; -BEGIN { - $| = 1; - $^W = 1; -} - -my @MODULES = ( - 'Pod::Simple 3.14', - 'Test::Pod 1.44', -); - -# Don't run tests for installs -use Test::More; -unless ( $ENV{AUTOMATED_TESTING} or $ENV{RELEASE_TESTING} ) { - plan( skip_all => "Author tests not required for installation" ); -} - -# Load the testing modules -foreach my $MODULE ( @MODULES ) { - eval "use $MODULE"; - if ( $@ ) { - $ENV{RELEASE_TESTING} - ? die( "Failed to load required release-testing module $MODULE" ) - : plan( skip_all => "$MODULE not available for testing" ); - } -} - -all_pod_files_ok();