[libfile-changenotify-perl] 01/01: Imported Upstream version 0.24

Salvatore Bonaccorso carnil at debian.org
Fri Nov 29 06:10:01 UTC 2013


This is an automated email from the git hooks/post-receive script.

carnil pushed a commit to annotated tag upstream/0.24
in repository libfile-changenotify-perl.

commit 88dd773c1f35f5d3233f01f8c6ed9979a17968ca
Author: Salvatore Bonaccorso <carnil at debian.org>
Date:   Fri Nov 29 07:06:18 2013 +0100

    Imported Upstream version 0.24
---
 Build.PL                                         | 38 ++++++++++++++------
 Changes                                          |  5 +++
 MANIFEST                                         |  4 +--
 META.json                                        |  8 +++--
 META.yml                                         |  5 +--
 README                                           |  2 +-
 dist.ini                                         | 20 ++++++++---
 lib/File/ChangeNotify.pm                         |  4 +--
 lib/File/ChangeNotify/Event.pm                   | 13 ++++---
 lib/File/ChangeNotify/Watcher.pm                 |  7 ++--
 lib/File/ChangeNotify/Watcher/Default.pm         |  4 +--
 lib/File/ChangeNotify/Watcher/Inotify.pm         |  4 +--
 lib/File/ChangeNotify/Watcher/KQueue.pm          | 10 +-----
 t/author-pod-spell.t                             | 35 +++++++++++++++++++
 t/release-cpan-changes.t                         | 12 ++++---
 t/release-pod-coverage.t                         | 44 ------------------------
 t/release-pod-spell.t                            | 41 ----------------------
 t/{release-cpan-changes.t => release-synopsis.t} |  9 ++---
 18 files changed, 126 insertions(+), 139 deletions(-)

diff --git a/Build.PL b/Build.PL
index a8bad51..2dd8295 100644
--- a/Build.PL
+++ b/Build.PL
@@ -21,15 +21,7 @@ my %module_build_args = (
     }
   },
   "build_requires" => {
-    "Data::Dumper" => 0,
-    "Exporter" => 0,
-    "File::Path" => 0,
-    "File::Temp" => 0,
-    "FindBin" => 0,
-    "Module::Build" => "0.3601",
-    "Test::Exception" => 0,
-    "Test::More" => 0,
-    "base" => 0
+    "Module::Build" => "0.3601"
   },
   "configure_requires" => {
     "Module::Build" => "0.3601"
@@ -39,7 +31,7 @@ my %module_build_args = (
     "Dave Rolsky <autarch\@urth.org>"
   ],
   "dist_name" => "File-ChangeNotify",
-  "dist_version" => "0.23",
+  "dist_version" => "0.24",
   "license" => "artistic_2",
   "module_name" => "File::ChangeNotify",
   "recommends" => {},
@@ -60,10 +52,34 @@ my %module_build_args = (
     "strict" => 0,
     "warnings" => 0
   },
-  "script_files" => []
+  "script_files" => [],
+  "test_requires" => {
+    "Data::Dumper" => 0,
+    "Exporter" => 0,
+    "File::Path" => 0,
+    "File::Temp" => 0,
+    "FindBin" => 0,
+    "Test::Exception" => 0,
+    "Test::More" => 0,
+    "base" => 0,
+    "lib" => 0
+  }
 );
 
 
+unless ( eval { Module::Build->VERSION(0.4004) } ) {
+  my $tr = delete $module_build_args{test_requires};
+  my $br = $module_build_args{build_requires};
+  for my $mod ( keys %$tr ) {
+    if ( exists $br->{$mod} ) {
+      $br->{$mod} = $tr->{$mod} if $tr->{$mod} > $br->{$mod};
+    }
+    else {
+      $br->{$mod} = $tr->{$mod};
+    }
+  }
+}
+
 my $build = Module::Build->new(%module_build_args);
 
 $build->create_build_script;
