Commit 07d5a12c authored by Salvatore Bonaccorso's avatar Salvatore Bonaccorso

Imported Upstream version 0.23

parent ea283028
......@@ -39,7 +39,7 @@ my %module_build_args = (
"Dave Rolsky <autarch\@urth.org>"
],
"dist_name" => "File-ChangeNotify",
"dist_version" => "0.22",
"dist_version" => "0.23",
"license" => "artistic_2",
"module_name" => "File::ChangeNotify",
"recommends" => {},
......
0.23 2013-01-26
- The new_events() watcher method blocked when using IO::Kqueue as the watcher
backend. Reported and patched by Jun Kuriyama.
0.22 2012-04-13
- Remove unnecessary Perl 5.10 requirement.
......
This software is Copyright (c) 2012 by Dave Rolsky.
This software is Copyright (c) 2013 by Dave Rolsky.
This is free software, licensed under:
......
......@@ -4,7 +4,7 @@
"Dave Rolsky <autarch@urth.org>"
],
"dynamic_config" : 0,
"generated_by" : "Dist::Zilla version 4.300014, CPAN::Meta::Converter version 2.120900",
"generated_by" : "Dist::Zilla version 4.300028, CPAN::Meta::Converter version 2.120921",
"license" : [
"artistic_2"
],
......@@ -24,6 +24,11 @@
"Module::Build" : "0.3601"
}
},
"develop" : {
"requires" : {
"Test::Pod" : "1.41"
}
},
"runtime" : {
"requires" : {
"Carp" : "0",
......@@ -67,6 +72,6 @@
"web" : "http://git.urth.org/File-ChangeNotify.git"
}
},
"version" : "0.22"
"version" : "0.23"
}
......@@ -15,7 +15,7 @@ build_requires:
configure_requires:
Module::Build: 0.3601
dynamic_config: 0
generated_by: 'Dist::Zilla version 4.300014, CPAN::Meta::Converter version 2.120900'
generated_by: 'Dist::Zilla version 4.300028, CPAN::Meta::Converter version 2.120921'
license: artistic_2
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
......@@ -39,4 +39,4 @@ requires:
resources:
bugtracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=File-ChangeNotify
repository: git://git.urth.org/File-ChangeNotify.git
version: 0.22
version: 0.23
This archive contains the distribution File-ChangeNotify,
version 0.22:
version 0.23:
Watch for changes to files, cross-platform style
This software is Copyright (c) 2012 by Dave Rolsky.
This software is Copyright (c) 2013 by Dave Rolsky.
This is free software, licensed under:
......
......@@ -3,7 +3,7 @@ author = Dave Rolsky <autarch@urth.org>
license = Artistic_2_0
copyright_holder = Dave Rolsky
version = 0.22
version = 0.23
[NextRelease]
format = %-6v %{yyyy-MM-dd}d
......
package File::ChangeNotify;
{
$File::ChangeNotify::VERSION = '0.22';
$File::ChangeNotify::VERSION = '0.23';
}
use strict;
......@@ -67,7 +67,7 @@ sub _all_classes {
# ABSTRACT: Watch for changes to files, cross-platform style
__END__
=pod
......@@ -77,7 +77,7 @@ File::ChangeNotify - Watch for changes to files, cross-platform style
=head1 VERSION
version 0.22
version 0.23
=head1 SYNOPSIS
......@@ -156,14 +156,10 @@ Dave Rolsky <autarch@urth.org>
=head1 COPYRIGHT AND LICENSE
This software is Copyright (c) 2012 by Dave Rolsky.
This software is Copyright (c) 2013 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
=cut
__END__
package File::ChangeNotify::Event;
{
$File::ChangeNotify::Event::VERSION = '0.22';
$File::ChangeNotify::Event::VERSION = '0.23';
}
use strict;
......@@ -28,7 +28,7 @@ __PACKAGE__->meta()->make_immutable();
# ABSTRACT: Class for file change events
__END__
=pod
......@@ -38,7 +38,7 @@ File::ChangeNotify::Event - Class for file change events
=head1 VERSION
version 0.22
version 0.23
=head1 SYNOPSIS
......@@ -85,14 +85,10 @@ Dave Rolsky <autarch@urth.org>
=head1 COPYRIGHT AND LICENSE
This software is Copyright (c) 2012 by Dave Rolsky.
This software is Copyright (c) 2013 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
=cut
__END__
package File::ChangeNotify::Watcher;
{
$File::ChangeNotify::Watcher::VERSION = '0.22';
$File::ChangeNotify::Watcher::VERSION = '0.23';
}
use strict;
......@@ -121,7 +121,7 @@ __PACKAGE__->meta()->make_immutable();
# ABSTRACT: Base class for all watchers
__END__
=pod
......@@ -131,7 +131,7 @@ File::ChangeNotify::Watcher - Base class for all watchers
=head1 VERSION
version 0.22
version 0.23
=head1 SYNOPSIS
......@@ -251,14 +251,10 @@ Dave Rolsky <autarch@urth.org>
=head1 COPYRIGHT AND LICENSE
This software is Copyright (c) 2012 by Dave Rolsky.
This software is Copyright (c) 2013 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
=cut
__END__
package File::ChangeNotify::Watcher::Default;
{
$File::ChangeNotify::Watcher::Default::VERSION = '0.22';
$File::ChangeNotify::Watcher::Default::VERSION = '0.23';
}
use strict;
......@@ -161,7 +161,7 @@ __PACKAGE__->meta()->make_immutable();
# ABSTRACT: Fallback default watcher subclass
__END__
=pod
......@@ -171,7 +171,7 @@ File::ChangeNotify::Watcher::Default - Fallback default watcher subclass
=head1 VERSION
version 0.22
version 0.23
=head1 DESCRIPTION
......@@ -187,14 +187,10 @@ Dave Rolsky <autarch@urth.org>
=head1 COPYRIGHT AND LICENSE
This software is Copyright (c) 2012 by Dave Rolsky.
This software is Copyright (c) 2013 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
=cut
__END__
package File::ChangeNotify::Watcher::Inotify;
{
$File::ChangeNotify::Watcher::Inotify::VERSION = '0.22';
$File::ChangeNotify::Watcher::Inotify::VERSION = '0.23';
}
use strict;
......@@ -21,9 +21,12 @@ has is_blocking => (
);
has _inotify => (
is => 'ro',
isa => 'Linux::Inotify2',
default => sub { Linux::Inotify2->new() },
is => 'ro',
isa => 'Linux::Inotify2',
default => sub {
Linux::Inotify2->new()
or die "Cannot construct a Linux::Inotify2 object: $!";
},
init_arg => undef,
);
......@@ -75,9 +78,9 @@ sub _interesting_events {
my @interesting;
# This is a blocking read, so it will not return until
# something happens. The restarter will end up calling ->watch
# again after handling the changes.
# This may be a blocking read, in which case it will not return until
# something happens. For Catalyst, the restarter will end up calling
# ->watch again after handling the changes.
for my $event ( $self->_inotify()->read() ) {
# An excluded path will show up here if ...
#
......@@ -208,7 +211,7 @@ __PACKAGE__->meta()->make_immutable();
# ABSTRACT: Inotify-based watcher subclass
__END__
=pod
......@@ -218,7 +221,7 @@ File::ChangeNotify::Watcher::Inotify - Inotify-based watcher subclass
=head1 VERSION
version 0.22
version 0.23
=head1 DESCRIPTION
......@@ -234,14 +237,10 @@ Dave Rolsky <autarch@urth.org>
=head1 COPYRIGHT AND LICENSE
This software is Copyright (c) 2012 by Dave Rolsky.
This software is Copyright (c) 2013 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
=cut
__END__
package File::ChangeNotify::Watcher::KQueue;
{
$File::ChangeNotify::Watcher::KQueue::VERSION = '0.22';
$File::ChangeNotify::Watcher::KQueue::VERSION = '0.23';
}
use strict;
......@@ -61,7 +61,7 @@ sub new_events {
sub _get_events {
my ( $self, $timeout ) = @_;
my @kevents = $self->_kqueue->kevent( $timeout || () );
my @kevents = $self->_kqueue->kevent( defined $timeout ? $timeout : () );
# Events come in groups, wait for a short period to absorb any extra ones
# that might happen immediately after the ones we've detected.
......@@ -247,7 +247,7 @@ Dan Thomas, E<lt>dan@cpan.orgE<gt>
=head1 COPYRIGHT AND LICENSE
This software is Copyright (c) 2010 by Dave Rolsky.
This software is Copyright (c) 2013 by Dave Rolsky.
This is free software, licensed under:
......
......@@ -36,5 +36,6 @@ OpenBSD
PayPal
Rolsky
distro
subclasses
subdirectories
userspace
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