Commits

Shlomi Fish committed edca32d

Convert to MooX 'late'.

Thanks to the people on #moose for suggestions.

  • Participants
  • Parent commits b015419

Comments (0)

Files changed (6)

File XML-GrammarBase/Build.PL

     dist_author         => q{Shlomi Fish <shlomif@cpan.org>},
     dist_version_from   => 'lib/XML/GrammarBase.pm',
     requires => {
-        'Any::Moose' => 0,
+        'autodie' => 0,
         'File::ShareDir' => 0,
+        'MooX::late' => 0,
+        'Moo::Role' => 0,
+        'MooX' => 0,
         'XML::LibXML' => '2.0013',
         'XML::LibXSLT' => 0,
         'strict' => 0,

File XML-GrammarBase/lib/XML/GrammarBase.pm

 
 =head1 SYNOPSIS
 
-    package XML::Grammar::MyGrammar::RelaxNG::Validate;
-
-    use Any::Moose;
-
-    has '_cfg' => (isa => "XML::Grammar::MyGrammar::Conf", is => "rw");
-
-    extends(
-        "XML::GrammarBase::RelaxNG::Validate"
-    );
+See the ones under the Role packages.
 
 =head1 DESCRIPTION
 

File XML-GrammarBase/lib/XML/GrammarBase/Role/RelaxNG.pm

 
 =cut
 
-use Any::Moose 'Role';
+use Moo::Role;
+
+use MooX 'late';
 
 use File::ShareDir qw(dist_dir);
 use XML::LibXML;

File XML-GrammarBase/lib/XML/GrammarBase/Role/XSLT.pm

 
 =cut
 
-use Any::Moose 'Role';
+use Moo::Role;
+
+use MooX 'late';
 
 use XML::LibXML;
 use XML::LibXSLT;

File XML-GrammarBase/t/rng.t

 
 package MyGrammar::RNG;
 
-use Any::Moose;
+use MooX 'late';
 
 use File::Spec;
 

File XML-GrammarBase/t/xslt.t

 
 package MyGrammar::XSLT;
 
-use Any::Moose;
+use MooX 'late';
 
 use File::Spec;