r65948 - in /trunk/libversion-perl: ./ debian/ lib/ t/ vperl/ vutil/lib/version/

jawnsy-guest at users.alioth.debian.org jawnsy-guest at users.alioth.debian.org
Sat Dec 18 14:48:33 UTC 2010


Author: jawnsy-guest
Date: Sat Dec 18 14:48:15 2010
New Revision: 65948

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=65948
Log:
No significant user-visible changes
IGNORE-VERSION: 1:0.8700-1
  + Minor documentation changes [RT#57950, RT#56737]
* Standards-Version 3.9.1 (no changes)
* Downgrade version dependency on debhelper 7.3.7 to 7, we are
  building exclusively with ExtUtils::MakeMaker
* New upstream release 0.8500-1

Added:
    trunk/libversion-perl/t/04strict_lax.t
Removed:
    trunk/libversion-perl/Build.PL
Modified:
    trunk/libversion-perl/Changes
    trunk/libversion-perl/MANIFEST
    trunk/libversion-perl/META.yml
    trunk/libversion-perl/Makefile.PL
    trunk/libversion-perl/README
    trunk/libversion-perl/debian/changelog
    trunk/libversion-perl/debian/control
    trunk/libversion-perl/debian/copyright
    trunk/libversion-perl/debian/rules
    trunk/libversion-perl/lib/version.pm
    trunk/libversion-perl/lib/version.pod
    trunk/libversion-perl/t/01base.t
    trunk/libversion-perl/t/02derived.t
    trunk/libversion-perl/t/03require.t
    trunk/libversion-perl/vperl/vpp.pm
    trunk/libversion-perl/vutil/lib/version/vxs.pm

Modified: trunk/libversion-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libversion-perl/Changes?rev=65948&op=diff
==============================================================================
--- trunk/libversion-perl/Changes (original)
+++ trunk/libversion-perl/Changes Sat Dec 18 14:48:15 2010
@@ -1,8 +1,41 @@
+2010-12-09  John Peacock  <john.peacock at havurah-software.org>
+
+	* .hgtags:
+	Tagging version '0.87' using shipit.
+	[f8caa8f3a657] [tip]
+
+	* Build.PL, MANIFEST, Makefile.PL, README, lib/version.pm, t/01base.t,
+	t/02derived.t, t/03require.t, vperl/vpp.pm,
+	vutil/lib/version/vxs.pm:
+	Remove support for Build.PL to keep from introducing circular
+	dependencies.
+	[1d290fc3106c] [0.87]
+
+2010-11-27  John Peacock  <john.peacock at havurah-software.org>
+
+	* lib/version.pod:
+	Apply misc POD cleanup. Resolves:
+	https://rt.cpan.org/Ticket/Display.html?id=57950
+	https://rt.cpan.org/Ticket/Display.html?id=56737
+	[afc2d76243df]
+
+2010-11-26  John Peacock  <john.peacock at havurah-software.org>
+
+	* .hgtags:
+	Tagging version '0.86' using shipit.
+	[7c17b9c1c275]
+
+	* MANIFEST, README, lib/version.pm, t/01base.t, t/02derived.t,
+	t/03require.t, t/04strict_lax.t, vperl/vpp.pm,
+	vutil/lib/version/vxs.pm:
+	Fix export of is_strict/is_lax and add strict/lax tests from core
+	[db0bb33d2774] [0.86]
+
 2010-10-25  John Peacock  <john.peacock at havurah-software.org>
 
 	* .hgtags:
 	Tagging version '0.85' using shipit.
-	[b1a798a38d69] [tip]
+	[b1a798a38d69]
 
 	* MANIFEST, MANIFEST.SKIP, README, lib/version.pm, t/01base.t,
 	t/02derived.t, t/03require.t, vperl/vpp.pm,

Modified: trunk/libversion-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libversion-perl/MANIFEST?rev=65948&op=diff
==============================================================================
--- trunk/libversion-perl/MANIFEST (original)
+++ trunk/libversion-perl/MANIFEST Sat Dec 18 14:48:15 2010
@@ -1,4 +1,3 @@
-Build.PL
 Changes
 lib/version.pm
 lib/version.pod
@@ -12,6 +11,7 @@
 t/01base.t
 t/02derived.t
 t/03require.t
+t/04strict_lax.t
 t/coretests.pm
 t/survey_locales
 vperl/vpp.pm

Modified: trunk/libversion-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libversion-perl/META.yml?rev=65948&op=diff
==============================================================================
--- trunk/libversion-perl/META.yml (original)
+++ trunk/libversion-perl/META.yml Sat Dec 18 14:48:15 2010
@@ -1,27 +1,23 @@
----
-name: version
-version: 0.85
+--- #YAML:1.0
+name:               version
+version:            0.87
+abstract:           Structured version objects
 author:
-  - 'John Peacock E<lt>jpeacock at cpan.orgE<gt>'
-abstract: Perl extension for Version Objects
-license: perl
+    - John Peacock <jpeacock at cpan.org>
+license:            unknown
+distribution_type:  module
+configure_requires:
+    ExtUtils::MakeMaker:  0
+build_requires:
+    ExtUtils::MakeMaker:  0
 requires:
-  File::Temp: '>= 0.13'
-  Test::More: '>= 0.45'
-  perl: '> 5.005'
-configure_requires:
-  Module::Build: 0.340201
-dynamic_config: 1
-generated_by: Module::Build version 0.340201
+    File::Temp:  0.13
+    Test::More:  0.45
+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
-provides:
-  version:
-    file: lib/version.pm
-    version: 0.85
-  version::vxs:
-    file: vutil/lib/version/vxs.pm
-    version: 0.85
-resources:
-  license: http://dev.perl.org/licenses/
+    url:      http://module-build.sourceforge.net/META-spec-v1.4.html
+    version:  1.4

Modified: trunk/libversion-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libversion-perl/Makefile.PL?rev=65948&op=diff
==============================================================================
--- trunk/libversion-perl/Makefile.PL (original)
+++ trunk/libversion-perl/Makefile.PL Sat Dec 18 14:48:15 2010
@@ -62,7 +62,7 @@
                        COMPRESS => 'gzip -9f', 
                        SUFFIX => 'gz',
                        PREOP  => (
-                          'svk log -x | gnuify-changelog.pl > Changes'
+                          'hg log --style changelog > Changes'
                        ),
                    },
 