diff --git a/Changes b/Changes
index f9cb811..e730d15 100644
--- a/Changes
+++ b/Changes
@@ -1,3 +1,8 @@
+0.24   2013-11-28
+
+- Removed used of deprecated Class::MOP::load_class().
+
+
 0.23   2013-01-26
 
 - The new_events() watcher method blocked when using IO::Kqueue as the watcher
diff --git a/MANIFEST b/MANIFEST
index 6c31e2c..3cfbd99 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -15,13 +15,13 @@ lib/File/ChangeNotify/Watcher/Default.pm
 lib/File/ChangeNotify/Watcher/Inotify.pm
 lib/File/ChangeNotify/Watcher/KQueue.pm
 t/all.t
+t/author-pod-spell.t
 t/excluded-dirs.t
 t/instantiate-twice.t
 t/lib/File/ChangeNotify/TestHelper.pm
 t/release-cpan-changes.t
 t/release-eol.t
-t/release-pod-coverage.t
 t/release-pod-no404s.t
-t/release-pod-spell.t
 t/release-pod-syntax.t
+t/release-synopsis.t
 t/release-try-load.t
diff --git a/META.json b/META.json
index ce47b0f..28f4c0c 100644
--- a/META.json
+++ b/META.json
@@ -4,7 +4,7 @@
       "Dave Rolsky <autarch at urth.org>"
    ],
    "dynamic_config" : 0,
-   "generated_by" : "Dist::Zilla version 4.300028, CPAN::Meta::Converter version 2.120921",
+   "generated_by" : "Dist::Zilla version 4.300039, CPAN::Meta::Converter version 2.131560",
    "license" : [
       "artistic_2"
    ],
@@ -26,6 +26,7 @@
       },
       "develop" : {
          "requires" : {
+            "Test::CPAN::Changes" : "0.19",
             "Test::Pod" : "1.41"
          }
       },
@@ -56,7 +57,8 @@
             "FindBin" : "0",
             "Test::Exception" : "0",
             "Test::More" : "0",
-            "base" : "0"
+            "base" : "0",
+            "lib" : "0"
          }
       }
    },
@@ -72,6 +74,6 @@
          "web" : "http://git.urth.org/File-ChangeNotify.git"
       }
    },
-   "version" : "0.23"
+   "version" : "0.24"
 }
 
diff --git a/META.yml b/META.yml
index b769b4b..091f259 100644
--- a/META.yml
+++ b/META.yml
@@ -12,10 +12,11 @@ build_requires:
   Test::Exception: 0
   Test::More: 0
   base: 0
+  lib: 0
 configure_requires:
   Module::Build: 0.3601
 dynamic_config: 0
-generated_by: 'Dist::Zilla version 4.300028, CPAN::Meta::Converter version 2.120921'
+generated_by: 'Dist::Zilla version 4.300039, CPAN::Meta::Converter version 2.131560'
 license: artistic_2
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -39,4 +40,4 @@ requires:
 resources:
   bugtracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=File-ChangeNotify
   repository: git://git.urth.org/File-ChangeNotify.git
-version: 0.23
+version: 0.24
diff --git a/README b/README
index 6b90714..756440c 100644
--- a/README
+++ b/README
@@ -1,7 +1,7 @@
 
 
 This archive contains the distribution File-ChangeNotify,
-version 0.23:
+version 0.24:
 
   Watch for changes to files, cross-platform style
 
diff --git a/dist.ini b/dist.ini
index 598d193..b63b06a 100644
--- a/dist.ini
+++ b/dist.ini
@@ -3,7 +3,7 @@ author  = Dave Rolsky <autarch at urth.org>
 license = Artistic_2_0
 copyright_holder = Dave Rolsky
 
-version = 0.23
+version = 0.24
 
 [NextRelease]
 format = %-6v %{yyyy-MM-dd}d
@@ -29,12 +29,23 @@ repository.type   = git
 
 [PkgVersion]
 
+[EOLTests]
+; fails because of the Module::Build ConfigData module
+;[NoTabsTests]
 [PodSyntaxTests]
