- New upstream release 0.04 - Do not throw exceptions when there's no template (https://github.com/miyagawa/Data-Section-Simple/pull/2) - URL moved to github - Source0 moved to MetaCPAN - Package upstream's new LICENSE file - Switch to Module::Build::Tiny flow - Update patch for building with Test::More < 0.88 - Drop %defattr, redundant since rpm 4.4epel9
parent
c3de9f7b52
commit
d0e94d8bdb
@ -1,57 +0,0 @@
|
||||
diff -up Data-Section-Simple-0.02/t/basic.t.orig Data-Section-Simple-0.02/t/basic.t
|
||||
--- Data-Section-Simple-0.02/t/basic.t.orig 2010-03-18 08:30:42.000000000 +0000
|
||||
+++ Data-Section-Simple-0.02/t/basic.t 2011-08-03 13:35:00.536119464 +0100
|
||||
@@ -1,6 +1,6 @@
|
||||
use strict;
|
||||
use Data::Section::Simple qw(get_data_section);
|
||||
-use Test::More;
|
||||
+use Test::More tests => 3;
|
||||
|
||||
my $x = get_data_section();
|
||||
is_deeply [ sort keys %$x ], [ qw(bar.tt foo.html) ];
|
||||
@@ -19,8 +19,6 @@ bar
|
||||
|
||||
TT
|
||||
|
||||
-done_testing;
|
||||
-
|
||||
__DATA__
|
||||
|
||||
@@ foo.html
|
||||
diff -up Data-Section-Simple-0.02/t/data.t.orig Data-Section-Simple-0.02/t/data.t
|
||||
--- Data-Section-Simple-0.02/t/data.t.orig 2010-03-18 21:59:01.000000000 +0000
|
||||
+++ Data-Section-Simple-0.02/t/data.t 2011-08-03 13:35:24.648055699 +0100
|
||||
@@ -1,6 +1,6 @@
|
||||
use lib "t";
|
||||
use DataInCode;
|
||||
-use Test::More;
|
||||
+use Test::More tests => 1;
|
||||
use Data::Section::Simple;
|
||||
|
||||
my $d = Data::Section::Simple->new('DataInCode');
|
||||
@@ -8,7 +8,3 @@ my $x = $d->get_data_section;
|
||||
|
||||
is $x->{foo}, "bar\n\n";
|
||||
|
||||
-done_testing;
|
||||
-
|
||||
-
|
||||
-
|
||||
diff -up Data-Section-Simple-0.02/t/pkg_oo.t.orig Data-Section-Simple-0.02/t/pkg_oo.t
|
||||
--- Data-Section-Simple-0.02/t/pkg_oo.t.orig 2010-03-18 08:26:28.000000000 +0000
|
||||
+++ Data-Section-Simple-0.02/t/pkg_oo.t 2011-08-03 13:35:51.142985668 +0100
|
||||
@@ -4,7 +4,7 @@ use Data::Section::Simple;
|
||||
use lib "t";
|
||||
use Foo;
|
||||
|
||||
-use Test::More;
|
||||
+use Test::More tests => 3;
|
||||
|
||||
my $d = Data::Section::Simple->new('Foo');
|
||||
my $x = $d->get_data_section();
|
||||
@@ -24,5 +24,3 @@ bar
|
||||
|
||||
TT
|
||||
|
||||
-done_testing;
|
||||
-
|
@ -0,0 +1,69 @@
|
||||
diff -up Data-Section-Simple-0.04/t/basic.t.orig Data-Section-Simple-0.04/t/basic.t
|
||||
--- Data-Section-Simple-0.04/t/basic.t.orig 2013-03-29 00:50:51.000000000 +0000
|
||||
+++ Data-Section-Simple-0.04/t/basic.t 2013-04-01 14:13:21.566927338 +0100
|
||||
@@ -1,6 +1,6 @@
|
||||
use strict;
|
||||
use Data::Section::Simple qw(get_data_section);
|
||||
-use Test::More;
|
||||
+use Test::More tests => 3;
|
||||
|
||||
my $x = get_data_section();
|
||||
is_deeply [ sort keys %$x ], [ qw(bar.tt foo.html) ];
|
||||
@@ -19,8 +19,6 @@ bar
|
||||
|
||||
TT
|
||||
|
||||
-done_testing;
|
||||
-
|
||||
__DATA__
|
||||
|
||||
@@ foo.html
|
||||
diff -up Data-Section-Simple-0.04/t/data.t.orig Data-Section-Simple-0.04/t/data.t
|
||||
--- Data-Section-Simple-0.04/t/data.t.orig 2013-03-29 00:50:51.000000000 +0000
|
||||
+++ Data-Section-Simple-0.04/t/data.t 2013-04-01 14:13:21.566927338 +0100
|
||||
@@ -1,6 +1,6 @@
|
||||
use lib "t";
|
||||
use DataInCode;
|
||||
-use Test::More;
|
||||
+use Test::More tests => 1;
|
||||
use Data::Section::Simple;
|
||||
|
||||
my $d = Data::Section::Simple->new('DataInCode');
|
||||
@@ -8,7 +8,3 @@ my $x = $d->get_data_section;
|
||||
|
||||
is $x->{foo}, "bar\n\n";
|
||||
|
||||
-done_testing;
|
||||
-
|
||||
-
|
||||
-
|
||||
diff -up Data-Section-Simple-0.04/t/no-datat.t.orig Data-Section-Simple-0.04/t/no-datat.t
|
||||
--- Data-Section-Simple-0.04/t/no-datat.t.orig 2013-03-29 00:50:51.000000000 +0000
|
||||
+++ Data-Section-Simple-0.04/t/no-datat.t 2013-04-01 14:14:04.310838315 +0100
|
||||
@@ -1,7 +1,5 @@
|
||||
use strict;
|
||||
use Data::Section::Simple qw(get_data_section);
|
||||
-use Test::More;
|
||||
+use Test::More tests => 1;
|
||||
|
||||
is get_data_section('foo.html'), undef, 'Do not die.';
|
||||
-
|
||||
-done_testing;
|
||||
diff -up Data-Section-Simple-0.04/t/pkg_oo.t.orig Data-Section-Simple-0.04/t/pkg_oo.t
|
||||
--- Data-Section-Simple-0.04/t/pkg_oo.t.orig 2013-03-29 00:50:51.000000000 +0000
|
||||
+++ Data-Section-Simple-0.04/t/pkg_oo.t 2013-04-01 14:13:21.566927338 +0100
|
||||
@@ -4,7 +4,7 @@ use Data::Section::Simple;
|
||||
use lib "t";
|
||||
use Foo;
|
||||
|
||||
-use Test::More;
|
||||
+use Test::More tests => 3;
|
||||
|
||||
my $d = Data::Section::Simple->new('Foo');
|
||||
my $x = $d->get_data_section();
|
||||
@@ -24,5 +24,3 @@ bar
|
||||
|
||||
TT
|
||||
|
||||
-done_testing;
|
||||
-
|
Loading…
Reference in new issue