Shlomi Fish avatar Shlomi Fish committed a8ae030

Renamed File-FindLines to Stream-Extract.

This is a more appropriate names.

Comments (0)

Files changed (16)

File-FindLines/module/Build.PL

 use Test::Run::Builder;
 
 my $builder = Test::Run::Builder->new(
-    module_name         => 'File::FindLines',
+    module_name         => 'Stream::Extract',
     license             => 'mit',
     dist_author         => q{Shlomi Fish <shlomif@cpan.org>},
-    dist_version_from   => 'lib/File/FindLines.pm',
+    dist_version_from   => 'lib/Stream/Extract.pm',
     build_requires => {
         'Test::More' => 0,
     },
     requires => {
         'perl' => 5.006,
     },
-    add_to_cleanup      => [ 'File-FindLines-*' ],
+    add_to_cleanup      => [ 'Stream-Extract-*' ],
     create_makefile_pl => 'traditional',
 );
 

File-FindLines/module/Changes

-Revision history for File-FindLines
+Revision history for Stream-Extract
 
 0.0.1   TBD 
         First version, released on an unsuspecting world.

File-FindLines/module/MANIFEST

 Build.PL
 Changes
 inc/Test/Run/Builder.pm
-lib/File/FindLines.pm
-lib/File/FindLines/Result/Context.pm
-lib/File/FindLines/Result.pm
-lib/File/FindLines/Result/Match.pm
+lib/Stream/Extract.pm
+lib/Stream/Extract/Result/Context.pm
+lib/Stream/Extract/Result.pm
+lib/Stream/Extract/Result/Match.pm
 MANIFEST			This list of files
 README
 t/00-load.t

File-FindLines/module/README