+[Test::CPAN::Changes]
+; fails because of the KQueue module
+;[Test::Compile]
+; fails because it can't find IO::KQueue or login.conf(5)
 ;[Test::Pod::LinkCheck]
 [Test::Pod::No404s]
-;[NoTabsTests]
-[Test::CPAN::Changes]
-[EOLTests]
+[Test::PodSpelling]
+stopwords = distro
+stopwords = userspace
+stopwords = FreeBSD
+stopwords = Linux's
+stopwords = OpenBSD
+[Test::Synopsis]
 
 [CheckChangeLog]
 
@@ -49,4 +60,3 @@ Module::Build = 0
 [CheckPrereqsIndexed]
 
 [@Git]
-
diff --git a/lib/File/ChangeNotify.pm b/lib/File/ChangeNotify.pm
index 4cd36dd..932ad92 100644
--- a/lib/File/ChangeNotify.pm
+++ b/lib/File/ChangeNotify.pm
@@ -1,6 +1,6 @@
 package File::ChangeNotify;
 {
-  $File::ChangeNotify::VERSION = '0.23';
+  $File::ChangeNotify::VERSION = '0.24';
 }
 
 use strict;
@@ -77,7 +77,7 @@ File::ChangeNotify - Watch for changes to files, cross-platform style
 
 =head1 VERSION
 
-version 0.23
+version 0.24
 
 =head1 SYNOPSIS
 
diff --git a/lib/File/ChangeNotify/Event.pm b/lib/File/ChangeNotify/Event.pm
index 43c7cf3..5924d81 100644
--- a/lib/File/ChangeNotify/Event.pm
+++ b/lib/File/ChangeNotify/Event.pm
@@ -1,6 +1,6 @@
 package File::ChangeNotify::Event;
 {
-  $File::ChangeNotify::Event::VERSION = '0.23';
+  $File::ChangeNotify::Event::VERSION = '0.24';
 }
 
 use strict;
@@ -38,12 +38,17 @@ File::ChangeNotify::Event - Class for file change events
 
 =head1 VERSION
 
-version 0.23
+version 0.24
 
 =head1 SYNOPSIS
 
