[Bps-public-commit] Test-Spelling branch, master, updated. 27288c032b81bb0ae1d476141d2b5815ece3d888

Shawn Moore sartak at bestpractical.com
Mon Apr 25 12:23:58 EDT 2011


The branch, master has been updated
       via  27288c032b81bb0ae1d476141d2b5815ece3d888 (commit)
       via  65db7b7d4c2bde506a71fe30105dc419db19fa09 (commit)
      from  659e000ddc65dc7e723facf717e8a33636ec5d38 (commit)

Summary of changes:
 lib/Test/Spelling.pm |   25 ++++++++++---------------
 1 files changed, 10 insertions(+), 15 deletions(-)

- Log -----------------------------------------------------------------
commit 65db7b7d4c2bde506a71fe30105dc419db19fa09
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Mon Apr 25 12:23:12 2011 -0400

    Use Exporter instead of reinventing it

diff --git a/lib/Test/Spelling.pm b/lib/Test/Spelling.pm
index 04d8d43..90a2de4 100644
--- a/lib/Test/Spelling.pm
+++ b/lib/Test/Spelling.pm
@@ -8,6 +8,15 @@ use Test::Builder;
 use File::Spec;
 use File::Temp;
 use Carp;
+use base 'Exporter';
+
+our @EXPORT = qw(
+    pod_file_spelling_ok
+    all_pod_files_spelling_ok
+    add_stopwords
+    set_spell_cmd
+    all_pod_files
+);
 
 our $VERSION = '0.11';
 
@@ -15,20 +24,6 @@ my $Test        = Test::Builder->new;
 my $Spell_cmd   = 'spell';
 my $Spell_temp  = File::Temp->new->filename;
 
-sub import {
-    my $self = shift;
-    my $caller = caller;
-    no strict 'refs';
-    *{$caller.'::pod_file_spelling_ok'}      = \&pod_file_spelling_ok;
-    *{$caller.'::all_pod_files_spelling_ok'} = \&all_pod_files_spelling_ok;
-    *{$caller.'::add_stopwords'}             = \&add_stopwords;
-    *{$caller.'::set_spell_cmd'}             = \&set_spell_cmd;
-    *{$caller.'::all_pod_files'}             = \&all_pod_files
-        unless defined &{$caller. '::all_pod_files'};
-
-}
-
-
 my $Pipe_err = 0;
 
 sub pod_file_spelling_ok {

commit 27288c032b81bb0ae1d476141d2b5815ece3d888
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Mon Apr 25 12:23:32 2011 -0400

    Fix a doc typo I just made :)

diff --git a/lib/Test/Spelling.pm b/lib/Test/Spelling.pm
index 90a2de4..2ac85b4 100644
--- a/lib/Test/Spelling.pm
+++ b/lib/Test/Spelling.pm
@@ -288,7 +288,7 @@ Heavily based on L<Test::Pod> by Andy Lester and brian d foy.
 
 =head1 MAINTAINER
 
-Shawn M Moore C<< <sartak at bestpractical.com>
+Shawn M Moore C<< <sartak at bestpractical.com> >>
 
 =head1 COPYRIGHT
 

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list