Commit 88dd773c authored by Salvatore Bonaccorso's avatar Salvatore Bonaccorso

Imported Upstream version 0.24

parent 07d5a12c
......@@ -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;
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
......
......@@ -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
......@@ -4,7 +4,7 @@
"Dave Rolsky <autarch@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"
}
......@@ -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
This archive contains the distribution File-ChangeNotify,
version 0.23:
version 0.24:
Watch for changes to files, cross-platform style
......
......@@ -3,7 +3,7 @@ author = Dave Rolsky <autarch@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]
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
......
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";
}
......
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
......
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
......
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
......
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@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
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
......@@ -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();
#!/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"
);
}
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
#!perl
BEGIN {
unless ($ENV{RELEASE_TESTING}) {
require Test::More;
Test::More::plan(skip_all => 'these tests are for release candidate testing');
}
}
use Test::More;
eval "use Test::Synopsis";
plan skip_all => "Test::Synopsis required for testing synopses"
if $@;
all_synopsis_ok('lib');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment