r64385 - in /trunk/libstring-rewriteprefix-perl: ./ debian/ debian/source/ lib/String/ t/ xt/

ansgar at users.alioth.debian.org ansgar at users.alioth.debian.org
Thu Oct 28 20:45:50 UTC 2010


Author: ansgar
Date: Thu Oct 28 20:42:26 2010
New Revision: 64385

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=64385
Log:
* New upstream release.
* debian/copyright: Formatting changes; refer to "Debian systems" instead of
  "Debian GNU/Linux systems"; refer to /usr/share/common-licenses/GPL-1.
* Use source format 3.0 (quilt).
* Bump Standards-Version to 3.9.1.
* Add myself to Uploaders.

Added:
    trunk/libstring-rewriteprefix-perl/META.json
      - copied unchanged from r64384, branches/upstream/libstring-rewriteprefix-perl/current/META.json
    trunk/libstring-rewriteprefix-perl/debian/source/
    trunk/libstring-rewriteprefix-perl/debian/source/format
    trunk/libstring-rewriteprefix-perl/dist.ini
      - copied unchanged from r64384, branches/upstream/libstring-rewriteprefix-perl/current/dist.ini
    trunk/libstring-rewriteprefix-perl/t/release-pod-syntax.t
      - copied unchanged from r64384, branches/upstream/libstring-rewriteprefix-perl/current/t/release-pod-syntax.t
Removed:
    trunk/libstring-rewriteprefix-perl/INSTALL
    trunk/libstring-rewriteprefix-perl/MANIFEST.SKIP
    trunk/libstring-rewriteprefix-perl/xt/
Modified:
    trunk/libstring-rewriteprefix-perl/Changes
    trunk/libstring-rewriteprefix-perl/LICENSE
    trunk/libstring-rewriteprefix-perl/MANIFEST
    trunk/libstring-rewriteprefix-perl/META.yml
    trunk/libstring-rewriteprefix-perl/Makefile.PL
    trunk/libstring-rewriteprefix-perl/README
    trunk/libstring-rewriteprefix-perl/debian/changelog
    trunk/libstring-rewriteprefix-perl/debian/control
    trunk/libstring-rewriteprefix-perl/debian/copyright
    trunk/libstring-rewriteprefix-perl/lib/String/RewritePrefix.pm
    trunk/libstring-rewriteprefix-perl/t/basic.t

Modified: trunk/libstring-rewriteprefix-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libstring-rewriteprefix-perl/Changes?rev=64385&op=diff
==============================================================================
--- trunk/libstring-rewriteprefix-perl/Changes (original)
+++ trunk/libstring-rewriteprefix-perl/Changes Thu Oct 28 20:42:26 2010
@@ -1,4 +1,9 @@
 Revision history for String-RewritePrefix
+
+0.006     2010-10-25 15:36:37 America/New_York
+          give explicit Sub::Exporter requirement
+
+          do not warn if a coderef prefix generator returns undef
 
 0.005     2009-11-30
           export "rewrite" with Sub::Exporter

Modified: trunk/libstring-rewriteprefix-perl/LICENSE
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libstring-rewriteprefix-perl/LICENSE?rev=64385&op=diff
==============================================================================
--- trunk/libstring-rewriteprefix-perl/LICENSE (original)
+++ trunk/libstring-rewriteprefix-perl/LICENSE Thu Oct 28 20:42:26 2010
@@ -1,20 +1,22 @@
-License terms of Perl itself
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of either:
-
-	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" which comes with this Kit.
-
-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 either
-the GNU General Public License or the Artistic License for more details.
-
----------------------------------------------------------------------------
+This software is copyright (c) 2010 by Ricardo Signes.
+
+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) 2010 by Ricardo Signes.
+
+This is free software, licensed under:
+
+  The GNU General Public License, Version 1, February 1989
 
 		    GNU GENERAL PUBLIC LICENSE
 		     Version 1, February 1989
@@ -161,7 +163,7 @@
 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
@@ -207,7 +209,72 @@
 
 		     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) 2010 by Ricardo Signes.
+
+This is free software, licensed under:
+
+  The Artistic License 1.0
 
 The Artistic License
 
@@ -215,107 +282,96 @@
 
 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.
+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. 
+  - "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.
+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
+  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. Aggregation of this Package with a commercial distribution is always permitted
-provided that the use of this Package is embedded; that is, when no overt attempt
-is made to make this Package's interfaces visible to the end user of the
-commercial distribution. Such use shall not be construed as a distribution of
-this Package.
-
-9. The name of the Copyright Holder may not be used to endorse or promote
+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.
 
