r72588 - in /branches/upstream/libconfig-std-perl/current: Build.PL Changes LICENSE MANIFEST META.yml Makefile.PL lib/Config/Std.pm t/00write.t

carnil at users.alioth.debian.org carnil at users.alioth.debian.org
Thu Apr 14 12:21:01 UTC 2011


Author: carnil
Date: Thu Apr 14 12:20:48 2011
New Revision: 72588

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=72588
Log:
[svn-upgrade] new version libconfig-std-perl (0.9)

Added:
    branches/upstream/libconfig-std-perl/current/LICENSE
Modified:
    branches/upstream/libconfig-std-perl/current/Build.PL
    branches/upstream/libconfig-std-perl/current/Changes
    branches/upstream/libconfig-std-perl/current/MANIFEST
    branches/upstream/libconfig-std-perl/current/META.yml
    branches/upstream/libconfig-std-perl/current/Makefile.PL
    branches/upstream/libconfig-std-perl/current/lib/Config/Std.pm
    branches/upstream/libconfig-std-perl/current/t/00write.t

Modified: branches/upstream/libconfig-std-perl/current/Build.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libconfig-std-perl/current/Build.PL?rev=72588&op=diff
==============================================================================
--- branches/upstream/libconfig-std-perl/current/Build.PL (original)
+++ branches/upstream/libconfig-std-perl/current/Build.PL Thu Apr 14 12:20:48 2011
@@ -1,18 +1,30 @@
 use strict;
 use warnings;
-use Module::Build;
+use Module::Build '0.19';
 
 my $builder = Module::Build->new(
     module_name         => 'Config::Std',
     license             => 'perl',
-    dist_author         => 'Damian Conway <DCONWAY at cpan.org>',
+    create_license      => 'perl',
+    dist_author         => [ 	'Damian Conway <DCONWAY at cpan.org>',
+				'Bill Ricker <BRICKER at cpan.org>',
+				'Tom Metro <tmetro at cpan.org>'],
+
     dist_version_from   => 'lib/Config/Std.pm',
+
     requires => {
         'Test::More' => 0,
         'Class::Std' => 0,
         'version'    => 0,
+ 	'perl'       => '5.7.3',
+
+    },
+    recommends => {
+	'Test::Pod' => 0,
+	'Test::Distribution' => 0,
     },
     add_to_cleanup      => [ 'Config-Std-*' ],
+    create_makefile_pl => 'traditional', # Module::Build::Compat
 );
 
 $builder->create_build_script();

Modified: branches/upstream/libconfig-std-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libconfig-std-perl/current/Changes?rev=72588&op=diff
==============================================================================
--- branches/upstream/libconfig-std-perl/current/Changes (original)
+++ branches/upstream/libconfig-std-perl/current/Changes Thu Apr 14 12:20:48 2011
@@ -1,55 +1,52 @@
 Revision history for Config-Std
 
-0.0.1  Wed Feb 16 04:04:39 2005
-       Initial release.
+0.9   Tue Apr 12 20:41:04 2011
+    - Change of Maintainers.
+    - Reordered Changes to latest first.
+    - Module::Build::Compat creating Makefile.PL traditional
+    - LICENSE file created (in Build.PL)
+    - 21184: require v5.7.3 (Thanks Leo)
+    - Doc patches per RT queue
+	    - 18642: Dynamic loading of Config::Std breaks the interface, doc workaround.
+                      (thanks Schwern & Uri)
+	    - 16488: Philosophy is 'as simple as possible'. (thanks Steven)
+	    - 21604: read from string_ref (thanks Todd)
 
 
-0.0.2  Wed May 25 22:30:51 2005
+0.007  Wed Nov 18 13:21:08 2009
+    - Fixed major bug in gap algorithm for new keys (thanks Jojo!)
 
-    - First public release
+
+0.0.5  Tue Sep 22 15:17:49 2009
+    - Made spacing between key/values more intelligent
+    - Added def_sep option to control that intelligence (thanks David)
+    - Added support for standard INI-style comments:   ; like this
+      (thanks William and FSD)
+    - Fixed bug in section heading parsing (thanks Kirk)
+
+
+0.0.4  Mon Feb 20 08:03:45 2006
+    - Removed spurious dependency on Smart::Comments
 
 
 0.0.3  Fri Feb 17 15:50:09 2006
-
     - Fixed bug in writing back from a hash-ref
-
     - Fixed spelling bug in append_comments (thanks Torsten!)
-
     - Added {def_sep => '='} option (thanks Nick)
