Devel-REPL-Plugin-ModuleAutoLoader

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

Revision history for Devel-REPL-Plugin-ModuleAutoLoader

1.0     2016-07-06 14:55:00
        First version of Devel::REPL::Plugin::ModuleAutoLoader

META.json  view on Meta::CPAN

            "Test::More" : "0"
         }
      },
      "configure" : {
         "requires" : {
            "ExtUtils::MakeMaker" : "0"
         }
      },
      "runtime" : {
         "requires" : {
            "Devel::REPL::Plugin" : "0",
            "perl" : "5.006"
         }
      }
   },
   "release_status" : "stable",
   "version" : "1.0",
   "x_serialization_backend" : "JSON::PP version 2.27300"
}

META.yml  view on Meta::CPAN

license: perl
meta-spec:
  url: http://module-build.sourceforge.net/META-spec-v1.4.html
  version: '1.4'
name: Devel-REPL-Plugin-ModuleAutoLoader
no_index:
  directory:
    - t
    - inc
requires:
  Devel::REPL::Plugin: '0'
  perl: '5.006'
version: '1.0'
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'

Makefile.PL  view on Meta::CPAN

use 5.006;
use strict;
use warnings;
use ExtUtils::MakeMaker;

WriteMakefile(
    NAME             => 'Devel::REPL::Plugin::ModuleAutoLoader',
    AUTHOR           => q{James Ronan <james@ronanweb.co.uk>},
    VERSION_FROM     => 'lib/Devel/REPL/Plugin/ModuleAutoLoader.pm',
    ABSTRACT_FROM    => 'lib/Devel/REPL/Plugin/ModuleAutoLoader.pm',
    LICENSE          => 'perl_5',
    PL_FILES         => {},
    MIN_PERL_VERSION => 5.006,
    CONFIGURE_REQUIRES => {
        'ExtUtils::MakeMaker' => 0,
    },
    BUILD_REQUIRES => {
        'Test::More' => 0,
    },
    PREREQ_PM => {
        'Devel::REPL::Plugin' => 0,
    },
    dist  => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
    clean => { FILES => 'Devel-REPL-Plugin-ModuleAutoLoader-*' },
);

README.md  view on Meta::CPAN

	make test
	make install


SUPPORT AND DOCUMENTATION
-------------------------

After installing, you can find documentation for this module with the
perldoc command.

    perldoc Devel::REPL::Plugin::ModuleAutoLoader

You can also look for information at:

    RT, CPAN's request tracker (report bugs here)
        http://rt.cpan.org/NoAuth/Bugs.html?Dist=Devel-REPL-Plugin-ModuleAutoLoader

    AnnoCPAN, Annotated CPAN documentation
        http://annocpan.org/dist/Devel-REPL-Plugin-ModuleAutoLoader

    CPAN Ratings

lib/Devel/REPL/Plugin/ModuleAutoLoader.pm  view on Meta::CPAN

package Devel::REPL::Plugin::ModuleAutoLoader;
# ABSTRACT: Provide functionality to attmept to AutoLoad modules.

use strict;
use warnings;

our $VERSION = '1.0';

use Devel::REPL::Plugin;
use namespace::autoclean;

around 'execute' => sub {
    my ($orig, $_REPL, @args) = @_;

    my @command_result = $_REPL->$orig(@args);
    return @command_result
        if ref($command_result[0]) ne 'Devel::REPL::Error';

    my ($unloaded_module) = $command_result[0]->{message}

lib/Devel/REPL/Plugin/ModuleAutoLoader.pm  view on Meta::CPAN

    # If we didn't find a module to load, just return the Error.
    return @command_result;
};

1;

=pod

=head1 NAME

Devel::REPL::Plugin::ModuleAutoLoader - Autoloader Plugin for Devel::REPL

=head1 VERSION

Version 1.0

=head1 DESCRIPTION

Plugin for Devel::REPL that attempts automagically load modules used in a
line of code, that have yet to be loaded.

lib/Devel/REPL/Plugin/ModuleAutoLoader.pm  view on Meta::CPAN


Please report any bugs or feature requests to C<bug-devel-repl-plugin-moduleautoloader at rt.cpan.org>, or through
the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Devel-REPL-Plugin-ModuleAutoLoader>.  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 Devel::REPL::Plugin::ModuleAutoLoader


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=Devel-REPL-Plugin-ModuleAutoLoader>

lib/Devel/REPL/Plugin/ModuleAutoLoader.pm  view on Meta::CPAN

L<https://github.com/jamesronan/Devel-REPL-Plugin-ModuleAutoloader>

=head1 LICENSE AND COPYRIGHT

Copyright 2016 James Ronan.

This program is released under the following license: perl_5

=cut

1; # End of Devel::REPL::Plugin::ModuleAutoLoader

t/00-load.t  view on Meta::CPAN

#!perl -T
use 5.006;
use strict;
use warnings;
use Test::More;

plan tests => 1;

BEGIN {
    use_ok( 'Devel::REPL::Plugin::ModuleAutoLoader' ) || print "Bail out!\n";
}

diag( "Testing Devel::REPL::Plugin::ModuleAutoLoader $Devel::REPL::Plugin::ModuleAutoLoader::VERSION, Perl $], $^X" );



( run in 0.300 second using v1.01-cache-2.11-cpan-4ee56698ea0 )