-10. 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.
+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: trunk/libstring-rewriteprefix-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libstring-rewriteprefix-perl/MANIFEST?rev=64385&op=diff
==============================================================================
--- trunk/libstring-rewriteprefix-perl/MANIFEST (original)
+++ trunk/libstring-rewriteprefix-perl/MANIFEST Thu Oct 28 20:42:26 2010
@@ -1,12 +1,11 @@
 Changes
-INSTALL
+LICENSE
+MANIFEST
+META.json
+META.yml
+Makefile.PL
+README
+dist.ini
 lib/String/RewritePrefix.pm
-LICENSE
-Makefile.PL
-MANIFEST			This list of files
-MANIFEST.SKIP
-README
 t/basic.t
-xt/pod-coverage.t
-xt/pod-format.t
-META.yml                                 Module meta-data (added by MakeMaker)
+t/release-pod-syntax.t

Modified: trunk/libstring-rewriteprefix-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libstring-rewriteprefix-perl/META.yml?rev=64385&op=diff
==============================================================================
--- trunk/libstring-rewriteprefix-perl/META.yml (original)
+++ trunk/libstring-rewriteprefix-perl/META.yml Thu Oct 28 20:42:26 2010
@@ -1,24 +1,160 @@
---- #YAML:1.0
-name:               String-RewritePrefix
-version:            0.005
-abstract:           ~
-author:  []
-license:            perl
-distribution_type:  module
+---
+abstract: 'rewrite strings based on a set of known prefixes'
+author:
+  - 'Ricardo Signes <rjbs at cpan.org>'
+build_requires:
+  Test::More: 0.96
 configure_requires:
-    ExtUtils::MakeMaker:  0
-build_requires:
-    ExtUtils::MakeMaker:  0
+  ExtUtils::MakeMaker: 6.31
+dynamic_config: 0
+generated_by: 'Dist::Zilla version 4.102342, CPAN::Meta::Converter version 2.102400'
+license: perl
+meta-spec:
+  url: http://module-build.sourceforge.net/META-spec-v1.4.html
+  version: 1.4
+name: String-RewritePrefix
 requires:
-    Sub::Exporter:  0
-    Test::More:     0.47
+  Carp: 0
+  Sub::Exporter: 0.972
 resources:
