Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 5 files changed
  • 0 comments
  • 1 contributor
Apr 26, 2012
唐鳳 * Switch to namespace::sweep instead of namespace::autoclean
  to retain compatibility with "use overload". (@clkao)
5c295e8
唐鳳 Merge branch 'master' of github.com:audreyt/methods
Conflicts:
	Changes
	lib/methods.pm
b3873da
5 Changes
... ... @@ -1,3 +1,8 @@
  1 +[Changes for 0.10 - Thu Apr 26 21:36:24 CST 2012]
  2 +
  3 +* Switch to namespace::sweep instead of namespace::autoclean
  4 + to retain compatibility with "use overload". (@clkao)
  5 +
1 6 [Changes for 0.03 - Tue Jul 5 06:49:16 CST 2011]
2 7
3 8 * Add "use methods-invoker" optional flags to load invoker.pm as well.
2  Makefile.PL
@@ -2,7 +2,7 @@
2 2 use inc::Module::Package 'Au:dry 1';
3 3 requires $_ for qw(
4 4 true::VERSION
5   - namespace::autoclean
  5 + namespace::sweep
6 6 Method::Signatures::Simple
7 7 invoker
8 8 );
4 README
... ... @@ -1,5 +1,5 @@
1 1 NAME
2   - methods - Provide method syntax and autoclean namespaces
  2 + methods - Provide method syntax and sweep namespaces
3 3
4 4 SYNOPSIS
5 5 use methods;
@@ -28,7 +28,7 @@ DESCRIPTION
28 28 This module uses Method::Signatures::Simple to provide named and
29 29 anonymous methods with parameters, except with a shorter module name.
30 30
31   - It also imports namespace::autoclean so the "method" helper function (as
  31 + It also imports namespace::sweep so the "method" helper function (as
32 32 well as any imported helper functions) won't become methods in the
33 33 importing module.
34 34
4 README.mkdn
Source Rendered
... ... @@ -1,6 +1,6 @@
1 1 # NAME
2 2
3   -methods - Provide method syntax and autoclean namespaces
  3 +methods - Provide method syntax and sweep namespaces
4 4
5 5 # SYNOPSIS
6 6
@@ -31,7 +31,7 @@ With [invoker](http://search.cpan.org/perldoc?invoker) support:
31 31 This module uses [Method::Signatures::Simple](http://search.cpan.org/perldoc?Method::Signatures::Simple) to provide named and
32 32 anonymous methods with parameters, except with a shorter module name.
33 33
34   -It also imports [namespace::autoclean](http://search.cpan.org/perldoc?namespace::autoclean) so the `method` helper function
  34 +It also imports [namespace::sweep](http://search.cpan.org/perldoc?namespace::sweep) so the `method` helper function
35 35 (as well as any imported helper functions) won't become methods in the
36 36 importing module.
37 37
10 lib/methods.pm
... ... @@ -1,9 +1,9 @@
1 1 package methods;
2 2 use 5.008;
3   -our $VERSION = '0.03';
  3 +our $VERSION = '0.10';
4 4
5 5 use true;
6   -use namespace::autoclean;
  6 +use namespace::sweep;
7 7 use Method::Signatures::Simple;
8 8 our @ISA = 'Method::Signatures::Simple';
9 9
@@ -14,7 +14,7 @@ method import {
14 14 }
15 15
16 16 true->import;
17   - namespace::autoclean->import( -cleanee => scalar(caller) );
  17 + namespace::sweep->import( -cleanee => scalar(caller) );
18 18 Method::Signatures::Simple->import( @_, into => scalar(caller) );
19 19
20 20 if ($want_invoker) {
@@ -30,7 +30,7 @@ __END__
30 30
31 31 =head1 NAME
32 32
33   -methods - Provide method syntax and autoclean namespaces
  33 +methods - Provide method syntax and sweep namespaces
34 34
35 35 =head1 SYNOPSIS
36 36
@@ -61,7 +61,7 @@ With L<invoker> support:
61 61 This module uses L<Method::Signatures::Simple> to provide named and
62 62 anonymous methods with parameters, except with a shorter module name.
63 63
64   -It also imports L<namespace::autoclean> so the C<method> helper function
  64 +It also imports L<namespace::sweep> so the C<method> helper function
65 65 (as well as any imported helper functions) won't become methods in the
66 66 importing module.
67 67

No commit comments for this range

Something went wrong with that request. Please try again.