summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore7
-rw-r--r--ChangeLog4
-rw-r--r--Makefile.PL1
-rw-r--r--lib/Tree/Template/Declare.pm4
-rw-r--r--lib/Tree/Template/Declare/DAG_Node.pm4
-rw-r--r--lib/Tree/Template/Declare/HTML_Element.pm2
-rw-r--r--lib/Tree/Template/Declare/LibXML.pm2
-rw-r--r--t/03-html.t4
-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
diff --git a/.gitignore b/.gitignore
index 7196723..417e141 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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
diff --git a/ChangeLog b/ChangeLog
index 4432ea1..e5adda8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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