From 1d8ff8801f0bd07115cac12cba5f41b13b5af060 Mon Sep 17 00:00:00 2001 From: Mark Gardner Date: Mon, 21 Mar 2011 16:30:27 -0400 Subject: [PATCH 1/2] fix Can't locate any of Moose::Meta::Attribute::Custom::Trait::FOO in @INC error when using an XML::Rabbit::Node consumer --- lib/XML/Rabbit/Node.pm | 8 ++++++++ t/regression/node_attribute_traits.t | 6 ++++++ 2 files changed, 14 insertions(+) create mode 100755 t/regression/node_attribute_traits.t diff --git a/lib/XML/Rabbit/Node.pm b/lib/XML/Rabbit/Node.pm index cdf20cb..0b04a90 100644 --- a/lib/XML/Rabbit/Node.pm +++ b/lib/XML/Rabbit/Node.pm @@ -6,6 +6,14 @@ use Moose::Role; # ABSTRACT: Node base class +# Preload XPath attribute traits +use XML::Rabbit::Trait::XPathValue; +use XML::Rabbit::Trait::XPathValueList; +use XML::Rabbit::Trait::XPathValueMap; +use XML::Rabbit::Trait::XPathObject; +use XML::Rabbit::Trait::XPathObjectList; +use XML::Rabbit::Trait::XPathObjectMap; + =attr node An instance of a L class representing a node in an XML document tree. Read Only. diff --git a/t/regression/node_attribute_traits.t b/t/regression/node_attribute_traits.t new file mode 100755 index 0000000..40d42ac --- /dev/null +++ b/t/regression/node_attribute_traits.t @@ -0,0 +1,6 @@ +#!perl -T + +use strict; +use warnings; +use Test::Most tests => 1; +lives_ok( sub { use lib 't/lib'; require W3C::XHTML::Body } ); From 94635c704c6af9cc91944ef0e09a899d95669e35 Mon Sep 17 00:00:00 2001 From: Mark Gardner Date: Fri, 10 May 2013 11:12:29 -0400 Subject: [PATCH 2/2] added fairly bare-bones explicit Perl::Critic configuration --- dist.ini | 1 + xt/author/perlcritic.rc | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 xt/author/perlcritic.rc diff --git a/dist.ini b/dist.ini index cedfcd5..b686dbc 100644 --- a/dist.ini +++ b/dist.ini @@ -35,6 +35,7 @@ move = README.mkdn [PodSyntaxTests] [PodCoverageTests] [Test::Perl::Critic] +critic_config = xt/author/perlcritic.rc [Test::Kwalitee] [NoTabsTests] [EOLTests] diff --git a/xt/author/perlcritic.rc b/xt/author/perlcritic.rc new file mode 100644 index 0000000..93ee29d --- /dev/null +++ b/xt/author/perlcritic.rc @@ -0,0 +1,2 @@ +verbose = 8 +exclude = ValuesAndExpressions::ProhibitAccessOfPrivateData \ No newline at end of file