1. Shlomi Fish
  2. perl-XML-Grammar-ProductsSyndication

Commits

shl...@52c325ad-5fd0-0310-8a0f-c43feede02cc  committed 25988bc

Converted from Moose to Class::Accessor, because Moose does not install
cleanly on cygwin and is an overkill for what we have to do.

  • Participants
  • Parent commits 50f1aa2
  • Branches default

Comments (0)

Files changed (2)

File perl/XML-Grammar-ProductsSyndication/Build.PL

View file
  • Ignore whitespace
         'Test::XML' => 0,
         'XML::LibXML' => 0,
         'XML::LibXSLT' => 0,
-        'Moose' => 0,
+        'Class::Accessor' => 0,
         'XML::Amazon' => 0,
         'LWP::UserAgent' => 0,
         'Imager' => 0,

File perl/XML-Grammar-ProductsSyndication/lib/XML/Grammar/ProductsSyndication.pm

View file
  • Ignore whitespace
 use LWP::UserAgent;
 use Imager;
 
-use Moose;
+use base 'Class::Accessor';
 
-has '_filename' => (isa => 'Str', is => 'rw');
-has '_data_dir' => (isa => 'Str', is => 'rw');
-has '_xml_parser' => (isa => "XML::LibXML", is => 'rw');
-has '_stylesheet' => (isa => "XML::LibXSLT::StylesheetWrapper", is => 'rw');
-has '_source_dom' => (isa => "XML::LibXML::Document", is => 'rw');
-has '_img_fn' => (isa => 'Str', is => 'rw');
+__PACKAGE__->mk_accessors(qw(
+    _data_dir
+    _filename
+    _img_fn
+    _source_dom
+    _stylesheet
+    _xml_parser
+));
 
 =head1 NAME
 
     }
 }
 
-=begin unused
-
-=head2 $processor->meta();
-
-This is to settle the Pod::Coverage. meta() is probably inserted by Moose.
-
-=end unused
-
-=cut
-
 =head1 AUTHOR
 
 Shlomi Fish, C<< <shlomif at cpan.org> >>