Commits

Shlomi Fish committed 5bd0e1a

Convert from Moose to Mouse.

Comments (0)

Files changed (21)

perl/modules/XML-Grammar-Fiction/Changes

 Revision history for XML-Grammar-Fiction.
 
+    * Add t/style-trailing-space.t to check for trailing space.
+        - Got rid of trailing space.
+        - TODO: extract into a CPAN module.
+    * Convert from "use Moose;" to "use Mouse;":
+        - it made the test suite run faster.
+        - TODO: test with https://metacpan.org/module/Moo .
+
 0.8.1       Sat Jun  9 23:07:51 IDT 2012
     * Add t/base/line-iterator-unit.t to provide unit-tests for
         XML::Grammar::FictionBase::FromProto::Parser::LineIterator .

perl/modules/XML-Grammar-Fiction/lib/XML/Grammar/Fiction/FromProto.pm

 use HTML::Entities ();
 use XML::Writer;
 
-use Moose;
+use Mouse;
 
 extends("XML::Grammar::FictionBase::TagsTree2XML");
 

perl/modules/XML-Grammar-Fiction/lib/XML/Grammar/Fiction/FromProto/Nodes.pm

 
 package XML::Grammar::Fiction::FromProto::Node;
 
-use Moose;
+use Mouse;
 
 sub _short_isa
 {
 
 package XML::Grammar::Fiction::FromProto::Node::WithContent;
 
-use Moose;
+use Mouse;
 
 extends("XML::Grammar::Fiction::FromProto::Node");
 
 
 package XML::Grammar::Fiction::FromProto::Node::Element;
 
-use Moose;
+use Mouse;
 
 extends("XML::Grammar::Fiction::FromProto::Node::WithContent");
 
 
 package XML::Grammar::Fiction::FromProto::Node::List;
 
-use Moose;
+use Mouse;
 
 extends("XML::Grammar::Fiction::FromProto::Node");
 
 
 package XML::Grammar::Fiction::FromProto::Node::Text;
 
-use Moose;
+use Mouse;
 
 extends("XML::Grammar::Fiction::FromProto::Node::WithContent");
 
 
 package XML::Grammar::Fiction::FromProto::Node::Saying;
 
-use Moose;
+use Mouse;
 
 extends("XML::Grammar::Fiction::FromProto::Node::Text");
 
 
 package XML::Grammar::Fiction::FromProto::Node::Description;
 
-use Moose;
+use Mouse;
 
 extends("XML::Grammar::Fiction::FromProto::Node::Text");
 
 package XML::Grammar::Fiction::FromProto::Node::Paragraph;
 
-use Moose;
+use Mouse;
 
 extends("XML::Grammar::Fiction::FromProto::Node::Element");
 
 package XML::Grammar::Fiction::FromProto::Node::InnerDesc;
 
-use Moose;
+use Mouse;
 
 extends("XML::Grammar::Fiction::FromProto::Node::Element");
 
 
 package XML::Grammar::Fiction::FromProto::Node::Comment;
 
-use Moose;
+use Mouse;
 
 extends("XML::Grammar::Fiction::FromProto::Node");
 

perl/modules/XML-Grammar-Fiction/lib/XML/Grammar/Fiction/FromProto/Parser.pm

 use strict;
 use warnings;
 
-use Moose;
+use Mouse;
 
 =head1 NAME
 

perl/modules/XML-Grammar-Fiction/lib/XML/Grammar/Fiction/FromProto/Parser/QnD.pm

 use strict;
 use warnings;
 
-use Moose;
+use Mouse;
 
 extends("XML::Grammar::FictionBase::FromProto::Parser::XmlIterator");
 
 
 =head2 $self->meta()
 
-Leftover from Moose.
+Leftover from Mouse.
 
 =head1 AUTHOR
 

perl/modules/XML-Grammar-Fiction/lib/XML/Grammar/Fiction/RNG_Renderer.pm

 
 =cut
 
-use Moose;
+use Mouse;
 
 extends ("XML::Grammar::FictionBase::XSLT::Converter");
 

perl/modules/XML-Grammar-Fiction/lib/XML/Grammar/Fiction/Struct/Tag.pm

 use strict;
 use warnings;
 
-use Moose;
+use Mouse;
+
+use List::MoreUtils;
 
 use XML::Grammar::Fiction::FromProto::Nodes;
 
 
 package XML::Grammar::Fiction::Struct::Tag::Para;
 
-use Moose;
+use Mouse;
 
 extends("XML::Grammar::Fiction::Struct::Tag");
 

perl/modules/XML-Grammar-Fiction/lib/XML/Grammar/Fiction/ToDocBook.pm

 
 use Carp;
 
-use Moose;
+use Mouse;
 
 extends ("XML::Grammar::Fiction::RNG_Renderer");
 

perl/modules/XML-Grammar-Fiction/lib/XML/Grammar/Fiction/ToHTML.pm

 
 use Carp;
 
-use Moose;
+use Mouse;
 
 extends( 'XML::Grammar::Fiction::RNG_Renderer' );
 

perl/modules/XML-Grammar-Fiction/lib/XML/Grammar/FictionBase/Event.pm

 
 =cut
 
-use Moose;
+use Mouse;
 
 use XML::Grammar::Fiction::FromProto::Nodes;
 
 
 =head2 $self->meta()
 
-Leftover from Moose.
+Leftover from Mouse.
 
 =head1 AUTHOR
 

perl/modules/XML-Grammar-Fiction/lib/XML/Grammar/FictionBase/FromProto/Parser/LineIterator.pm

 use strict;
 use warnings;
 
-use Moose;
+use Mouse;
 
 use XML::Grammar::Fiction::Err;
 
 
 =head2 $self->meta()
 
-Leftover from Moose.
+Leftover from Mouse.
 
 =head1 AUTHOR
 

perl/modules/XML-Grammar-Fiction/lib/XML/Grammar/FictionBase/FromProto/Parser/XmlIterator.pm

 use strict;
 use warnings;
 
-use Moose;
+use Mouse;
 
 use XML::Grammar::Fiction::Err;
 use XML::Grammar::Fiction::Struct::Tag;
 
 =head2 $self->meta()
 
-Leftover from Moose.
+Leftover from Mouse.
 
 =head1 AUTHOR
 

perl/modules/XML-Grammar-Fiction/lib/XML/Grammar/FictionBase/TagsTree2XML.pm

 package XML::Grammar::FictionBase::TagsTree2XML;
 
-use Moose;
+use Mouse;
 
 use XML::Writer;
 use HTML::Entities ();
 
 has "_writer" => ('isa' => "XML::Writer", 'is' => "rw");
 
-has '_buffer' => ('isa' => "ScalarRef[Str]", is => "rw");
-
 sub _write_Element_elem
 {
     my ($self, $elem) = @_;

perl/modules/XML-Grammar-Fiction/lib/XML/Grammar/FictionBase/XSLT/Converter.pm

 use XML::LibXML;
 use XML::LibXSLT;
 
-use Moose;
+use Mouse;
 
 has '_data_dir' => (isa => 'Str', is => 'rw');
 has '_data_dir_from_input' => (isa => 'Str', is => 'rw', init_arg => 'data_dir',);

perl/modules/XML-Grammar-Fiction/lib/XML/Grammar/Screenplay/FromProto.pm

 
 use XML::Writer;
 
-use Moose;
+use Mouse;
 
 extends("XML::Grammar::FictionBase::TagsTree2XML");
 
 
 =cut
 
-use Data::Dumper;
-
 sub _output_tag
 {
     my ($self, $args) = @_;
     return $self->_parser->process_text($self->_read_file($filename));
 }
 
+has '_buffer' => (is => "rw");
+
 sub convert
 {
     my ($self, $args) = @_;

perl/modules/XML-Grammar-Fiction/lib/XML/Grammar/Screenplay/FromProto/Parser.pm

 use strict;
 use warnings;
 
-use Moose;
+use Mouse;
 
 1;
 

perl/modules/XML-Grammar-Fiction/lib/XML/Grammar/Screenplay/FromProto/Parser/QnD.pm

 use strict;
 use warnings;
 
-use Moose;
+use Mouse;
 
 extends( 'XML::Grammar::FictionBase::FromProto::Parser::XmlIterator' );
 
 
 =head2 $self->meta()
 
-Leftover from Moose.
+Leftover from Mouse.
 
 =head1 AUTHOR
 

perl/modules/XML-Grammar-Fiction/lib/XML/Grammar/Screenplay/ToDocBook.pm

 package XML::Grammar::Screenplay::ToDocBook;
 
-use Moose;
+use Mouse;
 
 extends('XML::Grammar::Screenplay::XSLT::Base');
 

perl/modules/XML-Grammar-Fiction/lib/XML/Grammar/Screenplay/ToHTML.pm

 package XML::Grammar::Screenplay::ToHTML;
 
-use Moose;
+use Mouse;
 
 extends('XML::Grammar::Screenplay::XSLT::Base');
 

perl/modules/XML-Grammar-Fiction/lib/XML/Grammar/Screenplay/ToTEI.pm

 use strict;
 use warnings;
 
-use Moose;
+use Mouse;
 
 extends('XML::Grammar::Screenplay::XSLT::Base');
 

perl/modules/XML-Grammar-Fiction/lib/XML/Grammar/Screenplay/XSLT/Base.pm

 package XML::Grammar::Screenplay::XSLT::Base;
 
-use Moose;
+use Mouse;
 
 extends('XML::Grammar::FictionBase::XSLT::Converter');
 
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.