Skip to content

Commit

Permalink
Build results of ed98964 (on master)
Browse files Browse the repository at this point in the history
  • Loading branch information
kentfredric committed Apr 9, 2016
1 parent e4210d9 commit 7f778d8
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Release history for Perl-PrereqScanner-Scanner-Runtime

0.001000 2016-04-09T13:44:35Z 6ccfc51
0.001000 2016-04-09T14:11:09Z ed98964
- First version.

11 changes: 11 additions & 0 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,17 @@
}
},
"release_status" : "stable",
"resources" : {
"bugtracker" : {
"web" : "https://github.com/kentnl/Perl-PrereqScanner-Scanner-Runtime/issues"
},
"homepage" : "https://github.com/kentnl/Perl-PrereqScanner-Scanner-Runtime",
"repository" : {
"type" : "git",
"url" : "https://github.com/kentnl/Perl-PrereqScanner-Scanner-Runtime.git",
"web" : "https://github.com/kentnl/Perl-PrereqScanner-Scanner-Runtime"
}
},
"version" : "0.001000",
"x_BuiltWith" : {
"external_file" : "misc/built_with.json"
Expand Down
4 changes: 4 additions & 0 deletions META.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,8 @@ requires:
perl: '5.006'
strict: '0'
warnings: '0'
resources:
bugtracker: https://github.com/kentnl/Perl-PrereqScanner-Scanner-Runtime/issues
homepage: https://github.com/kentnl/Perl-PrereqScanner-Scanner-Runtime
repository: https://github.com/kentnl/Perl-PrereqScanner-Scanner-Runtime.git
version: '0.001000'
4 changes: 4 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ provide different kinds of generic "Runtime" detection.

Scans for "Class::Load" specific syntax.

* "Module::Load"

Scans for "Module::Load" specific syntax.

AUDIENCE

Its worth noting that this module is not necessarily going to be useful
Expand Down
10 changes: 9 additions & 1 deletion lib/Perl/PrereqScanner/Scanner/Runtime.pm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ sub scan_for_prereqs { ## no critic (RequireArgUnpacking)
sub _build_slave_scanners {
require Perl::PrereqScanner::Scanner::Module::Runtime;
require Perl::PrereqScanner::Scanner::Class::Load;
return [ Perl::PrereqScanner::Scanner::Module::Runtime->new(), Perl::PrereqScanner::Scanner::Class::Load->new(), ];
require Perl::PrereqScanner::Scanner::Module::Load;
return [
Perl::PrereqScanner::Scanner::Module::Runtime->new(), Perl::PrereqScanner::Scanner::Class::Load->new(),
Perl::PrereqScanner::Scanner::Module::Load->new(),
];
}
1;

Expand Down Expand Up @@ -79,6 +83,10 @@ Scans for L<< C<Module::Runtime>|Module::Runtime >> specific syntax.
Scans for L<< C<Class::Load>|Class::Load >> specific syntax.
=item * L<< C<Module::Load>|Perl::PrereqScanner::Scanner::Module::Load >>
Scans for L<< C<Module::Load>|Module::Load >> specific syntax.
=back
=head2 AUDIENCE
Expand Down
3 changes: 3 additions & 0 deletions t/all_scanners.t
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,17 @@ my $reqs = $scanner->scan_string(
q[
use Module::Runtime;
use Class::Load;
use Module::Load;
use_module('Example');
load_class('Example2');
load Example3;
]
)->as_string_hash;

ok( exists $reqs->{'Example'}, 'Module::Runtime example found' ) or diag explain $reqs;
ok( exists $reqs->{'Example2'}, 'Class::Load example found' ) or diag explain $reqs;
ok( exists $reqs->{'Example3'}, 'Class::Load example found' ) or diag explain $reqs;

done_testing;

0 comments on commit 7f778d8

Please sign in to comment.