Skip to content

Commit

Permalink
Import namespace-clean-0.05.tar.gz.
Browse files Browse the repository at this point in the history
  • Loading branch information
rafl committed Nov 12, 2008
1 parent 53e92ec commit 472d4b1
Show file tree
Hide file tree
Showing 21 changed files with 1,154 additions and 198 deletions.
4 changes: 4 additions & 0 deletions Changes
@@ -1,4 +1,8 @@

[0.05]
- Minor POD improvements
- -except now accepts a single value too

[0.04] Sat Mar 17 16:22:10 CET 2007
- Added -except flag
- Non-CODE type slots will not be removed
Expand Down
9 changes: 6 additions & 3 deletions MANIFEST
@@ -1,8 +1,11 @@
Changes
inc/Module/AutoInstall.pm
inc/Module/Install.pm
inc/Module/Install/AutoInstall.pm
inc/Module/Install/Base.pm
inc/Module/Install/Can.pm
inc/Module/Install/Fetch.pm
inc/Module/Install/Include.pm
inc/Module/Install/Makefile.pm
inc/Module/Install/Metadata.pm
inc/Module/Install/Win32.pm
Expand All @@ -16,10 +19,10 @@ t/00-basic.t
t/01-function-wipeout.t
t/02-inheritance.t
t/03-unimport.t
t/10-pod.t
t/11-pod-coverage.t
t/04-except.t
t/lib/ExporterTest.pm
t/lib/FunctionWipeout.pm
t/lib/Inheritance.pm
t/lib/Unimport.pm
Todo
t_author/10-pod.t
t_author/11-pod-coverage.t
9 changes: 7 additions & 2 deletions META.yml
Expand Up @@ -5,7 +5,7 @@ build_requires:
FindBin: 0
Test::More: 0.62
distribution_type: module
generated_by: Module::Install version 0.65
generated_by: Module::Install version 0.67
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.3.html
Expand All @@ -15,7 +15,12 @@ no_index:
directory:
- inc
- t
provides:
namespace::clean:
file: lib/namespace/clean.pm
version: 0.05
requires:
Filter::EOF: 0.02
Symbol: 0
version: 0.04
tests: t/*.t t_author/*.t
version: 0.05
12 changes: 12 additions & 0 deletions Makefile.PL
Expand Up @@ -15,4 +15,16 @@ build_requires q{FindBin}, 0;
requires q{Filter::EOF}, '0.02';
requires q{Symbol}, 0;

auto_provides;
auto_install;

if (-e 'MANIFEST.SKIP') {

print "Creating README file\n";
system 'pod2text lib/namespace/clean.pm > README';

print "Adding author tests to 'make test' run\n";
tests 't/*.t t_author/*.t';
}

WriteAll;
12 changes: 8 additions & 4 deletions README
Expand Up @@ -2,7 +2,7 @@ NAME
namespace::clean - Keep imports and functions out of your namespace

VERSION
0.04
0.05

SYNOPSIS
package Foo;
Expand Down Expand Up @@ -50,12 +50,15 @@ DESCRIPTION
collecting functions for the next "use namespace::clean;" specification.

You can use the "-except" flag to tell "namespace::clean" that you don't
want it to remove a certain function. A common use would be a module
exporting an "import" method along with some functions:
want it to remove a certain function or method. A common use would be a
module exporting an "import" method along with some functions:

use ModuleExportingImport;
use namespace::clean -except => [qw( import )];

If you just want to "-except" a single sub, you can pass it directly.
For more than one value you have to use an array reference.

METHODS
You shouldn't need to call any of these. Just "use" the package at the
appropriate place.
Expand Down Expand Up @@ -88,7 +91,8 @@ IMPLEMENTATION DETAILS

will remove the "foo" symbol from $SomePackage for run time lookups
(e.g., method calls) but will leave the entry alive to be called by
already resolved names in the package itself.
already resolved names in the package itself. "namespace::clean" will
restore and therefor in effect keep all glob slots that aren't "CODE".

A test file has been added to the perl core to ensure that this
behaviour will be stable in future releases.
Expand Down
7 changes: 0 additions & 7 deletions Todo

This file was deleted.

0 comments on commit 472d4b1

Please sign in to comment.