-    Repository:  http://github.com/rjbs/string-rewriteprefix
-no_index:
-    directory:
-        - t
-        - inc
-generated_by:       ExtUtils::MakeMaker version 6.55_02
-meta-spec:
-    url:      http://module-build.sourceforge.net/META-spec-v1.4.html
-    version:  1.4
+  repository: git://git.codesimply.com/String-RewritePrefix.git
+version: 0.006
+x_Dist_Zilla:
+  plugins:
+    -
+      class: Dist::Zilla::Plugin::GatherDir
+      name: '@RJBS/@Basic/GatherDir'
+      version: 4.102342
+    -
+      class: Dist::Zilla::Plugin::PruneCruft
+      name: '@RJBS/@Basic/PruneCruft'
+      version: 4.102342
+    -
+      class: Dist::Zilla::Plugin::ManifestSkip
+      name: '@RJBS/@Basic/ManifestSkip'
+      version: 4.102342
+    -
+      class: Dist::Zilla::Plugin::MetaYAML
+      name: '@RJBS/@Basic/MetaYAML'
+      version: 4.102342
+    -
+      class: Dist::Zilla::Plugin::License
+      name: '@RJBS/@Basic/License'
+      version: 4.102342
+    -
+      class: Dist::Zilla::Plugin::Readme
+      name: '@RJBS/@Basic/Readme'
+      version: 4.102342
+    -
+      class: Dist::Zilla::Plugin::ExtraTests
+      name: '@RJBS/@Basic/ExtraTests'
+      version: 4.102342
+    -
+      class: Dist::Zilla::Plugin::ExecDir
+      name: '@RJBS/@Basic/ExecDir'
+      version: 4.102342
+    -
+      class: Dist::Zilla::Plugin::ShareDir
+      name: '@RJBS/@Basic/ShareDir'
+      version: 4.102342
+    -
+      class: Dist::Zilla::Plugin::MakeMaker
+      name: '@RJBS/@Basic/MakeMaker'
+      version: 4.102342
+    -
+      class: Dist::Zilla::Plugin::Manifest
+      name: '@RJBS/@Basic/Manifest'
+      version: 4.102342
+    -
+      class: Dist::Zilla::Plugin::TestRelease
+      name: '@RJBS/@Basic/TestRelease'
+      version: 4.102342
+    -
+      class: Dist::Zilla::Plugin::ConfirmRelease
+      name: '@RJBS/@Basic/ConfirmRelease'
+      version: 4.102342
+    -
+      class: Dist::Zilla::Plugin::UploadToCPAN
+      name: '@RJBS/@Basic/UploadToCPAN'
+      version: 4.102342
+    -
+      class: Dist::Zilla::Plugin::AutoPrereqs
+      name: '@RJBS/AutoPrereqs'
+      version: 4.102342
+    -
+      class: Dist::Zilla::Plugin::Git::NextVersion
+      name: '@RJBS/Git::NextVersion'
+      version: 1.102810
+    -
+      class: Dist::Zilla::Plugin::PkgVersion
+      name: '@RJBS/PkgVersion'
+      version: 4.102342
+    -
+      class: Dist::Zilla::Plugin::MetaConfig
+      name: '@RJBS/MetaConfig'
+      version: 4.102342
+    -
+      class: Dist::Zilla::Plugin::MetaJSON
+      name: '@RJBS/MetaJSON'
+      version: 4.102342
+    -
+      class: Dist::Zilla::Plugin::NextRelease
+      name: '@RJBS/NextRelease'
+      version: 4.102342
+    -
+      class: Dist::Zilla::Plugin::PodSyntaxTests
+      name: '@RJBS/PodSyntaxTests'
+      version: 4.102342
+    -
+      class: Dist::Zilla::Plugin::Repository
+      name: '@RJBS/Repository'
+      version: 0.14
+    -
+      class: Dist::Zilla::Plugin::Prereqs
+      config:
+        Dist::Zilla::Plugin::Prereqs:
+          phase: test
+          type: requires
+      name: '@RJBS/TestMoreWithSubtests'
+      version: 4.102342
+    -
+      class: Dist::Zilla::Plugin::PodWeaver
+      name: '@RJBS/PodWeaver'
+      version: 3.101641
+    -
+      class: Dist::Zilla::Plugin::Git::Check
+      name: '@RJBS/@Git/Check'
+      version: 1.102810
+    -
+      class: Dist::Zilla::Plugin::Git::Commit
+      name: '@RJBS/@Git/Commit'
+      version: 1.102810
+    -
+      class: Dist::Zilla::Plugin::Git::Tag
+      name: '@RJBS/@Git/Tag'
+      version: 1.102810
+    -
+      class: Dist::Zilla::Plugin::Git::Push
+      name: '@RJBS/@Git/Push'
+      version: 1.102810
+    -
+      class: Dist::Zilla::Plugin::FinderCode
+      name: ':InstallModules'
+      version: 4.102342
+    -
+      class: Dist::Zilla::Plugin::FinderCode
+      name: ':TestFiles'
+      version: 4.102342
+    -
+      class: Dist::Zilla::Plugin::FinderCode
+      name: ':ExecFiles'
+      version: 4.102342
+    -
+      class: Dist::Zilla::Plugin::FinderCode
+      name: ':ShareFiles'
+      version: 4.102342
+  zilla:
+    class: Dist::Zilla::Dist::Builder
+    config:
+      is_trial: 0
+    version: 4.102342

Modified: trunk/libstring-rewriteprefix-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libstring-rewriteprefix-perl/Makefile.PL?rev=64385&op=diff
==============================================================================
--- trunk/libstring-rewriteprefix-perl/Makefile.PL (original)
+++ trunk/libstring-rewriteprefix-perl/Makefile.PL Thu Oct 28 20:42:26 2010
@@ -1,20 +1,54 @@
+
 use strict;
-use ExtUtils::MakeMaker;
+use warnings;
 
