Shlomi Fish avatar Shlomi Fish committed edca32d

Convert to MooX 'late'.

Thanks to the people on #moose for suggestions.

Comments (0)

Files changed (6)

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,

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
 

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;

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;

XML-GrammarBase/t/rng.t

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

XML-GrammarBase/t/xslt.t

 
 package MyGrammar::XSLT;
 
-use Any::Moose;
+use MooX 'late';
 
 use File::Spec;
 
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.