diff options
author | dakkar <dakkar@thenautilus.net> | 2011-02-13 14:21:06 +0000 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2011-02-13 14:40:38 +0000 |
commit | 2aea874ff9570e31e9ff30dcf1d38df072f98893 (patch) | |
tree | 1102e34c184cfb851fd992e4f4e4a59ac2942812 | |
parent | relaxed Perl::Critic rules (diff) | |
download | Tree-Template-Declare-2aea874ff9570e31e9ff30dcf1d38df072f98893.tar.gz Tree-Template-Declare-2aea874ff9570e31e9ff30dcf1d38df072f98893.tar.bz2 Tree-Template-Declare-2aea874ff9570e31e9ff30dcf1d38df072f98893.zip |
prep for version 0.4v0.4
minor test fixes
-rw-r--r-- | .gitignore | 7 | ||||
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | Makefile.PL | 1 | ||||
-rw-r--r-- | lib/Tree/Template/Declare.pm | 4 | ||||
-rw-r--r-- | lib/Tree/Template/Declare/DAG_Node.pm | 4 | ||||
-rw-r--r-- | lib/Tree/Template/Declare/HTML_Element.pm | 2 | ||||
-rw-r--r-- | lib/Tree/Template/Declare/LibXML.pm | 2 | ||||
-rw-r--r-- | t/03-html.t | 4 | ||||
-rw-r--r-- | xt/00-author-critic.t (renamed from t/00-author-critic.t) | 2 | ||||
-rw-r--r-- | xt/00-author-minver.t (renamed from t/00-author-minver.t) | 0 | ||||
-rw-r--r-- | xt/00-author-pod.t (renamed from t/00-author-pod.t) | 0 | ||||
-rw-r--r-- | xt/perlcriticrc (renamed from t/perlcriticrc) | 0 |
12 files changed, 18 insertions, 12 deletions
@@ -1,5 +1,8 @@ -blib/ -inc/ +/blib/ +/inc/ /META.yml /pm_to_blib /Makefile +/Makefile.old +/cover_db/ +/MANIFEST
\ No newline at end of file @@ -1,5 +1,9 @@ .. -*- mode: rst; coding: utf-8 -*- +0.4 2011-02-13 + - fixed test for HTML::Element + - silenced some critic violations + 0.3 2009-06-27 - now the "current node" is global, so that you can call node-generating subs in other packages, and actually get the diff --git a/Makefile.PL b/Makefile.PL index 3547199..9b7622c 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -11,7 +11,6 @@ requires 'Carp' => 0, ; test_requires 'Test::Most' => 0, - 'Tree::DAG_Node::XPath' => '0.10', ; WriteAll; diff --git a/lib/Tree/Template/Declare.pm b/lib/Tree/Template/Declare.pm index 28901c4..c7dc227 100644 --- a/lib/Tree/Template/Declare.pm +++ b/lib/Tree/Template/Declare.pm @@ -7,7 +7,7 @@ use Carp; use Data::Dumper; use 5.006; -our $VERSION='0.3'; +our $VERSION='0.4'; { my $exporter=Sub::Exporter::build_exporter({ @@ -39,7 +39,7 @@ sub _build_group { $builder_pkg="Tree::Template::Declare::$1"; } eval "require $builder_pkg" ## no critic (ProhibitStringyEval) - or croak "Can't load $builder_pkg: $@"; + or croak "Can't load $builder_pkg: $@"; ## no critic (ProhibitPunctuationVars) if ($builder_pkg->can('new')) { $builder=$builder_pkg->new(); diff --git a/lib/Tree/Template/Declare/DAG_Node.pm b/lib/Tree/Template/Declare/DAG_Node.pm index 97bee01..aca8082 100644 --- a/lib/Tree/Template/Declare/DAG_Node.pm +++ b/lib/Tree/Template/Declare/DAG_Node.pm @@ -3,14 +3,14 @@ use strict; use warnings; use Carp; -our $VERSION='0.3'; +our $VERSION='0.4'; sub new { my ($class,$node_class)=@_; $node_class||='Tree::DAG_Node'; eval "require $node_class" or ## no critic (ProhibitStringyEval) - croak "Can't load $node_class: $@"; + croak "Can't load $node_class: $@"; ## no critic (ProhibitPunctuationVars) return bless {nc=>$node_class},$class; } diff --git a/lib/Tree/Template/Declare/HTML_Element.pm b/lib/Tree/Template/Declare/HTML_Element.pm index 4202225..01f4a15 100644 --- a/lib/Tree/Template/Declare/HTML_Element.pm +++ b/lib/Tree/Template/Declare/HTML_Element.pm @@ -4,7 +4,7 @@ use warnings; use Carp; use HTML::Element; -our $VERSION='0.3'; +our $VERSION='0.4'; sub new { my ($class)=@_; diff --git a/lib/Tree/Template/Declare/LibXML.pm b/lib/Tree/Template/Declare/LibXML.pm index ad4ae6d..77194c7 100644 --- a/lib/Tree/Template/Declare/LibXML.pm +++ b/lib/Tree/Template/Declare/LibXML.pm @@ -4,7 +4,7 @@ use warnings; use Carp; use XML::LibXML; -our $VERSION='0.3'; +our $VERSION='0.4'; sub new { my ($class)=@_; diff --git a/t/03-html.t b/t/03-html.t index 9cb196e..a4b6df9 100644 --- a/t/03-html.t +++ b/t/03-html.t @@ -32,7 +32,7 @@ my $tree=tree { }; }; -is($tree->as_HTML(), - qq{<html><head><title>Page title</title></head><body><p class="para" id="p1">Page para</body></html>\n}, +like($tree->as_HTML(), + qr{\A<html><head><title>Page title</title></head><body><p class="para" id="p1">Page para</body></html>\s*\z}, 'HTML tree' ); diff --git a/t/00-author-critic.t b/xt/00-author-critic.t index 79ed2b7..13fe8e7 100644 --- a/t/00-author-critic.t +++ b/xt/00-author-critic.t @@ -28,7 +28,7 @@ foreach my $MODULE ( @MODULES ) { : plan( skip_all => "$MODULE not available for testing" ); } } -my $rcfile = File::Spec->catfile( 't', 'perlcriticrc' ); +my $rcfile = File::Spec->catfile( 'xt', 'perlcriticrc' ); Test::Perl::Critic->import( -profile => $rcfile ); all_critic_ok(); diff --git a/t/00-author-minver.t b/xt/00-author-minver.t index 4dfb876..4dfb876 100644 --- a/t/00-author-minver.t +++ b/xt/00-author-minver.t diff --git a/t/00-author-pod.t b/xt/00-author-pod.t index 2cdfcc4..2cdfcc4 100644 --- a/t/00-author-pod.t +++ b/xt/00-author-pod.t diff --git a/t/perlcriticrc b/xt/perlcriticrc index 029461c..029461c 100644 --- a/t/perlcriticrc +++ b/xt/perlcriticrc |