r30982 - in /branches/upstream/libparams-classify-perl/current: .cvsignore Build.PL Changes MANIFEST META.yml Makefile.PL README SIGNATURE lib/Params/Classify.pm t/pod_cvg.t t/pod_syn.t t/purity.t
rmayorga at users.alioth.debian.org
rmayorga at users.alioth.debian.org
Sat Feb 21 21:18:41 UTC 2009
Author: rmayorga
Date: Sat Feb 21 21:18:37 2009
New Revision: 30982
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=30982
Log:
[svn-upgrade] Integrating new upstream version, libparams-classify-perl (0.006)
Added:
branches/upstream/libparams-classify-perl/current/Build.PL
branches/upstream/libparams-classify-perl/current/SIGNATURE
branches/upstream/libparams-classify-perl/current/t/pod_cvg.t
branches/upstream/libparams-classify-perl/current/t/pod_syn.t
Removed:
branches/upstream/libparams-classify-perl/current/t/purity.t
Modified:
branches/upstream/libparams-classify-perl/current/.cvsignore
branches/upstream/libparams-classify-perl/current/Changes
branches/upstream/libparams-classify-perl/current/MANIFEST
branches/upstream/libparams-classify-perl/current/META.yml
branches/upstream/libparams-classify-perl/current/Makefile.PL
branches/upstream/libparams-classify-perl/current/README
branches/upstream/libparams-classify-perl/current/lib/Params/Classify.pm
Modified: branches/upstream/libparams-classify-perl/current/.cvsignore
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libparams-classify-perl/current/.cvsignore?rev=30982&op=diff
==============================================================================
--- branches/upstream/libparams-classify-perl/current/.cvsignore (original)
+++ branches/upstream/libparams-classify-perl/current/.cvsignore Sat Feb 21 21:18:37 2009
@@ -1,4 +1,4 @@
-Makefile Makefile.old
-blib pm_to_blib
-META.yml
+Build Makefile
+_build blib
+META.yml Makefile.PL SIGNATURE
Params-Classify-*
Added: branches/upstream/libparams-classify-perl/current/Build.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libparams-classify-perl/current/Build.PL?rev=30982&op=file
==============================================================================
--- branches/upstream/libparams-classify-perl/current/Build.PL (added)
+++ branches/upstream/libparams-classify-perl/current/Build.PL Sat Feb 21 21:18:37 2009
@@ -1,0 +1,31 @@
+use warnings;
+use strict;
+no strict "subs";
+
+use Module::Build;
+
+Module::Build->new(
+ module_name => "Params::Classify",
+ license => "perl",
+ build_requires => {
+ Module::Build => 0,
+ Test::More => 0,
+ perl => "5.006",
+ strict => 0,
+ warnings => 0,
+ },
+ requires => {
+ Exporter => 0,
+ Scalar::Util => "1.01",
+ base => 0,
+ perl => "5.006",
+ strict => 0,
+ warnings => 0,
+ },
+ dynamic_config => 0,
+ meta_add => { distribution_type => "module" },
+ create_makefile_pl => "passthrough",
+ sign => 1,
+)->create_build_script;
+
+exit 0;
Modified: branches/upstream/libparams-classify-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libparams-classify-perl/current/Changes?rev=30982&op=diff
==============================================================================
--- branches/upstream/libparams-classify-perl/current/Changes (original)
+++ branches/upstream/libparams-classify-perl/current/Changes Sat Feb 21 21:18:37 2009
@@ -1,3 +1,21 @@
+version 0.006; 2009-02-15
+
+ * withdraw is_pure_string() and is_pure_number() functions, because
+ they've never worked right and bring in a big dependency for marginal
+ utility
+
+ * use "base" pragma to import Exporter behaviour
+
+ * test POD syntax and coverage
+
+ * build with Module::Build instead of ExtUtils::MakeMaker
+
+ * complete dependency list
+
+ * include signature in distribution
+
+ * in documentation, separate "license" section from "copyright" section
+
version 0.005; 2007-09-02
* in t/purity.t, modify purity test on dualvar(0, "0") to operate
Modified: branches/upstream/libparams-classify-perl/current/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libparams-classify-perl/current/MANIFEST?rev=30982&op=diff
==============================================================================
--- branches/upstream/libparams-classify-perl/current/MANIFEST (original)
+++ branches/upstream/libparams-classify-perl/current/MANIFEST Sat Feb 21 21:18:37 2009
@@ -1,4 +1,5 @@
.cvsignore
+Build.PL
Changes
MANIFEST
META.yml
@@ -7,5 +8,7 @@
lib/Params/Classify.pm
t/blessed.t
t/classify.t
-t/purity.t
+t/pod_cvg.t
+t/pod_syn.t
t/ref.t
+SIGNATURE Added here by Module::Build
Modified: branches/upstream/libparams-classify-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libparams-classify-perl/current/META.yml?rev=30982&op=diff
==============================================================================
--- branches/upstream/libparams-classify-perl/current/META.yml (original)
+++ branches/upstream/libparams-classify-perl/current/META.yml Sat Feb 21 21:18:37 2009
@@ -1,12 +1,32 @@
-# http://module-build.sourceforge.net/META-spec.html
-#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX#
-name: Params-Classify
-version: 0.005
-version_from: lib/Params/Classify.pm
-installdirs: site
+---
+name: Params-Classify
+version: 0.006
+author:
+ - "Andrew Main (Zefram) <zefram at fysh.org>"
+abstract: argument type classification
+license: perl
requires:
- Scalar::Number: 0.000
- Scalar::Util: 1.01
-
+ Exporter: 0
+ Scalar::Util: 1.01
+ base: 0
+ perl: 5.006
+ strict: 0
+ warnings: 0
+build_requires:
+ Module::Build: 0
+ Test::More: 0
+ perl: 5.006
+ strict: 0
+ warnings: 0
+dynamic_config: 0
+generated_by: Module::Build version 0.280801
+meta-spec:
+ url: http://module-build.sourceforge.net/META-spec-v1.2.html
+ version: 1.2
distribution_type: module
-generated_by: ExtUtils::MakeMaker version 6.30_01
+provides:
+ Params::Classify:
+ file: lib/Params/Classify.pm
+ version: 0.006
+resources:
+ license: http://dev.perl.org/licenses/
Modified: branches/upstream/libparams-classify-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libparams-classify-perl/current/Makefile.PL?rev=30982&op=diff
==============================================================================
--- branches/upstream/libparams-classify-perl/current/Makefile.PL (original)
+++ branches/upstream/libparams-classify-perl/current/Makefile.PL Sat Feb 21 21:18:37 2009
@@ -1,10 +1,32 @@
-use ExtUtils::MakeMaker;
-
-WriteMakefile(
- NAME => "Params::Classify",
- VERSION_FROM => "lib/Params/Classify.pm",
- PREREQ_PM => {
- Scalar::Number => "0.000",
- Scalar::Util => "1.01",
- },
-);
+# Note: this file was auto-generated by Module::Build::Compat version 0.2808_01
+require 5.006;
+
+ unless (eval "use Module::Build::Compat 0.02; 1" ) {
+ print "This module requires Module::Build to install itself.\n";
+
+ require ExtUtils::MakeMaker;
+ my $yn = ExtUtils::MakeMaker::prompt
+ (' Install Module::Build now from CPAN?', 'y');
+
+ unless ($yn =~ /^y/i) {
+ die " *** Cannot install without Module::Build. Exiting ...\n";
+ }
+
+ require Cwd;
+ require File::Spec;
+ require CPAN;
+
+ # Save this 'cause CPAN will chdir all over the place.
+ my $cwd = Cwd::cwd();
+
+ CPAN::Shell->install('Module::Build::Compat');
+ CPAN::Shell->expand("Module", "Module::Build::Compat")->uptodate
+ or die "Couldn't install Module::Build, giving up.\n";
+
+ chdir $cwd or die "Cannot chdir() back to $cwd: $!";
+ }
+ eval "use Module::Build::Compat 0.02; 1" or die $@;
+
+ Module::Build::Compat->run_build_pl(args => \@ARGV);
+ require Module::Build;
+ Module::Build::Compat->write_makefile(build_class => 'Module::Build');
Modified: branches/upstream/libparams-classify-perl/current/README
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libparams-classify-perl/current/README?rev=30982&op=diff
==============================================================================
--- branches/upstream/libparams-classify-perl/current/README (original)
+++ branches/upstream/libparams-classify-perl/current/README Sat Feb 21 21:18:37 2009
@@ -17,10 +17,10 @@
INSTALLATION
- perl Makefile.PL
- make
- make test
- make install
+ perl Build.PL
+ ./Build
+ ./Build test
+ ./Build install
AUTHOR
@@ -28,7 +28,10 @@
COPYRIGHT
-Copyright (C) 2004, 2006, 2007 Andrew Main (Zefram) <zefram at fysh.org>
+Copyright (C) 2004, 2006, 2007, 2009
+Andrew Main (Zefram) <zefram at fysh.org>
+
+LICENSE
This module is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
Added: branches/upstream/libparams-classify-perl/current/SIGNATURE
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libparams-classify-perl/current/SIGNATURE?rev=30982&op=file
==============================================================================
--- branches/upstream/libparams-classify-perl/current/SIGNATURE (added)
+++ branches/upstream/libparams-classify-perl/current/SIGNATURE Sat Feb 21 21:18:37 2009
@@ -1,0 +1,36 @@
+This file contains message digests of all files listed in MANIFEST,
+signed via the Module::Signature module, version 0.55.
+
+To verify the content in this distribution, first make sure you have
+Module::Signature installed, then type:
+
+ % cpansign -v
+
+It will check each file's integrity, as well as the signature's
+validity. If "==> Signature verified OK! <==" is not displayed,
+the distribution may already have been compromised, and you should
+not run its Makefile.PL or Build.PL.
+
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+SHA1 9f070b5a5dcc2d53447a0f43584eb219aa686f66 .cvsignore
+SHA1 3186c77aa9f8cfa6ba2bc4d41101e990fd204ac3 Build.PL
+SHA1 041b640f29e9eb9fc7b43af1d035798b0dcc7810 Changes
+SHA1 22190e0e1c37ac77fabb0eac1f99a965ac743041 MANIFEST
+SHA1 92c22962c7a998ea9af642a321649f1d2544a12b META.yml
+SHA1 6935d4c89ba1946c26e1bdbddc7c16d3929e5f7a Makefile.PL
+SHA1 641e73cbbeb4db0e3998d78ceb342eb51361ca74 README
+SHA1 5cd48bda69269f6a1d092ffb80da481c7920047f lib/Params/Classify.pm
+SHA1 7270f26594ac302ce72f931f180a58a91970b1de t/blessed.t
+SHA1 c8e0bc45a2f38aa9f2900d4e16cddc132a27406a t/classify.t
+SHA1 0e141eecf3ca4903ef38d9413b5403a9ddb0392f t/pod_cvg.t
+SHA1 74a957cd8b93f25672ecc6aa578a671d084dd343 t/pod_syn.t
+SHA1 a236b54b674cd606a3ce1d990a96df5a6c4001fc t/ref.t
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.9 (GNU/Linux)
+
+iEYEARECAAYFAkmYcdMACgkQOV9mt2VyAVGMeQCdFTaf/m5xhkHYyZNEM3bkgFEU
+1vwAn3+AqqJi5/Sv+ZLCkfgvysD1TwZw
+=XkdD
+-----END PGP SIGNATURE-----
Modified: branches/upstream/libparams-classify-perl/current/lib/Params/Classify.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libparams-classify-perl/current/lib/Params/Classify.pm?rev=30982&op=diff
==============================================================================
--- branches/upstream/libparams-classify-perl/current/lib/Params/Classify.pm (original)
+++ branches/upstream/libparams-classify-perl/current/lib/Params/Classify.pm Sat Feb 21 21:18:37 2009
@@ -6,7 +6,7 @@
use Params::Classify qw(scalar_class
is_undef
- is_string is_number is_pure_string is_pure_number
+ is_string is_number
is_glob
is_ref ref_type
is_blessed blessed_class
@@ -18,8 +18,6 @@
$ok = is_string($foo);
$ok = is_number($foo);
- $ok = is_pure_string($foo);
- $ok = is_pure_number($foo);
$ok = is_glob($foo);
@@ -53,17 +51,15 @@
use warnings;
use strict;
-use Exporter;
use Scalar::Util 1.01 qw(blessed reftype);
-our $VERSION = "0.005";
-
-our @ISA = qw(Exporter);
-
+our $VERSION = "0.006";
+
+use base "Exporter";
our @EXPORT_OK = qw(
scalar_class
is_undef
- is_string is_number is_pure_string is_pure_number
+ is_string is_number
is_glob
is_ref ref_type
is_blessed blessed_class is_strictly_blessed is_able
@@ -222,42 +218,6 @@
return !$warned;
}
-=item is_pure_string(ARG)
-
-This returns true iff ARG is defined and an ordinary scalar (i.e.,
-satisfies C<is_string> above) and is fully described by its string value.
-That is, its numeric value is that which would be obtained by automatic
-conversion from the string value. Such a scalar could have originated
-as a string literal or constructed string. This excludes many floating
-point number values which stringify lossily.
-
-=cut
-
-sub is_pure_string($) {
- my($val) = @_;
- return 0 unless is_string($val);
- require Scalar::Number;
- local $SIG{__WARN__} = sub { };
- return Scalar::Number::sclnum_id_cmp("$val", $val) == 0;
-}
-
-=item is_pure_number(ARG)
-
-This returns true iff ARG is defined and an ordinary scalar (i.e.,
-satisfies C<is_string> above) and is fully described by its numeric value.
-That is, its string value is that which would be obtained by automatic
-conversion from the numeric value. Such a scalar could have originated
-as a numeric literal or calculated number. This excludes most strings.
-
-=cut
-
-sub is_pure_number($) {
- my($val) = @_;
- return 0 unless is_string($val);
- require Scalar::Number;
- return Scalar::Number::scalar_num_part($val) eq $val;
-}
-
=back
=head2 Typeglobs
@@ -446,7 +406,10 @@
=head1 COPYRIGHT
-Copyright (C) 2004, 2006, 2007 Andrew Main (Zefram) <zefram at fysh.org>
+Copyright (C) 2004, 2006, 2007, 2009
+Andrew Main (Zefram) <zefram at fysh.org>
+
+=head1 LICENSE
This module is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
Added: branches/upstream/libparams-classify-perl/current/t/pod_cvg.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libparams-classify-perl/current/t/pod_cvg.t?rev=30982&op=file
==============================================================================
--- branches/upstream/libparams-classify-perl/current/t/pod_cvg.t (added)
+++ branches/upstream/libparams-classify-perl/current/t/pod_cvg.t Sat Feb 21 21:18:37 2009
@@ -1,0 +1,4 @@
+use Test::More;
+plan skip_all => "Test::Pod::Coverage not available"
+ unless eval "use Test::Pod::Coverage; 1";
+Test::Pod::Coverage::all_pod_coverage_ok();
Added: branches/upstream/libparams-classify-perl/current/t/pod_syn.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libparams-classify-perl/current/t/pod_syn.t?rev=30982&op=file
==============================================================================
--- branches/upstream/libparams-classify-perl/current/t/pod_syn.t (added)
+++ branches/upstream/libparams-classify-perl/current/t/pod_syn.t Sat Feb 21 21:18:37 2009
@@ -1,0 +1,3 @@
+use Test::More;
+plan skip_all => "Test::Pod not available" unless eval "use Test::Pod 1.00; 1";
+Test::Pod::all_pod_files_ok();
More information about the Pkg-perl-cvs-commits
mailing list