-File-FindLines
+Stream-Extract
 
 This is a module to filter a stream of records for those matching certain
 criteria (normally lines in files, similar to grep(1), but not restricted to
 After installing, you can find documentation for this module with the
 perldoc command.
 
-    perldoc File::FindLines
+    perldoc Stream::Extract
 
 You can also look for information at:
 
     RT, CPAN's request tracker (report bugs here)
-        http://rt.cpan.org/NoAuth/Bugs.html?Dist=File-FindLines
+        http://rt.cpan.org/NoAuth/Bugs.html?Dist=Stream-Extract
 
     AnnoCPAN, Annotated CPAN documentation
-        http://annocpan.org/dist/File-FindLines
+        http://annocpan.org/dist/Stream-Extract
 
     CPAN Ratings
-        http://cpanratings.perl.org/d/File-FindLines
+        http://cpanratings.perl.org/d/Stream-Extract
 
     Search CPAN
-        http://search.cpan.org/dist/File-FindLines/
+        http://search.cpan.org/dist/Stream-Extract/
 
 
 LICENSE AND COPYRIGHT

File-FindLines/module/ignore.txt

 .lwpcookies
 cover_db
 pod2htm*.tmp
-File-FindLines-*
+Stream-Extract-*

File-FindLines/module/lib/File/FindLines.pm

-package File::FindLines;
-
-use 5.006;
-
-use strict;
-use warnings;
-
-use Carp;
-
-use Class::XSAccessor
-    constructor => '_dont_use_me',
-    accessors => {
-        _iter_coderef => '_iter_coderef',
-        _filter_coderef => '_filter_coderef',
-    },
-    ;
-
-=head1 NAME
-
-File::FindLines - find records out of a stream that match certain qualities.
-(similar to grep(1).)
-
-=head1 VERSION
-
-Version 0.01
-
-=cut
-
-our $VERSION = '0.01';
-
-
-=head1 SYNOPSIS
-
-    use File::FindLines;
-
-    my ($re_s, $filename) = @ARGV;
-
-    my $re = qr/$re_s/;
-
-    open my $fh, '<', $filename
-        or die "Cannot open '$filename'"
-
-    my $finder = File::FindLines->new(
-        {
-            input => { code => sub { return scalar <$fh>; }, },
-            filter => sub {
-                my ($self, $args) = @_;
-
-                my $record_obj = $args->{record};
-
-                return $record_obj->text_like($re);
-            }, 
-        }
-    );
-
-    while (my $match = $finder->next_text())
-    {
-        print "$match\n";
-    }
-
-    close($fh);
-
-=head1 SUBROUTINES/METHODS
-
-=head2 new
-
-Initializes a new object.
-
-=cut
-
-sub new
-{
-    my $class = shift;
-
-    my $self = {};
-    bless $self, $class;
-
-    $self->_init(@_);
-
-    return $self;
-}
-
-sub _init
-{
-    my ($self, $args) = @_;
-
-    $self->_iter_coderef($args->{input}->{code})
-        or Carp::confess "No input code ref specified.";
-
-    $self->_filter_coderef($args->{filter})
-        or Carp::confess "No filter code ref specified.";
-
-    return;
-}
-
-=head2 next
-
-Returns a new record as an object.
-
-=head2 next_text
-
-Returns a new record as text.
-
-=cut
-
-=head1 AUTHOR
-
-Shlomi Fish, L<http://www.shlomifish.org/>, C<< <shlomif at cpan.org> >> .
-
-=head1 BUGS
-
-Please report any bugs or feature requests to C<bug-file-findlines at rt.cpan.org>, or through
-the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=File-FindLines>.  I will be notified, and then you'll
-automatically be notified of progress on your bug as I make changes.
-
-=head1 SUPPORT
-
-You can find documentation for this module with the perldoc command.
-
-    perldoc File::FindLines
-
-You can also look for information at:
-
-=over 4
-
-=item * RT: CPAN's request tracker (report bugs here)
-
-L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=File-FindLines>
-
-=item * AnnoCPAN: Annotated CPAN documentation
-
-L<http://annocpan.org/dist/File-FindLines>
-
-=item * CPAN Ratings
-
-L<http://cpanratings.perl.org/d/File-FindLines>
-
-=item * Search CPAN
-
-L<http://search.cpan.org/dist/File-FindLines/>
-
-=back
-
-
-=head1 ACKNOWLEDGEMENTS
-
-
-=head1 LICENSE AND COPYRIGHT
-
-Copyright 2012 Shlomi Fish.
-
-This program is distributed under the MIT (X11) License:
-L<http://www.opensource.org/licenses/mit-license.php>
-
-Permission is hereby granted, free of charge, to any person
-obtaining a copy of this software and associated documentation
-files (the "Software"), to deal in the Software without
-restriction, including without limitation the rights to use,
-copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the
-Software is furnished to do so, subject to the following
-conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
-HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-OTHER DEALINGS IN THE SOFTWARE.
-
-
-=cut
-
-1; # End of File::FindLines

File-FindLines/module/lib/File/FindLines/Result.pm

-package File::FindLines::Result;
-
-use 5.006;
-use strict;
-use warnings;
-
-=head1 NAME
-
-File::FindLines::Result - An abstract File::FindLines Result object.
-
-=head1 VERSION
-
-Version 0.01
-
-=cut
-
-our $VERSION = '0.01';
-
-
-=head1 SYNOPSIS
-
-Should not be used directly - API is subject to change.
-    use File::FindLines::Result;
-
-    my $foo = File::FindLines::Result->new();
-
-=head1 SUBROUTINES/METHODS
-
-=head1 AUTHOR
-
-Shlomi Fish, C<< <shlomif at cpan.org> >>
-
-=head1 BUGS
-
-Please report any bugs or feature requests to C<bug-file-findlines at rt.cpan.org>, or through
-the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=File-FindLines>.  I will be notified, and then you'll
-automatically be notified of progress on your bug as I make changes.
-
-
-
-
-=head1 SUPPORT
-
-You can find documentation for this module with the perldoc command.
-
-    perldoc File::FindLines::Result
-
-
-You can also look for information at:
-
-=over 4
-
-=item * RT: CPAN's request tracker (report bugs here)
-
-L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=File-FindLines>
-
-=item * AnnoCPAN: Annotated CPAN documentation
-
-L<http://annocpan.org/dist/File-FindLines>
-
-=item * CPAN Ratings
-
-L<http://cpanratings.perl.org/d/File-FindLines>
-
-=item * Search CPAN
-
-L<http://search.cpan.org/dist/File-FindLines/>
-
-=back
-
-
-=head1 ACKNOWLEDGEMENTS
-
-
-=head1 LICENSE AND COPYRIGHT
-
-Copyright 2012 Shlomi Fish.
-
-This program is distributed under the MIT (X11) License:
-L<http://www.opensource.org/licenses/mit-license.php>
-
-Permission is hereby granted, free of charge, to any person
-obtaining a copy of this software and associated documentation
-files (the "Software"), to deal in the Software without
-restriction, including without limitation the rights to use,
-copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the
-Software is furnished to do so, subject to the following
-conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
-HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-OTHER DEALINGS IN THE SOFTWARE.
-
-
-=cut
-
-1; # End of File::FindLines::Result

File-FindLines/module/lib/File/FindLines/Result/Context.pm

-package File::FindLines::Result::Context;
-
-use 5.006;
-use strict;
-use warnings;
-
-=head1 NAME
-
-File::FindLines::Result::Context - a context result object.
-
-=head1 VERSION
-
-Version 0.01
-
-=cut
-
-our $VERSION = '0.01';
-
-=head1 SYNOPSIS
-
-Should not be instantiated directly. 
-
-=head1 AUTHOR
-
-Shlomi Fish, C<< <shlomif at cpan.org> >>
-
-=head1 BUGS
-
-Please report any bugs or feature requests to C<bug-file-findlines at rt.cpan.org>, or through
-the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=File-FindLines>.  I will be notified, and then you'll
-automatically be notified of progress on your bug as I make changes.
-
-
-
-
-=head1 SUPPORT
-
-You can find documentation for this module with the perldoc command.
-
-    perldoc File::FindLines::Result::Context
-
-
-You can also look for information at:
-
-=over 4
-
-=item * RT: CPAN's request tracker (report bugs here)
-
-L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=File-FindLines>
-
-=item * AnnoCPAN: Annotated CPAN documentation
-
-L<http://annocpan.org/dist/File-FindLines>
-
-=item * CPAN Ratings
-
-L<http://cpanratings.perl.org/d/File-FindLines>
-
-=item * Search CPAN
-
-L<http://search.cpan.org/dist/File-FindLines/>
-
-=back
-
-
-=head1 ACKNOWLEDGEMENTS
-
-
-=head1 LICENSE AND COPYRIGHT
-
-Copyright 2012 Shlomi Fish.
-
-This program is distributed under the MIT (X11) License:
-L<http://www.opensource.org/licenses/mit-license.php>
-
-Permission is hereby granted, free of charge, to any person
-obtaining a copy of this software and associated documentation
-files (the "Software"), to deal in the Software without
-restriction, including without limitation the rights to use,
-copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the
-Software is furnished to do so, subject to the following
-conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
-HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-OTHER DEALINGS IN THE SOFTWARE.
-
-
-=cut
-
-1; # End of File::FindLines::Result::Context

File-FindLines/module/lib/File/FindLines/Result/Match.pm

-package File::FindLines::Result::Match;
-
-use 5.006;
-use strict;
-use warnings;
-
-=head1 NAME
-
-File::FindLines::Result::Match - a matching record result.
-
-=head1 VERSION
-
-Version 0.01
-
-=cut
-
-our $VERSION = '0.01';
-
-=head1 SYNOPSIS
-
-Should not be instantiated directly.
-
-    use File::FindLines::Result::Match;
-
-    my $foo = File::FindLines::Result::Match->new();
-    ...
-
-=head1 SUBROUTINES/METHODS
-
-=head1 AUTHOR
-
-Shlomi Fish, C<< <shlomif at cpan.org> >>
-
-=head1 BUGS
-
-Please report any bugs or feature requests to C<bug-file-findlines at rt.cpan.org>, or through
-the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=File-FindLines>.  I will be notified, and then you'll
-automatically be notified of progress on your bug as I make changes.
-
-
-
-
-=head1 SUPPORT
-
-You can find documentation for this module with the perldoc command.
-
-    perldoc File::FindLines::Result::Match
-
-
-You can also look for information at:
-
-=over 4
-
-=item * RT: CPAN's request tracker (report bugs here)
-
-L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=File-FindLines>
-
-=item * AnnoCPAN: Annotated CPAN documentation
-
-L<http://annocpan.org/dist/File-FindLines>
-
-=item * CPAN Ratings
-
-L<http://cpanratings.perl.org/d/File-FindLines>
-
-=item * Search CPAN
-
-L<http://search.cpan.org/dist/File-FindLines/>
-
-=back
-
-
-=head1 ACKNOWLEDGEMENTS
-
-
-=head1 LICENSE AND COPYRIGHT
-
-Copyright 2012 Shlomi Fish.
-
-This program is distributed under the MIT (X11) License:
-L<http://www.opensource.org/licenses/mit-license.php>
-
-Permission is hereby granted, free of charge, to any person
-obtaining a copy of this software and associated documentation
-files (the "Software"), to deal in the Software without
-restriction, including without limitation the rights to use,
-copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the
-Software is furnished to do so, subject to the following
-conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
-HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-OTHER DEALINGS IN THE SOFTWARE.
-
-
-=cut
-
-1; # End of File::FindLines::Result::Match

File-FindLines/module/lib/Stream/Extract.pm

+package Stream::Extract;
+
+use 5.006;
+
+use strict;
+use warnings;
+
+use Carp;
+
+use Class::XSAccessor
+    constructor => '_dont_use_me',
+    accessors => {
+        _iter_coderef => '_iter_coderef',
+        _filter_coderef => '_filter_coderef',
+    },
+    ;
+
+=head1 NAME
+
+Stream::Extract - find records out of a stream that match certain qualities.
+(similar to grep(1).)
+
+=head1 VERSION
+
+Version 0.01
+
+=cut
+
+our $VERSION = '0.01';
+
+
+=head1 SYNOPSIS
+
+    use Stream::Extract;
+
+    my ($re_s, $filename) = @ARGV;
+
+    my $re = qr/$re_s/;
+
+    open my $fh, '<', $filename
+        or die "Cannot open '$filename'"
+
+    my $finder = Stream::Extract->new(
+        {
+            input => { code => sub { return scalar <$fh>; }, },
+            filter => sub {
+                my ($self, $args) = @_;
+
+                my $record_obj = $args->{record};
+
+                return $record_obj->text_like($re);
+            }, 
+        }
+    );
+
+    while (my $match = $finder->next_text())
+    {
+        print "$match\n";
+    }
+
+    close($fh);
+
+=head1 SUBROUTINES/METHODS
+
+=head2 new
+
+Initializes a new object.
+
+=cut
+
+sub new
+{
+    my $class = shift;
+
+    my $self = {};
+    bless $self, $class;
+
+    $self->_init(@_);
+
+    return $self;
+}
+
+sub _init
+{
+    my ($self, $args) = @_;
+
+    $self->_iter_coderef($args->{input}->{code})
+        or Carp::confess "No input code ref specified.";
+
+    $self->_filter_coderef($args->{filter})
+        or Carp::confess "No filter code ref specified.";
+
+    return;
+}
+
+=head2 next
+
+Returns a new record as an object.
+
+=head2 next_text
+
+Returns a new record as text.
+
+=cut
+
+=head1 AUTHOR
+
+Shlomi Fish, L<http://www.shlomifish.org/>, C<< <shlomif at cpan.org> >> .
+
+=head1 BUGS
+
+Please report any bugs or feature requests to C<bug-stream-extract at rt.cpan.org>, or through
+the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Stream-Extract>.  I will be notified, and then you'll
+automatically be notified of progress on your bug as I make changes.
+
+=head1 SUPPORT
+
+You can find documentation for this module with the perldoc command.
+
+    perldoc Stream::Extract
+
+You can also look for information at:
+
+=over 4
+
+=item * RT: CPAN's request tracker (report bugs here)
+
+L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Stream-Extract>
+
+=item * AnnoCPAN: Annotated CPAN documentation
+
+L<http://annocpan.org/dist/Stream-Extract>
+
+=item * CPAN Ratings
+
+L<http://cpanratings.perl.org/d/Stream-Extract>
+
+=item * Search CPAN
+
+L<http://search.cpan.org/dist/Stream-Extract/>
+
+=back
+
+
+=head1 ACKNOWLEDGEMENTS
+
+
+=head1 LICENSE AND COPYRIGHT
+
+Copyright 2012 Shlomi Fish.
+
+This program is distributed under the MIT (X11) License:
+L<http://www.opensource.org/licenses/mit-license.php>
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
+
+=cut
+
+1; # End of Stream::Extract

File-FindLines/module/lib/Stream/Extract/Result.pm

+package Stream::Extract::Result;
+
+use 5.006;
+use strict;
+use warnings;
+
+=head1 NAME
+
+Stream::Extract::Result - An abstract Stream::Extract Result object.
+
+=head1 VERSION
+
+Version 0.01
+
+=cut
+
+our $VERSION = '0.01';
+
+
+=head1 SYNOPSIS
+
+Should not be used directly - API is subject to change.
+    use Stream::Extract::Result;
+
+    my $foo = Stream::Extract::Result->new();
+
+=head1 SUBROUTINES/METHODS
+
+=head1 AUTHOR
+
+Shlomi Fish, C<< <shlomif at cpan.org> >>
+
+=head1 BUGS
+
+Please report any bugs or feature requests to C<bug-stream-extract at rt.cpan.org>, or through
+the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Stream-Extract>.  I will be notified, and then you'll
+automatically be notified of progress on your bug as I make changes.
+
+
+
+
+=head1 SUPPORT
+
+You can find documentation for this module with the perldoc command.
+
+    perldoc Stream::Extract::Result
+
+
+You can also look for information at:
+
+=over 4
+
+=item * RT: CPAN's request tracker (report bugs here)
+
+L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Stream-Extract>
+
+=item * AnnoCPAN: Annotated CPAN documentation
+
+L<http://annocpan.org/dist/Stream-Extract>
+
+=item * CPAN Ratings
+
+L<http://cpanratings.perl.org/d/Stream-Extract>
+
+=item * Search CPAN
+
+L<http://search.cpan.org/dist/Stream-Extract/>
+
+=back
+
+
+=head1 ACKNOWLEDGEMENTS
+
+
+=head1 LICENSE AND COPYRIGHT
+
+Copyright 2012 Shlomi Fish.
+
+This program is distributed under the MIT (X11) License:
+L<http://www.opensource.org/licenses/mit-license.php>
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
+
+=cut
+
+1; # End of Stream::Extract::Result

File-FindLines/module/lib/Stream/Extract/Result/Context.pm

+package Stream::Extract::Result::Context;
+
+use 5.006;
+use strict;
+use warnings;
+
+=head1 NAME
+
+Stream::Extract::Result::Context - a context result object.
+
+=head1 VERSION
+
+Version 0.01
+
+=cut
+
+our $VERSION = '0.01';
+
+=head1 SYNOPSIS
+
+Should not be instantiated directly. 
+
+=head1 AUTHOR
+
+Shlomi Fish, C<< <shlomif at cpan.org> >>
+
+=head1 BUGS
+
+Please report any bugs or feature requests to C<bug-stream-extract at rt.cpan.org>, or through
+the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Stream-Extract>.  I will be notified, and then you'll
+automatically be notified of progress on your bug as I make changes.
+
+
+
+
+=head1 SUPPORT
+
+You can find documentation for this module with the perldoc command.
+
+    perldoc Stream::Extract::Result::Context
+
+
+You can also look for information at:
+
+=over 4
+
+=item * RT: CPAN's request tracker (report bugs here)
+
+L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Stream-Extract>
+
+=item * AnnoCPAN: Annotated CPAN documentation
+
+L<http://annocpan.org/dist/Stream-Extract>
+
+=item * CPAN Ratings
+
+L<http://cpanratings.perl.org/d/Stream-Extract>
+
+=item * Search CPAN
+
+L<http://search.cpan.org/dist/Stream-Extract/>
+
+=back
+
+
+=head1 ACKNOWLEDGEMENTS
+
+
+=head1 LICENSE AND COPYRIGHT
+
+Copyright 2012 Shlomi Fish.
+
+This program is distributed under the MIT (X11) License:
+L<http://www.opensource.org/licenses/mit-license.php>
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
+
+=cut
+
+1; # End of Stream::Extract::Result::Context

File-FindLines/module/lib/Stream/Extract/Result/Match.pm

+package Stream::Extract::Result::Match;
+
+use 5.006;
+use strict;
+use warnings;
+
+=head1 NAME
+
+Stream::Extract::Result::Match - a matching record result.
+
+=head1 VERSION
+
+Version 0.01
+
+=cut
+
+our $VERSION = '0.01';
+
+=head1 SYNOPSIS
+
+Should not be instantiated directly.
+
+    use Stream::Extract::Result::Match;
+
+    my $foo = Stream::Extract::Result::Match->new();
+    ...
+
+=head1 SUBROUTINES/METHODS
+
+=head1 AUTHOR
+
+Shlomi Fish, C<< <shlomif at cpan.org> >>
+
+=head1 BUGS
+
+Please report any bugs or feature requests to C<bug-stream-extract at rt.cpan.org>, or through
+the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Stream-Extract>.  I will be notified, and then you'll
+automatically be notified of progress on your bug as I make changes.
+
+
+
+
+=head1 SUPPORT
+
+You can find documentation for this module with the perldoc command.
+
+    perldoc Stream::Extract::Result::Match
+
+
+You can also look for information at:
+
+=over 4
+
+=item * RT: CPAN's request tracker (report bugs here)
+
+L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Stream-Extract>
+
+=item * AnnoCPAN: Annotated CPAN documentation
+
+L<http://annocpan.org/dist/Stream-Extract>
+
+=item * CPAN Ratings
+
+L<http://cpanratings.perl.org/d/Stream-Extract>
+
+=item * Search CPAN
+
+L<http://search.cpan.org/dist/Stream-Extract/>
+
+=back
+
+
+=head1 ACKNOWLEDGEMENTS
+
+
+=head1 LICENSE AND COPYRIGHT
+
+Copyright 2012 Shlomi Fish.
+
+This program is distributed under the MIT (X11) License:
+L<http://www.opensource.org/licenses/mit-license.php>
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
+
+=cut
+
+1; # End of Stream::Extract::Result::Match

File-FindLines/module/t/00-load.t

 use Test::More tests => 4;
 
 BEGIN {
-    use_ok( 'File::FindLines' ) || print "Bail out!\n";
-    use_ok( 'File::FindLines::Result' ) || print "Bail out!\n";
-    use_ok( 'File::FindLines::Result::Context' ) || print "Bail out!\n";
-    use_ok( 'File::FindLines::Result::Record' ) || print "Bail out!\n";
+    use_ok( 'Stream::Extract' ) || print "Bail out!\n";
+    use_ok( 'Stream::Extract::Result' ) || print "Bail out!\n";
+    use_ok( 'Stream::Extract::Result::Context' ) || print "Bail out!\n";
+    use_ok( 'Stream::Extract::Result::Match' ) || print "Bail out!\n";
 }
 
-diag( "Testing File::FindLines $File::FindLines::VERSION, Perl $], $^X" );
+diag( "Testing Stream::Extract $Stream::Extract::VERSION, Perl $], $^X" );

File-FindLines/module/t/Find-FileLines.t

 
 use Test::More tests => 1;
 
-use File::FindLines;
+use Stream::Extract;
 
 {
     my @lines =
         "Moo\n",
     );
 
-    my $finder = File::FindLines->new(
+    my $finder = Stream::Extract->new(
         {
             input => { code => sub { return shift(@lines); } },
             filter => sub {

File-FindLines/module/t/boilerplate.t

     "placeholder date/time"       => qr(Date/time)
   );
 
-  module_boilerplate_ok('lib/File/FindLines.pm');
-  module_boilerplate_ok('lib/File/FindLines/Result.pm');
-  module_boilerplate_ok('lib/File/FindLines/Result/Context.pm');
-  module_boilerplate_ok('lib/File/FindLines/Result/Match.pm');
+  module_boilerplate_ok('lib/Stream/Extract.pm');
+  module_boilerplate_ok('lib/Stream/Extract/Result.pm');
+  module_boilerplate_ok('lib/Stream/Extract/Result/Context.pm');
+  module_boilerplate_ok('lib/Stream/Extract/Result/Match.pm');
 
 
 }
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.