-
     - Clarified use of comments with config vars 
-
     - Removed unused "" sections from read_config hash (thanks carcassonne)
-
     - Added logic to decide whether new sections have spaces after them
-
     - Changed write_config() behaviour for undefined hash entries: they now
       throw an exception (thanks David)
-
     - Added mechanism to allow read_config() and write_config() to be renamed
       when exported (thanks David)
 
 
-0.0.4  Mon Feb 20 08:03:45 2006
-
-    - Removed spurious dependency on Smart::Comments
+0.0.2  Wed May 25 22:30:51 2005
+    - First public release
 
 
-
-0.0.5  Tue Sep 22 15:17:49 2009
-
-    - Made spacing between key/values more intelligent
-
-    - Added def_sep option to control that intelligence (thanks David)
-
-    - Added support for standard INI-style comments:   ; like this
-      (thanks William and FSD)
-
-    - Fixed bug in section heading parsing (thanks Kirk)
+0.0.1  Wed Feb 16 04:04:39 2005
+    - Initial release.
 
 
-
-
-0.007  Wed Nov 18 13:21:08 2009
-
-    - Fixed major bug in gap algorithm for new keys (thanks Jojo!)

Added: branches/upstream/libconfig-std-perl/current/LICENSE
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libconfig-std-perl/current/LICENSE?rev=72588&op=file
==============================================================================
--- branches/upstream/libconfig-std-perl/current/LICENSE (added)
+++ branches/upstream/libconfig-std-perl/current/LICENSE Thu Apr 14 12:20:48 2011
@@ -1,0 +1,377 @@
+This software is copyright (c) 2011 by Damian Conway <DCONWAY at cpan.org> & Bill Ricker <BRICKER at cpan.org> & Tom Metro <tmetro at cpan.org>.
+
+This is free software; you can redistribute it and/or modify it under
+the same terms as the Perl 5 programming language system itself.
+
+Terms of the Perl programming language system itself
+
+a) the GNU General Public License as published by the Free
+   Software Foundation; either version 1, or (at your option) any
+   later version, or
+b) the "Artistic License"
+
+--- The GNU General Public License, Version 1, February 1989 ---
+
+This software is Copyright (c) 2011 by Damian Conway <DCONWAY at cpan.org> & Bill Ricker <BRICKER at cpan.org> & Tom Metro <tmetro at cpan.org>.
+
+This is free software, licensed under:
+
+  The GNU General Public License, Version 1, February 1989
+
+		    GNU GENERAL PUBLIC LICENSE
+		     Version 1, February 1989
+
+ Copyright (C) 1989 Free Software Foundation, Inc.
+                59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+			    Preamble
+
+  The license agreements of most software companies try to keep users
+at the mercy of those companies.  By contrast, our General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  The
+General Public License applies to the Free Software Foundation's
+software and to any other program whose authors commit to using it.
+You can use it for your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Specifically, the General Public License is designed to make
+sure that you have the freedom to give away or sell copies of free
+software, that you receive source code or can get it if you want it,
+that you can change the software or use pieces of it in new free
+programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of a such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must tell them their rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+		    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License Agreement applies to any program or other work which
+contains a notice placed by the copyright holder saying it may be
+distributed under the terms of this General Public License.  The
+"Program", below, refers to any such program or work, and a "work based
+on the Program" means either the Program or any work containing the
+Program or a portion of it, either verbatim or with modifications.  Each
+licensee is addressed as "you".
+
+  1. You may copy and distribute verbatim copies of the Program's source
+code as you receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice and
+disclaimer of warranty; keep intact all the notices that refer to this
+General Public License and to the absence of any warranty; and give any
+other recipients of the Program a copy of this General Public License
+along with the Program.  You may charge a fee for the physical act of
+transferring a copy.
+
+  2. You may modify your copy or copies of the Program or any portion of
+it, and copy and distribute such modifications under the terms of Paragraph
+1 above, provided that you also do the following:
+
+    a) cause the modified files to carry prominent notices stating that
+    you changed the files and the date of any change; and
+
+    b) cause the whole of any work that you distribute or publish, that
+    in whole or in part contains the Program or any part thereof, either
+    with or without modifications, to be licensed at no charge to all
+    third parties under the terms of this General Public License (except
+    that you may choose to grant warranty protection to some or all
+    third parties, at your option).
+
+    c) If the modified program normally reads commands interactively when
+    run, you must cause it, when started running for such interactive use
+    in the simplest and most usual way, to print or display an
+    announcement including an appropriate copyright notice and a notice
+    that there is no warranty (or else, saying that you provide a
+    warranty) and that users may redistribute the program under these
+    conditions, and telling the user how to view a copy of this General
+    Public License.
+
+    d) You may charge a fee for the physical act of transferring a
+    copy, and you may at your option offer warranty protection in
+    exchange for a fee.
+
+Mere aggregation of another independent work with the Program (or its
+derivative) on a volume of a storage or distribution medium does not bring
+the other work under the scope of these terms.
+
+  3. You may copy and distribute the Program (or a portion or derivative of
+it, under Paragraph 2) in object code or executable form under the terms of
+Paragraphs 1 and 2 above provided that you also do one of the following:
+
+    a) accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of
+    Paragraphs 1 and 2 above; or,
+
+    b) accompany it with a written offer, valid for at least three
+    years, to give any third party free (except for a nominal charge
+    for the cost of distribution) a complete machine-readable copy of the
+    corresponding source code, to be distributed under the terms of
+    Paragraphs 1 and 2 above; or,
+
+    c) accompany it with the information you received as to where the
+    corresponding source code may be obtained.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form alone.)
+
+Source code for a work means the preferred form of the work for making
+modifications to it.  For an executable file, complete source code means
+all the source code for all modules it contains; but, as a special
+exception, it need not include source code for modules which are standard
+libraries that accompany the operating system on which the executable
+file runs, or for standard header files or definitions files that
+accompany that operating system.
+
+  4. You may not copy, modify, sublicense, distribute or transfer the
+Program except as expressly provided under this General Public License.
+Any attempt otherwise to copy, modify, sublicense, distribute or transfer
+the Program is void, and will automatically terminate your rights to use
+the Program under this License.  However, parties who have received
+copies, or rights to use copies, from you under this General Public
+License will not have their licenses terminated so long as such parties
+remain in full compliance.
+
+  5. By copying, distributing or modifying the Program (or any work based
+on the Program) you indicate your acceptance of this license to do so,
+and all its terms and conditions.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the original
+licensor to copy, distribute or modify the Program subject to these
+terms and conditions.  You may not impose any further restrictions on the
+recipients' exercise of the rights granted herein.
+
+  7. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of the license which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+the license, you may choose any version ever published by the Free Software
+Foundation.
+
+  8. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+			    NO WARRANTY
+
+  9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+		     END OF TERMS AND CONDITIONS
+
+	Appendix: How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to humanity, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these
+terms.
+
+  To do so, attach the following notices to the program.  It is safest to
+attach them to the start of each source file to most effectively convey
+the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) 19yy  <name of author>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 1, or (at your option)
+    any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software Foundation,
+    Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) 19xx name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the
+appropriate parts of the General Public License.  Of course, the
+commands you use may be called something other than `show w' and `show
+c'; they could even be mouse-clicks or menu items--whatever suits your
+program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the
+  program `Gnomovision' (a program to direct compilers to make passes
+  at assemblers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+That's all there is to it!
+
+
+--- The Artistic License 1.0 ---
+
+This software is Copyright (c) 2011 by Damian Conway <DCONWAY at cpan.org> & Bill Ricker <BRICKER at cpan.org> & Tom Metro <tmetro at cpan.org>.
+
+This is free software, licensed under:
+
+  The Artistic License 1.0
+
+The Artistic License
+
+Preamble
+
+The intent of this document is to state the conditions under which a Package
+may be copied, such that the Copyright Holder maintains some semblance of
+artistic control over the development of the package, while giving the users of
+the package the right to use and distribute the Package in a more-or-less
+customary fashion, plus the right to make reasonable modifications.
+
+Definitions:
+
+  - "Package" refers to the collection of files distributed by the Copyright
+    Holder, and derivatives of that collection of files created through
+    textual 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. 
+  - "Copyright Holder" is whoever is named in the copyright or copyrights for
+    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.) 
+  - "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. 
+
+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 all of the original copyright notices and associated disclaimers.
+
+2. You may apply bug fixes, portability fixes and other modifications derived
+from the Public Domain or from the Copyright Holder. A Package modified in such
+a way shall still be considered the Standard Version.
+
+3. You may otherwise modify your copy of this Package in any way, provided that
+you insert a prominent notice in each changed file stating how and when you
+changed that file, and provided that you do at least ONE of the following:
+
+  a) place your modifications in the Public Domain or otherwise make them
+     Freely Available, such as by posting said modifications to Usenet or an
+     equivalent medium, or placing the modifications on a major archive site
+     such as ftp.uu.net, or by allowing the Copyright Holder to include your
+     modifications in the Standard Version of the Package.
+
+  b) use the modified Package only within your corporation or organization.
+
+  c) rename any non-standard executables so the names do not conflict with
+     standard executables, which must also be provided, and provide a separate
+     manual page for each non-standard executable that clearly documents how it
+     differs from the Standard Version.
+
+  d) make other distribution arrangements with the Copyright Holder.
+
+4. You may distribute the programs of this Package in object code or executable
+form, provided that you do at least ONE of the following:
+
+  a) distribute a Standard Version of the executables and library files,
+     together with instructions (in the manual page or equivalent) on where to
+     get the Standard Version.
+
+  b) accompany the distribution with the machine-readable source of the Package
+     with your modifications.
+
+  c) accompany any non-standard executables with their corresponding Standard
+     Version executables, giving the non-standard executables non-standard
+     names, and clearly documenting the differences in manual pages (or
+     equivalent), together with instructions on where to get the Standard
+     Version.
+
+  d) make other distribution arrangements with the Copyright Holder.
+
+5. You may charge a reasonable copying fee for any distribution of this
+Package.  You may charge any fee you choose for support of this Package. You
+may not charge a fee for this Package itself. However, you may distribute this
+Package in aggregate with other (possibly commercial) programs as part of a
+larger (possibly commercial) software distribution provided that you do not
+advertise this Package as a product of your own.
+
+6. The scripts and library files supplied as input to or produced as output
+from the programs of this Package do not automatically fall under the copyright
+of this Package, but belong to whomever generated them, and may be sold
+commercially, and may be aggregated with this Package.
+
+7. C or perl subroutines supplied by you and linked into this Package shall not
+be considered part of this Package.
+
+8. The name of the Copyright Holder may not be used to endorse or promote
+products derived from this software without specific prior written permission.
+
+9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
+WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
+MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+
+The End
+

Modified: branches/upstream/libconfig-std-perl/current/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libconfig-std-perl/current/MANIFEST?rev=72588&op=diff
==============================================================================
--- branches/upstream/libconfig-std-perl/current/MANIFEST (original)
+++ branches/upstream/libconfig-std-perl/current/MANIFEST Thu Apr 14 12:20:48 2011
@@ -16,3 +16,4 @@
 t/03autoviv.t
 t/comments.t
 t/undef.t
+LICENSE

Modified: branches/upstream/libconfig-std-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libconfig-std-perl/current/META.yml?rev=72588&op=diff
==============================================================================
--- branches/upstream/libconfig-std-perl/current/META.yml (original)
+++ branches/upstream/libconfig-std-perl/current/META.yml Thu Apr 14 12:20:48 2011
@@ -1,16 +1,39 @@
---- #YAML:1.0
-name:                Config-Std
-version:             0.007
-abstract:            Load and save configuration files in a standard format
-license:             ~
-author:              
-    - Damian Conway <DCONWAY at cpan.org>
-generated_by:        ExtUtils::MakeMaker version 6.42
-distribution_type:   module
-requires:     
-    Class::Std:                    0
-    Test::More:                    0
-    version:                       0
+---
+abstract: 'Load and save configuration files in a standard format'
+author:
+  - 'Damian Conway <DCONWAY at cpan.org>'
+  - 'Bill Ricker <BRICKER at cpan.org>'
+  - 'Tom Metro <tmetro at cpan.org>'
+configure_requires:
+  Module::Build: 0.36
+generated_by: 'Module::Build version 0.3603'
+license: perl
 meta-spec:
-    url:     http://module-build.sourceforge.net/META-spec-v1.3.html
-    version: 1.3
+  url: http://module-build.sourceforge.net/META-spec-v1.4.html
+  version: 1.4
+name: Config-Std
+provides:
+  Config::Std:
+    file: lib/Config/Std.pm
+    version: 0.9
+  Config::Std::Block:
+    file: lib/Config/Std.pm
+  Config::Std::Comment:
+    file: lib/Config/Std.pm
+  Config::Std::Gap:
+    file: lib/Config/Std.pm
+  Config::Std::Hash:
+    file: lib/Config/Std.pm
+  Config::Std::Keyval:
+    file: lib/Config/Std.pm
+recommends:
+  Test::Distribution: 0
+  Test::Pod: 0
+requires:
+  Class::Std: 0
+  Test::More: 0
+  perl: v5.7.3
+  version: 0
+resources:
+  license: http://dev.perl.org/licenses/
+version: 0.9

Modified: branches/upstream/libconfig-std-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libconfig-std-perl/current/Makefile.PL?rev=72588&op=diff
==============================================================================
--- branches/upstream/libconfig-std-perl/current/Makefile.PL (original)
+++ branches/upstream/libconfig-std-perl/current/Makefile.PL Thu Apr 14 12:20:48 2011
@@ -1,18 +1,17 @@
-use strict;
-use warnings;
+# Note: this file was auto-generated by Module::Build::Compat version 0.3603
+require 5.007003;
 use ExtUtils::MakeMaker;
-
-WriteMakefile(
-    NAME                => 'Config::Std',
-    AUTHOR              => 'Damian Conway <DCONWAY at cpan.org>',
-    VERSION_FROM        => 'lib/Config/Std.pm',
-    ABSTRACT_FROM       => 'lib/Config/Std.pm',
-    PL_FILES            => {},
-    PREREQ_PM => {
-        'Test::More' => 0,
-        'Class::Std' => 0,
-        'version'    => 0,
-    },
-    dist                => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
-    clean               => { FILES => 'Config-Std-*' },
-);
+WriteMakefile
+(
+          'PL_FILES' => {},
+          'INSTALLDIRS' => 'site',
+          'NAME' => 'Config::Std',
+          'EXE_FILES' => [],
+          'VERSION_FROM' => 'lib/Config/Std.pm',
+          'PREREQ_PM' => {
+                           'Test::More' => 0,
+                           'version' => 0,
+                           'Class::Std' => 0
+                         }
+        )
+;

Modified: branches/upstream/libconfig-std-perl/current/lib/Config/Std.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libconfig-std-perl/current/lib/Config/Std.pm?rev=72588&op=diff
==============================================================================
--- branches/upstream/libconfig-std-perl/current/lib/Config/Std.pm (original)
+++ branches/upstream/libconfig-std-perl/current/lib/Config/Std.pm Thu Apr 14 12:20:48 2011
@@ -1,6 +1,8 @@
 package Config::Std;
 
-our $VERSION = '0.007';
+our $VERSION = '0.9';
+
+require v5.7.3; # RT#21184
 
 my %global_def_sep;
 my %global_inter_gap;
@@ -273,6 +275,7 @@
 package Config::Std::Hash;
 use Class::Std;
 {
+
     use Carp;
     use Fcntl ':flock';     # import LOCK_* constants
 
@@ -493,7 +496,7 @@
 
 =head1 VERSION
 
-This document describes Config::Std version 0.007
+This document describes Config::Std version 0.900
 
 
 =head1 SYNOPSIS
@@ -524,8 +527,16 @@
 module works hard to preserve as much information (section order,
 comments, etc.) as possible when a configuration file is updated.
 
-See Chapter 19 of "Perl Best Practices" (O'Reilly, 2005) for the
-rationale for this approach.
+The whole point of Config::Std is to encourage use of one standard layout
+and syntax in config files. Damian says "I could have gotten away with it, I would have
+only allowed one separator. But it proved impossible to choose between C<:> and C<=>
+(half the people I asked wanted one, half wanted the other)." 
+Providing round-trip file re-write is the spoonful of sugar to help the medicine go down.
+The supported syntax is within the general INI file family 
+
+See Chapter 19 of "Perl Best Practices" (O'Reilly, 2005) 
+for more detail on the
+rationale for this approach. 
 
 =head2 Configuration language
 
@@ -549,6 +560,8 @@
     ; Valid comment
     key: value  ; Not a comment, just part of the value
 
+NOTE BENE -- that last is a BAD EXAMPLE of what is NOT supported. 
+This module supports full-line comments only, not on same line with semantic content.
 
 =head3 Sections
 
@@ -610,10 +623,16 @@
 
 When writing out a config file, Config::Std tries to preserve whichever
 separator was used in the original data (if that data was read
-in). New data is written back with a colon as its default separator,
-unless you specify otherwise when the module is loaded:
+in). New data 
+(created by code not parsed by C<read_config>)
+is written back with a colon as its default separator,
+unless you specify the only other separator value C<'='> when the module is loaded:
 
     use Config::Std { def_sep => '=' };
+
+Note that this does not change read-in parsing, 
+does not change punctuation for values that were parsed, 
+and will not allow values other than C<'='> or C<':'>.
 
 Everything from the first non-whitespace character after the separator,
 up to the end of the line, is treated as the value for the config variable.
@@ -779,6 +798,8 @@
 
 =item C<< read_config($filename => $config_hash_ref) >>
 
+=item C<< read_config($string_ref => %config_hash_or_ref) >>
+
 The C<read_config()> subroutine takes two arguments: the filename of a
 configuration file, and a variable into which the contents of that
 configuration file are to be loaded.
@@ -791,6 +812,28 @@
 filled as described above.
 
 The subroutine returns true on success, and throws an exception on failure.
+
+If you pass a reference to the string as the first argument to
+C<read_config()> it uses that string as the source of the config info.
+For example:
+
+	use Config::Std;
+
+	# here we load the config text to a scalar
+	my $cfg = q{
+	[Section 1]
+	attr1 = at
+	attr2 = bat
+
+	[Section 2]
+	attr3 = cat
+	};
+
+	# here we parse the config from that scalar by passing a reference to it.
+	read_config( \$cfg, my %config );
+
+	use Data::Dumper 'Dumper';
+	warn Dumper [ \%config ];
 
 
 =item C<< write_config(%config_hash => $filename) >>
@@ -910,6 +953,7 @@
 =head1 CONFIGURATION AND ENVIRONMENT
 
 Config::Std requires no configuration files or environment variables.
+(To do so would be disturbingly recursive.)
 
 
 =head1 DEPENDENCIES
@@ -919,12 +963,49 @@
 
 =head1 INCOMPATIBILITIES
 
-None reported.
+Those variants of INI file dialect supporting partial-line comment are incompatible. 
+(This is the price of keeping comments when re-writing.)
 
 
 =head1 BUGS AND LIMITATIONS
 
-No bugs have been reported.
+=over
+
+=item Loading on demand
+
+If you attempt to load C<read_config()> and C<write_config()> 
+at runtime with C<require>, you can not rely upon the prototype
+to convert a regular hash to a reference. To work around this, 
+you must explicitly pass a reference to the config hash.
+
+    require Config::Std;
+    Config::Std->import;
+
+    my %config;
+    read_config($file, \%config);
+    write_config(\%config, $file);
+
+=item Windows line endings on Unix/Linux (RT#21547/23550)
+
+If the config file being read contains carriage returns and line feeds
+at the end of each line rather than just line feeds (i.e. the standard
+Windows file format, when read on a machine expecting POSIX file format),
+Config::Std emits an error with embedded newline.
+
+Workaround is match file line-endings to locale.
+
+This will be fixed in 1.000.
+
+
+=item leading comment vanishes (RT#24597,)
+
+A comment before the first section is not always retained on write-back, if the '' default section is empty.
+
+=item 00write.t test 5 fails on perl5.8.1 (RT#17425)
+
+Due to an incompatible change in v5.8.1 partially reversed in v5.8.2, hash key randomisation can cause test to fail in that one version of Perl. Workaround is export environment variable PERL_HASH_SEED=0.
+
+=back
 
 Please report any bugs or feature requests to
 C<bug-config-std at rt.cpan.org>, or through the web interface at
@@ -934,11 +1015,14 @@
 =head1 AUTHOR
 
 Damian Conway  C<< <DCONWAY at cpan.org> >>
-
+Maintainers 
+Bill Ricker    C<< <BRICKER at cpan.org> >>
+Tom Metro      C<< <tmetro at cpan.org> >>
 
 =head1 LICENCE AND COPYRIGHT
 
-Copyright (c) 2005, Damian Conway C<< <DCONWAY at cpan.org> >>. All rights reserved.
+Copyright (c) 2005, Damian Conway C<< <DCONWAY at cpan.org> >>. 
+Copyright (c) 2011, D.Conway, W.Ricker C<< <BRICKER at cpan.org> >> All rights reserved.
 
 This module is free software; you can redistribute it and/or
 modify it under the same terms as Perl itself.

Modified: branches/upstream/libconfig-std-perl/current/t/00write.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libconfig-std-perl/current/t/00write.t?rev=72588&op=diff
==============================================================================
--- branches/upstream/libconfig-std-perl/current/t/00write.t (original)
+++ branches/upstream/libconfig-std-perl/current/t/00write.t Thu Apr 14 12:20:48 2011
@@ -1,5 +1,8 @@
 use Config::Std;
 use Test::More 'no_plan';
+
+# May fail with v5.8.1 only, 
+# if so define PERL_HASH_SEED=0 to suppress Hash Randomisation
 
 my $output_file = 'test.cfg';
 




More information about the Pkg-perl-cvs-commits mailing list