Modified: trunk/libversion-perl/README
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libversion-perl/README?rev=65948&op=diff
==============================================================================
--- trunk/libversion-perl/README (original)
+++ trunk/libversion-perl/README Sat Dec 18 14:48:15 2010
@@ -1,4 +1,4 @@
-version 0.85
+version 0.87
 ==================================
 
 Full version object support, with patch for bug in Perl 5.10.0 core
@@ -9,10 +9,20 @@
 5.10.0 to segfault.  As long as some module calls 'use version', then the
 replacement code will take effect and Perl will not crash.
 
+Major Changes in 0.87 - 2010-12-09
+=====================================
+Remove Build.PL since there are modules in the Module::Build tool chain
+that require version.pm, leading to circular dependencies.  This also allows
+Module::Build itself to depend on version.pm.
+
+Major Changes in 0.86 - 2010-11-26
+=====================================
+is_strict/is_lax were not exported correctly (which no one noticed).  Also
+pull in strict/lax tests from core.
+
 Major Changes in 0.85 - 2010-10-25
 =====================================
-Don't include MYMETA.yml file in distro (Module::Build should warn about
-this I think).
+Don't include MYMETA.yml file in distro
 
 Major Changes in 0.84 - 2010-10-24
 =====================================

Modified: trunk/libversion-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libversion-perl/debian/changelog?rev=65948&op=diff
==============================================================================
--- trunk/libversion-perl/debian/changelog (original)
+++ trunk/libversion-perl/debian/changelog Sat Dec 18 14:48:15 2010
@@ -1,14 +1,22 @@
-libversion-perl (1:0.8500-1) UNRELEASED; urgency=low
+libversion-perl (1:0.8700-1) UNRELEASED; urgency=low
+
+  No significant user-visible changes
+  IGNORE-VERSION: 1:0.8700-1
+
+  [ Jonathan Yu ]
+  * New upstream release
+    + Minor documentation changes [RT#57950, RT#56737]
+  * Standards-Version 3.9.1 (no changes)
+  * Downgrade version dependency on debhelper 7.3.7 to 7, we are
+    building exclusively with ExtUtils::MakeMaker
 
   [ Nicholas Bamber ]
-  IGNORE-VERSION: 1:0.8500-1
-
-  * New upstream release
+  * New upstream release 0.8500-1
 
   [ Ansgar Burchardt ]
   * Update my email address.
 
- -- Nicholas Bamber <nicholas at periapt.co.uk>  Sun, 31 Oct 2010 00:00:42 +0100
+ -- Jonathan Yu <jawnsy at cpan.org>  Sat, 18 Dec 2010 09:43:05 -0500
 
 libversion-perl (1:0.8200-1) unstable; urgency=low
 

Modified: trunk/libversion-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libversion-perl/debian/control?rev=65948&op=diff
==============================================================================
--- trunk/libversion-perl/debian/control (original)
+++ trunk/libversion-perl/debian/control Sat Dec 18 14:48:15 2010
@@ -1,11 +1,10 @@
 Source: libversion-perl
 Section: perl
 Priority: optional
-Build-Depends: debhelper (>= 7.3.7~), perl (>= 5.10) | libmodule-build-perl,
- perl, locales-all
+Build-Depends: debhelper (>= 7), perl, locales-all
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
-Uploaders: Ansgar Burchardt <ansgar at debian.org>
-Standards-Version: 3.8.4
+Uploaders: Ansgar Burchardt <ansgar at debian.org>, Jonathan Yu <jawnsy at cpan.org>
+Standards-Version: 3.9.1
 Homepage: http://search.cpan.org/dist/version/
 Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libversion-perl/
 Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libversion-perl/

Modified: trunk/libversion-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libversion-perl/debian/copyright?rev=65948&op=diff
==============================================================================
--- trunk/libversion-perl/debian/copyright (original)
+++ trunk/libversion-perl/debian/copyright Sat Dec 18 14:48:15 2010
@@ -16,14 +16,15 @@
 
 Files: debian/*
 Copyright: 2010, Ansgar Burchardt <ansgar at debian.org>
+ 2010, Jonathan Yu <jawnsy at cpan.org>
 License: Artistic or 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'
+ 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
@@ -31,5 +32,5 @@
  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'
+ On Debian systems, the complete text of the GNU General Public
+ License can be found in `/usr/share/common-licenses/GPL'

Modified: trunk/libversion-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libversion-perl/debian/rules?rev=65948&op=diff
==============================================================================
--- trunk/libversion-perl/debian/rules (original)
+++ trunk/libversion-perl/debian/rules Sat Dec 18 14:48:15 2010
@@ -1,4 +1,4 @@
 #!/usr/bin/make -f
 
 %:
-	dh --buildsystem=perl_build $@
+	dh $@

Modified: trunk/libversion-perl/lib/version.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libversion-perl/lib/version.pm?rev=65948&op=diff
==============================================================================
--- trunk/libversion-perl/lib/version.pm (original)
+++ trunk/libversion-perl/lib/version.pm Sat Dec 18 14:48:15 2010
@@ -6,7 +6,7 @@
 
 use vars qw(@ISA $VERSION $CLASS $STRICT $LAX *declare *qv);
 
-$VERSION = 0.85;
+$VERSION = 0.87;
 
 $CLASS = 'version';
 
@@ -197,14 +197,12 @@
     }
 
     if (exists($args{'is_strict'})) {
-	*{$callpkg.'::is_strict'} = 
-	    sub {return $class->is_strict(shift)}
+	*{$callpkg.'::is_strict'} = \&version::is_strict
 	  unless defined(&{$callpkg.'::is_strict'});
     }
 
     if (exists($args{'is_lax'})) {
-	*{$callpkg.'::is_lax'} = 
-	    sub {return $class->is_lax(shift)}
+	*{$callpkg.'::is_lax'} = \&version::is_lax
 	  unless defined(&{$callpkg.'::is_lax'});
     }
 }

Modified: trunk/libversion-perl/lib/version.pod
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libversion-perl/lib/version.pod?rev=65948&op=diff
==============================================================================
--- trunk/libversion-perl/lib/version.pod (original)
+++ trunk/libversion-perl/lib/version.pod Sat Dec 18 14:48:15 2010
@@ -59,7 +59,7 @@
 =item Dotted Decimal Versions
 
 The more modern form of version assignment, with 3 (or potentially more)
-integers seperated by decimal points (e.g. v1.2.3).  This is the form that
+integers separated by decimal points (e.g. v1.2.3).  This is the form that
 Perl itself has used since 5.6.0 was released.  The leading "v" is now
 strongly recommended for clarity, and will throw a warning in a future
 release if omitted.
@@ -210,7 +210,7 @@
 
 =head2 How to compare version objects
 
-Version objects overload the C<cmp> and C<< E<lt>=E<gt> >> operators.  Perl
+Version objects overload the C<cmp> and C<< <=> >> operators.  Perl
 automatically generates all of the other comparison operators based on those
 two so all the normal logical comparisons will work.
 

Modified: trunk/libversion-perl/t/01base.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libversion-perl/t/01base.t?rev=65948&op=diff
==============================================================================
--- trunk/libversion-perl/t/01base.t (original)
+++ trunk/libversion-perl/t/01base.t Sat Dec 18 14:48:15 2010
@@ -9,7 +9,7 @@
 
 BEGIN {
     require "t/coretests.pm";
-    use_ok('version', 0.85);
+    use_ok('version', 0.87);
 }
 
 diag "Tests with base class" if $Verbose;

Modified: trunk/libversion-perl/t/02derived.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libversion-perl/t/02derived.t?rev=65948&op=diff
==============================================================================
--- trunk/libversion-perl/t/02derived.t (original)
+++ trunk/libversion-perl/t/02derived.t Sat Dec 18 14:48:15 2010
@@ -10,7 +10,7 @@
 
 BEGIN {
     require "t/coretests.pm";
-    use_ok("version", 0.85);
+    use_ok("version", 0.87);
     # If we made it this far, we are ok.
 }
 

Modified: trunk/libversion-perl/t/03require.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libversion-perl/t/03require.t?rev=65948&op=diff
==============================================================================
--- trunk/libversion-perl/t/03require.t (original)
+++ trunk/libversion-perl/t/03require.t Sat Dec 18 14:48:15 2010
@@ -13,7 +13,7 @@
 # Don't want to use, because we need to make sure that the import doesn't
 # fire just yet (some code does this to avoid importing qv() and delare()).
 require_ok("version");
-is $version::VERSION, 0.85, "Make sure we have the correct class";
+is $version::VERSION, 0.87, "Make sure we have the correct class";
 ok(!"main"->can("qv"), "We don't have the imported qv()");
 ok(!"main"->can("declare"), "We don't have the imported declare()");
 

Added: trunk/libversion-perl/t/04strict_lax.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libversion-perl/t/04strict_lax.t?rev=65948&op=file
==============================================================================
--- trunk/libversion-perl/t/04strict_lax.t (added)
+++ trunk/libversion-perl/t/04strict_lax.t Sat Dec 18 14:48:15 2010
@@ -1,0 +1,75 @@
+#! /usr/local/perl -w
+# Before `make install' is performed this script should be runnable with
+# `make test'. After `make install' it should work as `perl test.pl'
+
+#########################
+
+use Test::More qw/no_plan/;
+my $Verbose;
+# do strict lax tests in a sub to isolate a package to test importing
+SKIP: {
+    skip 'No extended regexes Perl < 5.006', 172 
+    	if $] < 5.006_000;
+    strict_lax_tests();
+}
+
+sub strict_lax_tests {
+  package temp12345;
+  # copied from perl core test t/op/packagev.t
+  # format: STRING STRICT_OK LAX_OK
+  my $strict_lax_data = << 'CASE_DATA';
+1.00		pass	pass
+1.00001		pass	pass
+0.123		pass	pass
+12.345		pass	pass
+42		pass	pass
+0		pass	pass
+0.0		pass	pass
+v1.2.3		pass	pass
+v1.2.3.4	pass	pass
+v0.1.2		pass	pass
+v0.0.0		pass	pass
+01		fail	pass
+01.0203		fail	pass
+v01		fail	pass
+v01.02.03	fail	pass
+.1		fail	pass
+.1.2		fail	pass
+1.		fail	pass
+1.a		fail	fail
+1._		fail	fail
+1.02_03		fail	pass
+v1.2_3		fail	pass
+v1.02_03	fail	pass
+v1.2_3_4	fail	fail
+v1.2_3.4	fail	fail
+1.2_3.4		fail	fail
+0_		fail	fail
+1_		fail	fail
+1_.		fail	fail
+1.1_		fail	fail
+1.02_03_04	fail	fail
+1.2.3		fail	pass
+v1.2		fail	pass
+v0		fail	pass
+v1		fail	pass
+v.1.2.3		fail	fail
+v		fail	fail
+v1.2345.6	fail	pass
+undef		fail	pass
+1a		fail	fail
+1.2a3		fail	fail
+bar		fail	fail
+_		fail	fail
+CASE_DATA
+
+  require version;
+  version->import( qw/is_strict is_lax/ );
+  for my $case ( split qr/\n/, $strict_lax_data ) {
+    my ($v, $strict, $lax) = split qr/\t+/, $case;
+    main::ok( $strict eq 'pass' ? is_strict($v) : ! is_strict($v), "is_strict($v) [$strict]" );
+    main::ok( $strict eq 'pass' ? version::is_strict($v) : ! version::is_strict($v), "version::is_strict($v) [$strict]" );
+    main::ok( $lax eq 'pass' ? is_lax($v) : ! is_lax($v), "is_lax($v) [$lax]" );
+    main::ok( $lax eq 'pass' ? version::is_lax($v) : ! version::is_lax($v), "version::is_lax($v) [$lax]" );
+  }
+}

Modified: trunk/libversion-perl/vperl/vpp.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libversion-perl/vperl/vpp.pm?rev=65948&op=diff
==============================================================================
--- trunk/libversion-perl/vperl/vpp.pm (original)
+++ trunk/libversion-perl/vperl/vpp.pm Sat Dec 18 14:48:15 2010
@@ -121,7 +121,7 @@
 use POSIX qw/locale_h/;
 use locale;
 use vars qw ($VERSION @ISA @REGEXS);
-$VERSION = 0.85;
+$VERSION = 0.87;
 
 use overload (
     '""'       => \&stringify,

Modified: trunk/libversion-perl/vutil/lib/version/vxs.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libversion-perl/vutil/lib/version/vxs.pm?rev=65948&op=diff
==============================================================================
--- trunk/libversion-perl/vutil/lib/version/vxs.pm (original)
+++ trunk/libversion-perl/vutil/lib/version/vxs.pm Sat Dec 18 14:48:15 2010
@@ -6,7 +6,7 @@
 
 use vars qw(@ISA $VERSION $CLASS );
 
-$VERSION = 0.85;
+$VERSION = 0.87;
 
 $CLASS = 'version::vxs';
 




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