Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed test due to Perl new hash randomisation plus tidied up the docs

  • Loading branch information...
commit 098c5636bb2d602fec082232bb8fd648fe7bc4e7 1 parent 51bf86e
@draegtun authored
View
2  .gitignore
@@ -13,3 +13,5 @@ pod2htmd.tmp
pod2htmi.tmp
MANIFEST.bak
META.yml
+*.swp
+*.un~
View
10 Changes
@@ -1,8 +1,14 @@
Revision history for Builder
+0.06 Sun December 16th 2012
+ * Amended t/builder_xml_pretty.t
+ - Test got hit by hash randomisation change at 5.17.6 (for perl 5.18) :(
+ - Fixed by just removing multiple attributes from test :)
+
+
0.05 Sat March 6, 2010
- * Minor tidying up
- - Build.PL now has repo meta tag
+ * Minor tidying up
+ - Build.PL now has repo meta tag
0.04 Fri January 16, 2009
View
4 MANIFEST
@@ -1,8 +1,12 @@
Build.PL
Changes
+lib/.Builder.pm.swp
lib/Builder.pm
+lib/Builder/.Utils.pm.swp
+lib/Builder/.XML.pm.swp
lib/Builder/Utils.pm
lib/Builder/XML.pm
+lib/Builder/XML/.Utils.pm.swp
lib/Builder/XML/Utils.pm
Makefile.PL
MANIFEST
View
1  MANIFEST.SKIP
@@ -13,3 +13,4 @@ CVS
pod2htmd.tmp
pod2htmi.tmp
^MYMETA.yml$
+^MYMETA\.json$
View
5 MANIFEST.bak
@@ -1,13 +1,18 @@
Build.PL
Changes
+lib/.Builder.pm.swp
lib/Builder.pm
+lib/Builder/.Utils.pm.swp
+lib/Builder/.XML.pm.swp
lib/Builder/Utils.pm
lib/Builder/XML.pm
+lib/Builder/XML/.Utils.pm.swp
lib/Builder/XML/Utils.pm
Makefile.PL
MANIFEST
META.yml
README
+README.pod
t/00-load.t
t/boilerplate.t
t/builder_xml_basic.t
View
7 lib/Builder.pm
@@ -2,7 +2,7 @@ package Builder;
use strict;
use warnings;
use Carp;
-our $VERSION = '0.05';
+our $VERSION = '0.06';
sub new {
@@ -76,8 +76,7 @@ Builder - Build XML, HTML, CSS and other outputs in blocks
=head1 VERSION
-Version 0.05
-
+Version 0.06
=head1 SYNOPSIS
@@ -317,7 +316,7 @@ However I accept no liability I<whatsoever> should this software do what you exp
=head1 COPYRIGHT & LICENSE
-Copyright 2008-2010 Barry Walsh (Draegtun Systems Ltd | L<http://www.draegtun.com>), all rights reserved.
+Copyright 2008-2013 Barry Walsh (Draegtun Systems Ltd | L<http://www.draegtun.com>), all rights reserved.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
View
13 lib/Builder/Utils.pm
@@ -2,7 +2,7 @@ package Builder::Utils;
use strict;
use warnings;
use Carp;
-our $VERSION = '0.03';
+our $VERSION = '0.06';
# common utilities put here and not exported into Builder::* because it would pollute namespace (ie. tags!)
@@ -32,17 +32,10 @@ __END__
Builder::Utils - Internal Builder Utils
-=head1 VERSION
-
-Version 0.03
-
-=cut
-
-
=head1 SYNOPSIS
-TBD
+NB. No need to use this module directly
=head1 EXPORT
@@ -105,7 +98,7 @@ See L<Builder>
=head1 COPYRIGHT & LICENSE
-Copyright 2008-2010 Barry Walsh (Draegtun Systems Ltd | L<http://www.draegtun.com>), all rights reserved.
+Copyright 2008-2013 Barry Walsh (Draegtun Systems Ltd | L<http://www.draegtun.com>), all rights reserved.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
View
12 lib/Builder/XML.pm
@@ -4,7 +4,7 @@ use warnings;
use Carp;
use Builder::Utils;
use Builder::XML::Utils;
-our $VERSION = '0.03';
+our $VERSION = '0.06';
our $AUTOLOAD;
@@ -159,10 +159,7 @@ Builder::XML - Building block for XML
=head1 VERSION
-Version 0.03
-
-=cut
-
+Version 0.06
=head1 SYNOPSIS
@@ -420,11 +417,8 @@ L<http://search.cpan.org/dist/Builder/>
=head1 COPYRIGHT & LICENSE
-Copyright 2008-2010 Barry Walsh (Draegtun Systems Ltd | L<http://www.draegtun.com>), all rights reserved.
+Copyright 2008-2013 Barry Walsh (Draegtun Systems Ltd | L<http://www.draegtun.com>), all rights reserved.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
-
-=cut
-
View
16 lib/Builder/XML/Utils.pm
@@ -2,8 +2,7 @@ package Builder::XML::Utils;
use strict;
use warnings;
use Carp;
-our $VERSION = '0.03';
-
+our $VERSION = '0.06';
sub build_context {
@@ -96,19 +95,12 @@ __END__
=head1 NAME
-Builder::XML::Utils - Internal Builder XML Utils
-
-=head1 VERSION
-
-Version 0.03
-
-=cut
-
+Builder::XML::Utils - Internal Builder XML Utility functions
=head1 SYNOPSIS
-TBD
+NB. No need to use this module directly.
=head1 EXPORT
@@ -171,7 +163,7 @@ See L<Builder>
=head1 COPYRIGHT & LICENSE
-Copyright 2008-2010 Barry Walsh (Draegtun Systems Ltd | L<http://www.draegtun.com>), all rights reserved.
+Copyright 2008-2013 Barry Walsh (Draegtun Systems Ltd | L<http://www.draegtun.com>), all rights reserved.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
View
8 t/builder_xml_pretty.t
@@ -43,7 +43,7 @@ my $n = $builder->block( 'Builder::XML' );
my @issues = ('My Active Issues', 'All Active Issues', 'Unassigned Issues', 'Closed Issues' );
$xm->div(
- { id => 'dash-actions', class => 'section' },
+ { id => 'dash-actions' },
$xm->h1( 'Action Planning' ),
@@ -80,7 +80,7 @@ $xm->div(
$expected =
-q{<div class="section" id="dash-actions">
+q{<div id="dash-actions">
<h1>Action Planning</h1>
<div id="myTabs">
<ul>
@@ -114,7 +114,7 @@ is $builder->render, $expected, "xml pretty test 3 failed";
# test 4
my $h = $builder->block( 'Builder::XML', { pre_indent => 4, indent => 4, newline => 1 } );
-$h->one( $h->inside_one( { a => 1, b => 2 } ), $h->also_inside_one );
+$h->one( $h->inside_one( {a => 1} ), $h->also_inside_one );
my $one = $h->__render__;
$xm->ONE( $xm->pre, $one, $xm->post );
@@ -123,7 +123,7 @@ $expected =
q{<ONE>
<pre />
<one>
- <inside_one a="1" b="2" />
+ <inside_one a="1" />
<also_inside_one />
</one>
<post />
Please sign in to comment.
Something went wrong with that request. Please try again.