-    for my $event ( $watcher->new_events() )
-    {
+    my $watcher = File::ChangeNotify->instantiate_watcher(
+        directories => [ '/my/path', '/my/other' ],
+        filter      => qr/\.(?:pm|conf|yml)$/,
+        exclude => [ 't', 'root', qr(/(?!\.)[^/]+$) ],
+    );
+
+    for my $event ( $watcher->new_events() ) {
         print $event->path(), ' - ', $event->type(), "\n";
     }
 
diff --git a/lib/File/ChangeNotify/Watcher.pm b/lib/File/ChangeNotify/Watcher.pm
index 1bd8c46..fac6969 100644
--- a/lib/File/ChangeNotify/Watcher.pm
+++ b/lib/File/ChangeNotify/Watcher.pm
@@ -1,12 +1,13 @@
 package File::ChangeNotify::Watcher;
 {
-  $File::ChangeNotify::Watcher::VERSION = '0.23';
+  $File::ChangeNotify::Watcher::VERSION = '0.24';
 }
 
 use strict;
 use warnings;
 use namespace::autoclean;
 
+use Class::Load qw( load_class );
 use File::ChangeNotify::Event;
 use List::MoreUtils qw(all);
 use Moose;
@@ -72,7 +73,7 @@ has exclude => (
 sub BUILD {
     my $self = shift;
 
-    Class::MOP::load_class( $self->event_class() );
+    load_class( $self->event_class() );
 }
 
 sub new_events {
@@ -131,7 +132,7 @@ File::ChangeNotify::Watcher - Base class for all watchers
 
 =head1 VERSION
 
-version 0.23
+version 0.24
 
 =head1 SYNOPSIS
 
diff --git a/lib/File/ChangeNotify/Watcher/Default.pm b/lib/File/ChangeNotify/Watcher/Default.pm
index afbd412..6fc0654 100644
--- a/lib/File/ChangeNotify/Watcher/Default.pm
+++ b/lib/File/ChangeNotify/Watcher/Default.pm
@@ -1,6 +1,6 @@
 package File::ChangeNotify::Watcher::Default;
 {
-  $File::ChangeNotify::Watcher::Default::VERSION = '0.23';
+  $File::ChangeNotify::Watcher::Default::VERSION = '0.24';
 }
 
 use strict;
@@ -171,7 +171,7 @@ File::ChangeNotify::Watcher::Default - Fallback default watcher subclass
 
 =head1 VERSION
 
-version 0.23
+version 0.24
 
 =head1 DESCRIPTION
 
diff --git a/lib/File/ChangeNotify/Watcher/Inotify.pm b/lib/File/ChangeNotify/Watcher/Inotify.pm
index 8dd4e1f..93e8be2 100644
--- a/lib/File/ChangeNotify/Watcher/Inotify.pm
+++ b/lib/File/ChangeNotify/Watcher/Inotify.pm
@@ -1,6 +1,6 @@
 package File::ChangeNotify::Watcher::Inotify;
 {
-  $File::ChangeNotify::Watcher::Inotify::VERSION = '0.23';
+  $File::ChangeNotify::Watcher::Inotify::VERSION = '0.24';
 }
 
 use strict;
@@ -221,7 +221,7 @@ File::ChangeNotify::Watcher::Inotify - Inotify-based watcher subclass
 
 =head1 VERSION
 
-version 0.23
+version 0.24
 
 =head1 DESCRIPTION
 
diff --git a/lib/File/ChangeNotify/Watcher/KQueue.pm b/lib/File/ChangeNotify/Watcher/KQueue.pm
index 86bfa08..96431ec 100644
--- a/lib/File/ChangeNotify/Watcher/KQueue.pm
+++ b/lib/File/ChangeNotify/Watcher/KQueue.pm
@@ -1,6 +1,6 @@
 package File::ChangeNotify::Watcher::KQueue;
 {
-  $File::ChangeNotify::Watcher::KQueue::VERSION = '0.23';
+  $File::ChangeNotify::Watcher::KQueue::VERSION = '0.24';
 }
 
 use strict;
@@ -245,12 +245,4 @@ Thomas or other BSD users before releasing.
 
 Dan Thomas, E<lt>dan at cpan.orgE<gt>
 
-=head1 COPYRIGHT AND LICENSE
-
-This software is Copyright (c) 2013 by Dave Rolsky.
-
-This is free software, licensed under:
-
-  The Artistic License 2.0
-
 =cut
diff --git a/t/author-pod-spell.t b/t/author-pod-spell.t
new file mode 100644
index 0000000..16c5cae
--- /dev/null
+++ b/t/author-pod-spell.t
@@ -0,0 +1,35 @@
+
+BEGIN {
+  unless ($ENV{AUTHOR_TESTING}) {
+    require Test::More;
+    Test::More::plan(skip_all => 'these tests are for testing by the author');
+  }
+}
+
+use strict;
+use warnings;
+use Test::More;
+
+# generated by Dist::Zilla::Plugin::Test::PodSpelling 2.004003
+eval "use Test::Spelling 0.12; use Pod::Wordlist::hanekomu; 1" or die $@;
+
+
+add_stopwords(<DATA>);
+all_pod_files_spelling_ok( qw( bin lib  ) );
+__DATA__
+distro
+userspace
+FreeBSD
+Linux's
+OpenBSD
+Dave
+Rolsky
+autarch
+lib
+File
+ChangeNotify
+Event
+Watcher
+Inotify
+KQueue
+Default
diff --git a/t/release-cpan-changes.t b/t/release-cpan-changes.t
index bb5bd1d..214650f 100644
--- a/t/release-cpan-changes.t
+++ b/t/release-cpan-changes.t
@@ -8,8 +8,12 @@ BEGIN {
 }
 
 
-use Test::More;
-eval 'use Test::CPAN::Changes';
-plan skip_all => 'Test::CPAN::Changes required for this test' if $@;
-changes_ok();
+use strict;
+use warnings;
+
+use Test::More 0.96 tests => 2;
+use_ok('Test::CPAN::Changes');
+subtest 'changes_ok' => sub {
+    changes_file_ok('Changes');
+};
 done_testing();
diff --git a/t/release-pod-coverage.t b/t/release-pod-coverage.t
deleted file mode 100644
index 140ebda..0000000
--- a/t/release-pod-coverage.t
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/usr/bin/perl
-
-BEGIN {
-  unless ($ENV{RELEASE_TESTING}) {
-    require Test::More;
-    Test::More::plan(skip_all => 'these tests are for release candidate testing');
-  }
-}
-
-
-use strict;
-use warnings;
-
-use Test::More;
-
-eval "use Test::Pod::Coverage 1.04";
-plan skip_all => "Test::Pod::Coverage 1.04 required for testing POD coverage"
-    if $@;
-
-# This is a stripped down version of all_pod_coverage_ok which lets us
-# vary the trustme parameter per module.
-my @modules = all_modules();
-plan tests => scalar @modules;
-
-my %trustme = (
-    'File::ChangeNotify::Watcher::Default' =>
-        [qw( sees_all_events wait_for_events )],
-    'File::ChangeNotify::Watcher::Inotify' =>
-        [qw( sees_all_events wait_for_events )],
-);
-
-for my $module ( sort @modules ) {
-    my @trustme = qr/^BUILD$/;
-
-    if ( $trustme{$module} ) {
-        my $methods = join '|', @{ $trustme{$module} };
-        push @trustme, qr/^(?:$methods)$/;
-    }
-
-    pod_coverage_ok(
-        $module, { trustme => \@trustme },
-        "Pod coverage for $module"
-    );
-}
diff --git a/t/release-pod-spell.t b/t/release-pod-spell.t
deleted file mode 100644
index f9dfc92..0000000
--- a/t/release-pod-spell.t
+++ /dev/null
@@ -1,41 +0,0 @@
-
-BEGIN {
-  unless ($ENV{RELEASE_TESTING}) {
-    require Test::More;
-    Test::More::plan(skip_all => 'these tests are for release candidate testing');
-  }
-}
-
-use strict;
-use warnings;
-
-use Test::Spelling;
-
-my @stopwords;
-for (<DATA>) {
-    chomp;
-    push @stopwords, $_
-        unless /\A (?: \# | \s* \z)/msx;    # skip comments, whitespace
-}
-
-add_stopwords(@stopwords);
-set_spell_cmd('aspell list -l en');
-
-# This prevents a weird segfault from the aspell command - see
-# https://bugs.launchpad.net/ubuntu/+source/aspell/+bug/71322
-local $ENV{LC_ALL} = 'C';
-all_pod_files_spelling_ok;
-
-__DATA__
-API
-FreeBSD
-Inotify
-KQueue
-Linux's
-OpenBSD
-PayPal
-Rolsky
-distro
-subclasses
-subdirectories
-userspace
diff --git a/t/release-cpan-changes.t b/t/release-synopsis.t
similarity index 58%
copy from t/release-cpan-changes.t
copy to t/release-synopsis.t
index bb5bd1d..7a83682 100644
--- a/t/release-cpan-changes.t
+++ b/t/release-synopsis.t
@@ -9,7 +9,8 @@ BEGIN {
 
 
 use Test::More;
-eval 'use Test::CPAN::Changes';
-plan skip_all => 'Test::CPAN::Changes required for this test' if $@;
-changes_ok();
-done_testing();
+
+eval "use Test::Synopsis";
+plan skip_all => "Test::Synopsis required for testing synopses"
+  if $@;
+all_synopsis_ok('lib');

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libfile-changenotify-perl.git



More information about the Pkg-perl-cvs-commits mailing list