increment $VERSION after 1.003028 release
[p5sagit/Devel-REPL.git] / lib / Devel / REPL / Plugin / Nopaste.pm
index 2d9b8fc..fe35ca8 100644 (file)
@@ -1,9 +1,13 @@
+use strict;
+use warnings;
 package Devel::REPL::Plugin::Nopaste;
+# ABSTRACT: #nopaste to upload session's input and output
+
+our $VERSION = '1.003029';
 
 use Devel::REPL::Plugin;
-use MooseX::AttributeHelpers;
-use Moose::Util::TypeConstraints;
-use namespace::clean -except => [ 'meta' ];
+use Moose::Util::TypeConstraints 'enum';
+use namespace::autoclean;
 use Scalar::Util qw(blessed);
 
 sub BEFORE_PLUGIN {
@@ -12,18 +16,17 @@ sub BEFORE_PLUGIN {
 }
 
 has complete_session => (
-    metaclass => 'String',
+    traits => ['String'],
     is        => 'rw',
     isa       => 'Str',
     lazy      => 1,
     default   => '',
-    provides  => {
-        append => 'add_to_session',
+    handles  => {
+        add_to_session => 'append',
     },
 );
 
 has paste_title => (
-    metaclass => 'String',
     is        => 'rw',
     isa       => 'Str',
     lazy      => 1,
@@ -96,9 +99,7 @@ sub command_pastetitle {
 
 __END__
 
-=head1 NAME
-
-Devel::REPL::Plugin::Nopaste - #nopaste to upload session's input and output
+=pod
 
 =head1 COMMANDS
 
@@ -116,7 +117,7 @@ the nopaste site. For example:
 
 C<#pastetitle example of some code>
 
-defaults to 'Devel::REPL session'
+defaults to C<'Devel::REPL session'>.
 
 =head1 CONFIGURATION
 
@@ -134,7 +135,7 @@ The default of commenting out the output would be set like this:
 
 C<< $_REPL->nopaste_format( 'comment_output' ); >>
 
-These options can be set during a Devel::REPL session, but only affect
+These options can be set during a L<Devel::REPL> session, but only affect
 the future parts of the session, not the past parts.
 
 =head1 AUTHOR
@@ -150,4 +151,3 @@ Shawn M Moore, C<< <sartak at gmail dot com> >>
 =back
 
 =cut
-