-WriteMakefile(
-  NAME          => 'String::RewritePrefix',
-  VERSION_FROM  => 'lib/String/RewritePrefix.pm',
-  (eval { ExtUtils::MakeMaker->VERSION(6.21) } ? (LICENSE => 'perl') : ()),
-  PREREQ_PM     => {
-    'Test::More' => '0.47',
-    'Sub::Exporter' => 0,
+
+
+use ExtUtils::MakeMaker 6.31;
+
+
+
+my %WriteMakefileArgs = (
+  'ABSTRACT' => 'rewrite strings based on a set of known prefixes',
+  'AUTHOR' => 'Ricardo Signes <rjbs at cpan.org>',
+  'BUILD_REQUIRES' => {
+    'Test::More' => '0.96'
   },
-  (eval { ExtUtils::MakeMaker->VERSION(6.46) }
-    ? (META_MERGE => {
-        resources => {
-          Repository => 'http://github.com/rjbs/string-rewriteprefix'
-        }
-      })
-    : ()
-  ),
+  'CONFIGURE_REQUIRES' => {
+    'ExtUtils::MakeMaker' => '6.31'
+  },
+  'DISTNAME' => 'String-RewritePrefix',
+  'EXE_FILES' => [],
+  'LICENSE' => 'perl',
+  'NAME' => 'String::RewritePrefix',
+  'PREREQ_PM' => {
+    'Carp' => '0',
+    'Sub::Exporter' => '0.972'
+  },
+  'VERSION' => '0.006',
+  'test' => {
+    'TESTS' => 't/*.t'
+  }
 );
+
+
+unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) {
+  my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
+  my $pp = $WriteMakefileArgs{PREREQ_PM};
+  for my $mod ( keys %$br ) {
+    if ( exists $pp->{$mod} ) {
+      $pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod};
+    }
+    else {
+      $pp->{$mod} = $br->{$mod};
+    }
+  }
+}
+
+delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
+  unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
+
+WriteMakefile(%WriteMakefileArgs);
+
+
+

Modified: trunk/libstring-rewriteprefix-perl/README
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libstring-rewriteprefix-perl/README?rev=64385&op=diff
==============================================================================
--- trunk/libstring-rewriteprefix-perl/README (original)
+++ trunk/libstring-rewriteprefix-perl/README Thu Oct 28 20:42:26 2010
@@ -1,5 +1,13 @@
 
-perl Makefile.PL
-make
-make test
-sudo make install
+
+This archive contains the distribution String-RewritePrefix,
+version 0.006:
+
+  rewrite strings based on a set of known prefixes
+
+This software is copyright (c) 2010 by Ricardo Signes.
+
+This is free software; you can redistribute it and/or modify it under
+the same terms as the Perl 5 programming language system itself.
+
+

Modified: trunk/libstring-rewriteprefix-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libstring-rewriteprefix-perl/debian/changelog?rev=64385&op=diff
==============================================================================
--- trunk/libstring-rewriteprefix-perl/debian/changelog (original)
+++ trunk/libstring-rewriteprefix-perl/debian/changelog Thu Oct 28 20:42:26 2010
@@ -1,3 +1,14 @@
+libstring-rewriteprefix-perl (0.006-1) unstable; urgency=low
+
+  * New upstream release.
+  * debian/copyright: Formatting changes; refer to "Debian systems" instead of
+    "Debian GNU/Linux systems"; refer to /usr/share/common-licenses/GPL-1.
+  * Use source format 3.0 (quilt).
+  * Bump Standards-Version to 3.9.1.
+  * Add myself to Uploaders.
+
+ -- Ansgar Burchardt <ansgar at debian.org>  Thu, 28 Oct 2010 22:40:32 +0200
+
 libstring-rewriteprefix-perl (0.005-1) unstable; urgency=low
 
   [ Brian Cassidy ]

Modified: trunk/libstring-rewriteprefix-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libstring-rewriteprefix-perl/debian/control?rev=64385&op=diff
==============================================================================
--- trunk/libstring-rewriteprefix-perl/debian/control (original)
+++ trunk/libstring-rewriteprefix-perl/debian/control Thu Oct 28 20:42:26 2010
@@ -5,8 +5,8 @@
 Build-Depends-Indep: perl, libsub-exporter-perl
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
 Uploaders: Krzysztof Krzyżaniak (eloy) <eloy at debian.org>,
- Brian Cassidy <brian.cassidy at gmail.com>
-Standards-Version: 3.8.3
+ Brian Cassidy <brian.cassidy at gmail.com>, Ansgar Burchardt <ansgar at debian.org>
+Standards-Version: 3.9.1
 Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libstring-rewriteprefix-perl/
 Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libstring-rewriteprefix-perl/
 Homepage: http://search.cpan.org/dist/String-RewritePrefix/

