r67040 - in /branches/upstream/libnamespace-clean-perl/current: Changes LICENSE META.json META.yml Makefile.PL README dist.ini lib/namespace/clean.pm
ansgar at users.alioth.debian.org
ansgar at users.alioth.debian.org
Wed Jan 5 12:59:04 UTC 2011
Author: ansgar
Date: Wed Jan 5 12:58:21 2011
New Revision: 67040
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=67040
Log:
[svn-upgrade] new version libnamespace-clean-perl (0.19)
Modified:
branches/upstream/libnamespace-clean-perl/current/Changes
branches/upstream/libnamespace-clean-perl/current/LICENSE
branches/upstream/libnamespace-clean-perl/current/META.json
branches/upstream/libnamespace-clean-perl/current/META.yml
branches/upstream/libnamespace-clean-perl/current/Makefile.PL
branches/upstream/libnamespace-clean-perl/current/README
branches/upstream/libnamespace-clean-perl/current/dist.ini
branches/upstream/libnamespace-clean-perl/current/lib/namespace/clean.pm
Modified: branches/upstream/libnamespace-clean-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libnamespace-clean-perl/current/Changes?rev=67040&op=diff
==============================================================================
--- branches/upstream/libnamespace-clean-perl/current/Changes (original)
+++ branches/upstream/libnamespace-clean-perl/current/Changes Wed Jan 5 12:58:21 2011
@@ -1,3 +1,8 @@
+ [0.19]
+ - Port to the new Package::Stash 0.18 API and depend on it.
+ - Don't rely on package::stash's remove_package_symbol implementation
+ (doy).
+
[0.18]
- Make sure we continue working on future Package::Stash
versions (doy).
Modified: branches/upstream/libnamespace-clean-perl/current/LICENSE
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libnamespace-clean-perl/current/LICENSE?rev=67040&op=diff
==============================================================================
--- branches/upstream/libnamespace-clean-perl/current/LICENSE (original)
+++ branches/upstream/libnamespace-clean-perl/current/LICENSE Wed Jan 5 12:58:21 2011
@@ -1,4 +1,4 @@
-This software is copyright (c) 2010 by Robert 'phaylon' Sedlacek.
+This software is copyright (c) 2011 by Robert 'phaylon' Sedlacek.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
@@ -12,7 +12,7 @@
--- The GNU General Public License, Version 1, February 1989 ---
-This software is Copyright (c) 2010 by Robert 'phaylon' Sedlacek.
+This software is Copyright (c) 2011 by Robert 'phaylon' Sedlacek.
This is free software, licensed under:
@@ -270,7 +270,7 @@
--- The Artistic License 1.0 ---
-This software is Copyright (c) 2010 by Robert 'phaylon' Sedlacek.
+This software is Copyright (c) 2011 by Robert 'phaylon' Sedlacek.
This is free software, licensed under:
Modified: branches/upstream/libnamespace-clean-perl/current/META.json
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libnamespace-clean-perl/current/META.json?rev=67040&op=diff
==============================================================================
--- branches/upstream/libnamespace-clean-perl/current/META.json (original)
+++ branches/upstream/libnamespace-clean-perl/current/META.json Wed Jan 5 12:58:21 2011
@@ -6,7 +6,7 @@
"Jesse Luehrs <doy at tozt.net>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 4.101612, CPAN::Meta::Converter version 2.101600",
+ "generated_by" : "Dist::Zilla version 4.200000, CPAN::Meta::Converter version 2.102400",
"license" : [
"perl_5"
],
@@ -24,7 +24,7 @@
"runtime" : {
"requires" : {
"B::Hooks::EndOfScope" : "0.07",
- "Package::Stash" : "0.03",
+ "Package::Stash" : "0.18",
"Sub::Identify" : "0.04",
"Sub::Name" : "0.04",
"vars" : 0
@@ -52,98 +52,98 @@
"web" : "http://github.com/rafl/namespace-clean"
}
},
- "version" : "0.18",
+ "version" : "0.19",
"x_Dist_Zilla" : {
"plugins" : [
{
"class" : "Dist::Zilla::Plugin::GatherDir",
"name" : "@FLORA/@Basic/GatherDir",
- "version" : "4.101612"
+ "version" : "4.200000"
},
{
"class" : "Dist::Zilla::Plugin::PruneCruft",
"name" : "@FLORA/@Basic/PruneCruft",
- "version" : "4.101612"
+ "version" : "4.200000"
},
{
"class" : "Dist::Zilla::Plugin::ManifestSkip",
"name" : "@FLORA/@Basic/ManifestSkip",
- "version" : "4.101612"
+ "version" : "4.200000"
},
{
"class" : "Dist::Zilla::Plugin::MetaYAML",
"name" : "@FLORA/@Basic/MetaYAML",
- "version" : "4.101612"
+ "version" : "4.200000"
},
{
"class" : "Dist::Zilla::Plugin::License",
"name" : "@FLORA/@Basic/License",
- "version" : "4.101612"
+ "version" : "4.200000"
},
{
"class" : "Dist::Zilla::Plugin::Readme",
"name" : "@FLORA/@Basic/Readme",
- "version" : "4.101612"
+ "version" : "4.200000"
},
{
"class" : "Dist::Zilla::Plugin::ExtraTests",
"name" : "@FLORA/@Basic/ExtraTests",
- "version" : "4.101612"
+ "version" : "4.200000"
},
{
"class" : "Dist::Zilla::Plugin::ExecDir",
"name" : "@FLORA/@Basic/ExecDir",
- "version" : "4.101612"
+ "version" : "4.200000"
},
{
"class" : "Dist::Zilla::Plugin::ShareDir",
"name" : "@FLORA/@Basic/ShareDir",
- "version" : "4.101612"
+ "version" : "4.200000"
},
{
"class" : "Dist::Zilla::Plugin::MakeMaker",
"name" : "@FLORA/@Basic/MakeMaker",
- "version" : "4.101612"
+ "version" : "4.200000"
},
{
"class" : "Dist::Zilla::Plugin::Manifest",
"name" : "@FLORA/@Basic/Manifest",
- "version" : "4.101612"
+ "version" : "4.200000"
},
{
"class" : "Dist::Zilla::Plugin::TestRelease",
"name" : "@FLORA/@Basic/TestRelease",
- "version" : "4.101612"
+ "version" : "4.200000"
},
{
"class" : "Dist::Zilla::Plugin::ConfirmRelease",
"name" : "@FLORA/@Basic/ConfirmRelease",
- "version" : "4.101612"
+ "version" : "4.200000"
},
{
"class" : "Dist::Zilla::Plugin::UploadToCPAN",
"name" : "@FLORA/@Basic/UploadToCPAN",
- "version" : "4.101612"
+ "version" : "4.200000"
},
{
"class" : "Dist::Zilla::Plugin::MetaConfig",
"name" : "@FLORA/MetaConfig",
- "version" : "4.101612"
+ "version" : "4.200000"
},
{
"class" : "Dist::Zilla::Plugin::MetaJSON",
"name" : "@FLORA/MetaJSON",
- "version" : "4.101612"
+ "version" : "4.200000"
},
{
"class" : "Dist::Zilla::Plugin::PkgVersion",
"name" : "@FLORA/PkgVersion",
- "version" : "4.101612"
+ "version" : "4.200000"
},
{
"class" : "Dist::Zilla::Plugin::PodSyntaxTests",
"name" : "@FLORA/PodSyntaxTests",
- "version" : "4.101612"
+ "version" : "4.200000"
},
{
"class" : "Dist::Zilla::Plugin::NoTabsTests",
@@ -153,17 +153,17 @@
{
"class" : "Dist::Zilla::Plugin::PodCoverageTests",
"name" : "@FLORA/PodCoverageTests",
- "version" : "4.101612"
+ "version" : "4.200000"
},
{
"class" : "Dist::Zilla::Plugin::MetaResources",
"name" : "@FLORA/MetaResources",
- "version" : "4.101612"
+ "version" : "4.200000"
},
{
"class" : "Dist::Zilla::Plugin::Authority",
"name" : "@FLORA/Authority",
- "version" : "1.000"
+ "version" : "1.002"
},
{
"class" : "Dist::Zilla::Plugin::EOLTests",
@@ -173,40 +173,40 @@
{
"class" : "Dist::Zilla::Plugin::PodWeaver",
"name" : "@FLORA/PodWeaver",
- "version" : "3.101530"
+ "version" : "3.101641"
},
{
"class" : "Dist::Zilla::Plugin::AutoPrereq",
"name" : "AutoPrereq",
- "version" : "4.101612"
+ "version" : "4.200000"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":InstallModules",
- "version" : "4.101612"
+ "version" : "4.200000"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":TestFiles",
- "version" : "4.101612"
+ "version" : "4.200000"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ExecFiles",
- "version" : "4.101612"
+ "version" : "4.200000"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ShareFiles",
- "version" : "4.101612"
+ "version" : "4.200000"
}
],
"zilla" : {
- "class" : "Dist::Zilla",
+ "class" : "Dist::Zilla::Dist::Builder",
"config" : {
"is_trial" : 0
},
- "version" : "4.101612"
+ "version" : "4.200000"
}
},
"x_authority" : "cpan:PHAYLON"
Modified: branches/upstream/libnamespace-clean-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libnamespace-clean-perl/current/META.yml?rev=67040&op=diff
==============================================================================
--- branches/upstream/libnamespace-clean-perl/current/META.yml (original)
+++ branches/upstream/libnamespace-clean-perl/current/META.yml Wed Jan 5 12:58:21 2011
@@ -12,7 +12,7 @@
configure_requires:
ExtUtils::MakeMaker: 6.31
dynamic_config: 0
-generated_by: 'Dist::Zilla version 4.101612, CPAN::Meta::Converter version 2.101600'
+generated_by: 'Dist::Zilla version 4.200000, CPAN::Meta::Converter version 2.102400'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -20,7 +20,7 @@
name: namespace-clean
requires:
B::Hooks::EndOfScope: 0.07
- Package::Stash: 0.03
+ Package::Stash: 0.18
Sub::Identify: 0.04
Sub::Name: 0.04
vars: 0
@@ -28,81 +28,81 @@
bugtracker: http://rt.cpan.org/Public/Dist/Display.html?Name=namespace-clean
homepage: http://search.cpan.org/dist/namespace-clean
repository: git://github.com/rafl/namespace-clean.git
-version: 0.18
+version: 0.19
x_Dist_Zilla:
plugins:
-
class: Dist::Zilla::Plugin::GatherDir
name: '@FLORA/@Basic/GatherDir'
- version: 4.101612
+ version: 4.200000
-
class: Dist::Zilla::Plugin::PruneCruft
name: '@FLORA/@Basic/PruneCruft'
- version: 4.101612
+ version: 4.200000
-
class: Dist::Zilla::Plugin::ManifestSkip
name: '@FLORA/@Basic/ManifestSkip'
- version: 4.101612
+ version: 4.200000
-
class: Dist::Zilla::Plugin::MetaYAML
name: '@FLORA/@Basic/MetaYAML'
- version: 4.101612
+ version: 4.200000
-
class: Dist::Zilla::Plugin::License
name: '@FLORA/@Basic/License'
- version: 4.101612
+ version: 4.200000
-
class: Dist::Zilla::Plugin::Readme
name: '@FLORA/@Basic/Readme'
- version: 4.101612
+ version: 4.200000
-
class: Dist::Zilla::Plugin::ExtraTests
name: '@FLORA/@Basic/ExtraTests'
- version: 4.101612
+ version: 4.200000
-
class: Dist::Zilla::Plugin::ExecDir
name: '@FLORA/@Basic/ExecDir'
- version: 4.101612
+ version: 4.200000
-
class: Dist::Zilla::Plugin::ShareDir
name: '@FLORA/@Basic/ShareDir'
- version: 4.101612
+ version: 4.200000
-
class: Dist::Zilla::Plugin::MakeMaker
name: '@FLORA/@Basic/MakeMaker'
- version: 4.101612
+ version: 4.200000
-
class: Dist::Zilla::Plugin::Manifest
name: '@FLORA/@Basic/Manifest'
- version: 4.101612
+ version: 4.200000
-
class: Dist::Zilla::Plugin::TestRelease
name: '@FLORA/@Basic/TestRelease'
- version: 4.101612
+ version: 4.200000
-
class: Dist::Zilla::Plugin::ConfirmRelease
name: '@FLORA/@Basic/ConfirmRelease'
- version: 4.101612
+ version: 4.200000
-
class: Dist::Zilla::Plugin::UploadToCPAN
name: '@FLORA/@Basic/UploadToCPAN'
- version: 4.101612
+ version: 4.200000
-
class: Dist::Zilla::Plugin::MetaConfig
name: '@FLORA/MetaConfig'
- version: 4.101612
+ version: 4.200000
-
class: Dist::Zilla::Plugin::MetaJSON
name: '@FLORA/MetaJSON'
- version: 4.101612
+ version: 4.200000
-
class: Dist::Zilla::Plugin::PkgVersion
name: '@FLORA/PkgVersion'
- version: 4.101612
+ version: 4.200000
-
class: Dist::Zilla::Plugin::PodSyntaxTests
name: '@FLORA/PodSyntaxTests'
- version: 4.101612
+ version: 4.200000
-
class: Dist::Zilla::Plugin::NoTabsTests
name: '@FLORA/NoTabsTests'
@@ -110,15 +110,15 @@
-
class: Dist::Zilla::Plugin::PodCoverageTests
name: '@FLORA/PodCoverageTests'
- version: 4.101612
+ version: 4.200000
-
class: Dist::Zilla::Plugin::MetaResources
name: '@FLORA/MetaResources'
- version: 4.101612
+ version: 4.200000
-
class: Dist::Zilla::Plugin::Authority
name: '@FLORA/Authority'
- version: 1.000
+ version: 1.002
-
class: Dist::Zilla::Plugin::EOLTests
name: '@FLORA/EOLTests'
@@ -126,30 +126,30 @@
-
class: Dist::Zilla::Plugin::PodWeaver
name: '@FLORA/PodWeaver'
- version: 3.101530
+ version: 3.101641
-
class: Dist::Zilla::Plugin::AutoPrereq
name: AutoPrereq
- version: 4.101612
+ version: 4.200000
-
class: Dist::Zilla::Plugin::FinderCode
name: ':InstallModules'
- version: 4.101612
+ version: 4.200000
-
class: Dist::Zilla::Plugin::FinderCode
name: ':TestFiles'
- version: 4.101612
+ version: 4.200000
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ExecFiles'
- version: 4.101612
+ version: 4.200000
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ShareFiles'
- version: 4.101612
+ version: 4.200000
zilla:
- class: Dist::Zilla
+ class: Dist::Zilla::Dist::Builder
config:
is_trial: 0
- version: 4.101612
+ version: 4.200000
x_authority: cpan:PHAYLON
Modified: branches/upstream/libnamespace-clean-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libnamespace-clean-perl/current/Makefile.PL?rev=67040&op=diff
==============================================================================
--- branches/upstream/libnamespace-clean-perl/current/Makefile.PL (original)
+++ branches/upstream/libnamespace-clean-perl/current/Makefile.PL Wed Jan 5 12:58:21 2011
@@ -26,12 +26,12 @@
'NAME' => 'namespace::clean',
'PREREQ_PM' => {
'B::Hooks::EndOfScope' => '0.07',
- 'Package::Stash' => '0.03',
+ 'Package::Stash' => '0.18',
'Sub::Identify' => '0.04',
'Sub::Name' => '0.04',
'vars' => '0'
},
- 'VERSION' => '0.18',
+ 'VERSION' => '0.19',
'test' => {
'TESTS' => 't/*.t'
}
Modified: branches/upstream/libnamespace-clean-perl/current/README
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libnamespace-clean-perl/current/README?rev=67040&op=diff
==============================================================================
--- branches/upstream/libnamespace-clean-perl/current/README (original)
+++ branches/upstream/libnamespace-clean-perl/current/README Wed Jan 5 12:58:21 2011
@@ -1,11 +1,11 @@
This archive contains the distribution namespace-clean,
-version 0.18:
+version 0.19:
Keep imports and functions out of your namespace
-This software is copyright (c) 2010 by Robert 'phaylon' Sedlacek.
+This software is copyright (c) 2011 by Robert 'phaylon' Sedlacek.
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: branches/upstream/libnamespace-clean-perl/current/dist.ini
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libnamespace-clean-perl/current/dist.ini?rev=67040&op=diff
==============================================================================
--- branches/upstream/libnamespace-clean-perl/current/dist.ini (original)
+++ branches/upstream/libnamespace-clean-perl/current/dist.ini Wed Jan 5 12:58:21 2011
@@ -1,5 +1,5 @@
name = namespace-clean
-version = 0.18
+version = 0.19
author = Robert 'phaylon' Sedlacek <rs at 474.at>
author = Florian Ragwitz <rafl at debian.org>
author = Jesse Luehrs <doy at tozt.net>
Modified: branches/upstream/libnamespace-clean-perl/current/lib/namespace/clean.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libnamespace-clean-perl/current/lib/namespace/clean.pm?rev=67040&op=diff
==============================================================================
--- branches/upstream/libnamespace-clean-perl/current/lib/namespace/clean.pm (original)
+++ branches/upstream/libnamespace-clean-perl/current/lib/namespace/clean.pm Wed Jan 5 12:58:21 2011
@@ -3,7 +3,7 @@
$namespace::clean::AUTHORITY = 'cpan:PHAYLON';
}
BEGIN {
- $namespace::clean::VERSION = '0.18';
+ $namespace::clean::VERSION = '0.19';
}
# ABSTRACT: Keep imports and functions out of your namespace
@@ -13,7 +13,7 @@
use vars qw( $STORAGE_VAR );
use Sub::Name 0.04 qw(subname);
use Sub::Identify 0.04 qw(sub_fullname);
-use Package::Stash 0.03;
+use Package::Stash 0.18;
use B::Hooks::EndOfScope 0.07;
$STORAGE_VAR = '__NAMESPACE_CLEAN_STORAGE';
@@ -31,7 +31,7 @@
# ignore already removed symbols
next SYMBOL if $store->{exclude}{ $f };
- next SYMBOL unless $cleanee_stash->has_package_symbol($variable);
+ next SYMBOL unless $cleanee_stash->has_symbol($variable);
if (ref(\$cleanee_stash->namespace->{$f}) eq 'GLOB') {
# convince the Perl debugger to work
@@ -39,15 +39,22 @@
# since we are deleting the glob where the subroutine was originally
# defined, that assumption no longer holds, so we need to move it
# elsewhere and point the CV's name to the new glob.
- my $sub = $cleanee_stash->get_package_symbol($variable);
+ my $sub = $cleanee_stash->get_symbol($variable);
if ( sub_fullname($sub) eq ($cleanee_stash->name . "::$f") ) {
my $new_fq = $deleted_stash->name . "::$f";
subname($new_fq, $sub);
- $deleted_stash->add_package_symbol($variable, $sub);
+ $deleted_stash->add_symbol($variable, $sub);
}
}
- $cleanee_stash->remove_package_symbol($variable);
+ my ($scalar, $array, $hash, $io) = map {
+ $cleanee_stash->get_symbol($_ . $f)
+ } '$', '@', '%', '';
+ $cleanee_stash->remove_glob($f);
+ for my $var (['$', $scalar], ['@', $array], ['%', $hash], ['', $io]) {
+ next unless defined $var->[1];
+ $cleanee_stash->add_symbol($var->[0] . $f, $var->[1]);
+ }
}
};
@@ -99,7 +106,7 @@
# register symbols for removal, if they have a CODE entry
for my $f (keys %$functions) {
next if $except{ $f };
- next unless $stash->has_package_symbol("&$f");
+ next unless $stash->has_symbol("&$f");
$store->{remove}{ $f } = 1;
}
@@ -139,9 +146,9 @@
my ($pragma, $class) = @_;
my $stash = Package::Stash->new($class);
my $var = "%$STORAGE_VAR";
- $stash->add_package_symbol($var, {})
- unless $stash->has_package_symbol($var);
- return $stash->get_package_symbol($var);
+ $stash->add_symbol($var, {})
+ unless $stash->has_symbol($var);
+ return $stash->get_symbol($var);
}
@@ -150,8 +157,8 @@
my $stash = Package::Stash->new($class);
return {
- map { $_ => $stash->get_package_symbol("&$_") }
- $stash->list_all_package_symbols('CODE')
+ map { $_ => $stash->get_symbol("&$_") }
+ $stash->list_all_symbols('CODE')
};
}
@@ -363,7 +370,7 @@
=head1 COPYRIGHT AND LICENSE
-This software is copyright (c) 2010 by Robert 'phaylon' Sedlacek.
+This software is copyright (c) 2011 by Robert 'phaylon' Sedlacek.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
More information about the Pkg-perl-cvs-commits
mailing list