r65946 - in /branches/upstream/libversion-perl/current: Build.PL Changes MANIFEST META.yml Makefile.PL README lib/version.pm lib/version.pod t/01base.t t/02derived.t t/03require.t t/04strict_lax.t vperl/vpp.pm vutil/lib/version/vxs.pm
jawnsy-guest at users.alioth.debian.org
jawnsy-guest at users.alioth.debian.org
Sat Dec 18 14:25:27 UTC 2010
Author: jawnsy-guest
Date: Sat Dec 18 14:25:08 2010
New Revision: 65946
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=65946
Log:
[svn-upgrade] new version libversion-perl (0.8700)
Added:
branches/upstream/libversion-perl/current/t/04strict_lax.t
Removed:
branches/upstream/libversion-perl/current/Build.PL
Modified:
branches/upstream/libversion-perl/current/Changes
branches/upstream/libversion-perl/current/MANIFEST
branches/upstream/libversion-perl/current/META.yml
branches/upstream/libversion-perl/current/Makefile.PL
branches/upstream/libversion-perl/current/README
branches/upstream/libversion-perl/current/lib/version.pm
branches/upstream/libversion-perl/current/lib/version.pod
branches/upstream/libversion-perl/current/t/01base.t
branches/upstream/libversion-perl/current/t/02derived.t
branches/upstream/libversion-perl/current/t/03require.t
branches/upstream/libversion-perl/current/vperl/vpp.pm
branches/upstream/libversion-perl/current/vutil/lib/version/vxs.pm
Modified: branches/upstream/libversion-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libversion-perl/current/Changes?rev=65946&op=diff
==============================================================================
--- branches/upstream/libversion-perl/current/Changes (original)
+++ branches/upstream/libversion-perl/current/Changes Sat Dec 18 14:25:08 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: branches/upstream/libversion-perl/current/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libversion-perl/current/MANIFEST?rev=65946&op=diff
==============================================================================
--- branches/upstream/libversion-perl/current/MANIFEST (original)
+++ branches/upstream/libversion-perl/current/MANIFEST Sat Dec 18 14:25:08 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: branches/upstream/libversion-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libversion-perl/current/META.yml?rev=65946&op=diff
==============================================================================
--- branches/upstream/libversion-perl/current/META.yml (original)
+++ branches/upstream/libversion-perl/current/META.yml Sat Dec 18 14:25:08 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: branches/upstream/libversion-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libversion-perl/current/Makefile.PL?rev=65946&op=diff
==============================================================================
--- branches/upstream/libversion-perl/current/Makefile.PL (original)
+++ branches/upstream/libversion-perl/current/Makefile.PL Sat Dec 18 14:25:08 2010
@@ -62,7 +62,7 @@
COMPRESS => 'gzip -9f',
SUFFIX => 'gz',
PREOP => (
- 'svk log -x | gnuify-changelog.pl > Changes'
+ 'hg log --style changelog > Changes'
),
},
Modified: branches/upstream/libversion-perl/current/README
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libversion-perl/current/README?rev=65946&op=diff
==============================================================================
--- branches/upstream/libversion-perl/current/README (original)
+++ branches/upstream/libversion-perl/current/README Sat Dec 18 14:25:08 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: branches/upstream/libversion-perl/current/lib/version.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libversion-perl/current/lib/version.pm?rev=65946&op=diff
==============================================================================
--- branches/upstream/libversion-perl/current/lib/version.pm (original)
+++ branches/upstream/libversion-perl/current/lib/version.pm Sat Dec 18 14:25:08 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: branches/upstream/libversion-perl/current/lib/version.pod
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libversion-perl/current/lib/version.pod?rev=65946&op=diff
==============================================================================
--- branches/upstream/libversion-perl/current/lib/version.pod (original)
+++ branches/upstream/libversion-perl/current/lib/version.pod Sat Dec 18 14:25:08 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: branches/upstream/libversion-perl/current/t/01base.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libversion-perl/current/t/01base.t?rev=65946&op=diff
==============================================================================
--- branches/upstream/libversion-perl/current/t/01base.t (original)
+++ branches/upstream/libversion-perl/current/t/01base.t Sat Dec 18 14:25:08 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: branches/upstream/libversion-perl/current/t/02derived.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libversion-perl/current/t/02derived.t?rev=65946&op=diff
==============================================================================
--- branches/upstream/libversion-perl/current/t/02derived.t (original)
+++ branches/upstream/libversion-perl/current/t/02derived.t Sat Dec 18 14:25:08 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: branches/upstream/libversion-perl/current/t/03require.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libversion-perl/current/t/03require.t?rev=65946&op=diff
==============================================================================
--- branches/upstream/libversion-perl/current/t/03require.t (original)
+++ branches/upstream/libversion-perl/current/t/03require.t Sat Dec 18 14:25:08 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: branches/upstream/libversion-perl/current/t/04strict_lax.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libversion-perl/current/t/04strict_lax.t?rev=65946&op=file
==============================================================================
--- branches/upstream/libversion-perl/current/t/04strict_lax.t (added)
+++ branches/upstream/libversion-perl/current/t/04strict_lax.t Sat Dec 18 14:25:08 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: branches/upstream/libversion-perl/current/vperl/vpp.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libversion-perl/current/vperl/vpp.pm?rev=65946&op=diff
==============================================================================
--- branches/upstream/libversion-perl/current/vperl/vpp.pm (original)
+++ branches/upstream/libversion-perl/current/vperl/vpp.pm Sat Dec 18 14:25:08 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: branches/upstream/libversion-perl/current/vutil/lib/version/vxs.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libversion-perl/current/vutil/lib/version/vxs.pm?rev=65946&op=diff
==============================================================================
--- branches/upstream/libversion-perl/current/vutil/lib/version/vxs.pm (original)
+++ branches/upstream/libversion-perl/current/vutil/lib/version/vxs.pm Sat Dec 18 14:25:08 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