Modified: trunk/libstring-rewriteprefix-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libstring-rewriteprefix-perl/debian/copyright?rev=64385&op=diff
==============================================================================
--- trunk/libstring-rewriteprefix-perl/debian/copyright (original)
+++ trunk/libstring-rewriteprefix-perl/debian/copyright Thu Oct 28 20:42:26 2010
@@ -1,29 +1,30 @@
-Format-Specification:
-    http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=196
-Upstream-Maintainer: Ricardo SIGNES <rjbs at cpan.org>
-Upstream-Source: http://search.cpan.org/dist/String-RewritePrefix/
-Upstream-Name: String-RewritePrefix
+Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135
+Maintainer: Ricardo SIGNES <rjbs at cpan.org>
+Source: http://search.cpan.org/dist/String-RewritePrefix/
+Name: String-RewritePrefix
 
 Files: *
-Copyright: 2008, by Ricardo SIGNES.
-License-Alias: Perl
-License: Artistic | GPL-1+
+Copyright: 2010, by Ricardo SIGNES.
+License: Artistic or GPL-1+
 
 Files: debian/*
-Copyright: 2009, Krzysztof Krzyżaniak (eloy) <eloy at debian.org>
+Copyright:
+ 2009, Krzysztof Krzyżaniak (eloy) <eloy at debian.org>
  2009, Brian Cassidy <brian.cassidy at gmail.com>
 License: Artistic | GPL-1+
 
 License: Artistic
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the Artistic License, which comes with Perl.
-    On Debian GNU/Linux systems, the complete text of the Artistic License
-    can be found in `/usr/share/common-licenses/Artistic'
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the Artistic License, which comes with Perl.
+ .
+ On Debian systems, the complete text of the Artistic License can be
+ found in `/usr/share/common-licenses/Artistic'
 
 License: GPL-1+
-    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.
-    On Debian GNU/Linux systems, the complete text of the GNU General
-    Public License can be found in `/usr/share/common-licenses/GPL'
+ 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.
+ .
+ On Debian systems, the complete text of version 1 of the GNU General
+ Public License can be found in `/usr/share/common-licenses/GPL-1'.

Added: trunk/libstring-rewriteprefix-perl/debian/source/format
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libstring-rewriteprefix-perl/debian/source/format?rev=64385&op=file
==============================================================================
--- trunk/libstring-rewriteprefix-perl/debian/source/format (added)
+++ trunk/libstring-rewriteprefix-perl/debian/source/format Thu Oct 28 20:42:26 2010
@@ -1,0 +1,1 @@
+3.0 (quilt)

Modified: trunk/libstring-rewriteprefix-perl/lib/String/RewritePrefix.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libstring-rewriteprefix-perl/lib/String/RewritePrefix.pm?rev=64385&op=diff
==============================================================================
--- trunk/libstring-rewriteprefix-perl/lib/String/RewritePrefix.pm (original)
+++ trunk/libstring-rewriteprefix-perl/lib/String/RewritePrefix.pm Thu Oct 28 20:42:26 2010
@@ -1,61 +1,17 @@
 use strict;
 use warnings;
 package String::RewritePrefix;
+BEGIN {
+  $String::RewritePrefix::VERSION = '0.006';
+}
 use Carp ();
+# ABSTRACT: rewrite strings based on a set of known prefixes
 
-use Sub::Exporter -setup => {
+# 0.972 allows \'method_name' form -- rjbs, 2010-10-25
+use Sub::Exporter 0.972 -setup => {
   exports => [ rewrite => \'_new_rewriter' ],
 };
 
-=head1 NAME
-
-String::RewritePrefix - rewrite strings based on a set of known prefixes
-
-=head1 VERSION
-
-version 0.005
-
-=head1 SYNOPSIS
-
-  use String::RewritePrefix;
-  my @to_load = String::RewritePrefix->rewrite(
-    { '' => 'MyApp::', '+' => '' },
-    qw(Plugin Mixin Addon +Corporate::Thinger),
-  );
-
-  # now you have:
-  qw(MyApp::Plugin MyApp::Mixin MyApp::Addon Corporate::Thinger)
-
-You can also import a rewrite routine:
-
-  use String::RewritePrefix rewrite => {
-    -as => 'rewrite_dt_prefix',
-    prefixes => { '' => 'MyApp::', '+' => '' },
-  };
-
-  my @to_load = rewrite_dt_prefix( qw(Plugin Mixin Addon +Corporate::Thinger));
-
-  # now you have:
-  qw(MyApp::Plugin MyApp::Mixin MyApp::Addon Corporate::Thinger)
-
-=cut
-
-our $VERSION = '0.005';
-
-=head1 METHODS
-
-=head2 rewrite
-
-  String::RewritePrefix->rewrite(\%prefix, @strings);
-
-This rewrites all the given strings using the rules in C<%prefix>.  Its keys
-are known prefixes for which its values will be substituted.  This is performed
-in longest-first order, and only one prefix will be rewritten.
-
-If the prefix value is a coderef, it will be executed with the remaining string
-as its only argument.  The return value will be used as the prefix.
-
-=cut
 
 sub rewrite {
   my ($self, $arg, @rest) = @_;
@@ -85,7 +41,8 @@
         if (index($str, $rewrites[$i]) == 0) {
           if (ref $rewrites[$i+1]) {
             my $rest = substr $str, length($rewrites[$i]);
-            push @result, $rewrites[$i+1]->($rest) . $rest;
+            my $str  = $rewrites[ $i+1 ]->($rest);
+            push @result, (defined $str ? $str : '') . $rest;
           } else {
             push @result, $rewrites[$i+1] . substr $str, length($rewrites[$i]);
           }
@@ -100,17 +57,65 @@
   };
 }
 
+1;
+
+__END__
+=pod
+
+=head1 NAME
+
+String::RewritePrefix - rewrite strings based on a set of known prefixes
+
+=head1 VERSION
+
+version 0.006
+
+=head1 SYNOPSIS
+
+  use String::RewritePrefix;
+  my @to_load = String::RewritePrefix->rewrite(
+    { '' => 'MyApp::', '+' => '' },
+    qw(Plugin Mixin Addon +Corporate::Thinger),
+  );
+
+  # now you have:
+  qw(MyApp::Plugin MyApp::Mixin MyApp::Addon Corporate::Thinger)
+
+You can also import a rewrite routine:
+
+  use String::RewritePrefix rewrite => {
+    -as => 'rewrite_dt_prefix',
+    prefixes => { '' => 'MyApp::', '+' => '' },
+  };
+
+  my @to_load = rewrite_dt_prefix( qw(Plugin Mixin Addon +Corporate::Thinger));
+
+  # now you have:
+  qw(MyApp::Plugin MyApp::Mixin MyApp::Addon Corporate::Thinger)
+
+=head1 METHODS
+
+=head2 rewrite
+
+  String::RewritePrefix->rewrite(\%prefix, @strings);
+
+This rewrites all the given strings using the rules in C<%prefix>.  Its keys
+are known prefixes for which its values will be substituted.  This is performed
+in longest-first order, and only one prefix will be rewritten.
+
+If the prefix value is a coderef, it will be executed with the remaining string
+as its only argument.  The return value will be used as the prefix.
+
 =head1 AUTHOR
 
-Ricardo SIGNES <rjbs at cpan.org>
+Ricardo Signes <rjbs at cpan.org>
 
 =head1 COPYRIGHT AND LICENSE
 
-This software is copyright (c) 2008 by Ricardo SIGNES.
+This software is copyright (c) 2010 by Ricardo Signes.
 
 This is free software; you can redistribute it and/or modify it under
-the same terms as perl itself.
+the same terms as the Perl 5 programming language system itself.
 
 =cut
 
-1;

Modified: trunk/libstring-rewriteprefix-perl/t/basic.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libstring-rewriteprefix-perl/t/basic.t?rev=64385&op=diff
==============================================================================
--- trunk/libstring-rewriteprefix-perl/t/basic.t (original)
+++ trunk/libstring-rewriteprefix-perl/t/basic.t Thu Oct 28 20:42:26 2010
@@ -11,6 +11,7 @@
     '-' => 'Tet::',
     '@' => 'KaTet::',
     '+' => sub { $_[0] . '::Foo::' },
+    '!' => sub { return undef },
   },
 });
 
@@ -20,11 +21,12 @@
   Plinko
   - at Oops
   +Bar
+  !None
 ));
 
 is_deeply(
   \@results,
-  [ qw(Tet::Corporation KaTet::Roller Plinko Tet::@Oops Bar::Foo::Bar) ],
+  [ qw(Tet::Corporation KaTet::Roller Plinko Tet::@Oops Bar::Foo::Bar None) ],
   "rewrote prefices",
 );
 




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