Subject: | Tests fail becaused the URL for the delicious.com feeds have changed |
Changing http://del.icio.us to http://feeds.delicious.com/v2/rss/ fixes
those test.
The diff also replaces NEXT with MRO::Compat
Subject: | url_update.diff |
diff -ru /home/khisanth/Catalyst-Model-XML-Feed-0.02/Makefile.PL ./Makefile.PL
--- /home/khisanth/Catalyst-Model-XML-Feed-0.02/Makefile.PL 2006-09-03 03:06:44.000000000 -0700
+++ ./Makefile.PL 2009-05-04 12:07:54.587947000 -0700
@@ -12,7 +12,7 @@
'Catalyst::Model' => 0,
'XML::Feed' => '0.11',
'Test::More' => 0,
- 'NEXT' => 0,
+ 'MRO::Compat' => 0,
'Carp' => 0,
'URI' => 0,
'Class::Accessor' => 0,
diff -ru /home/khisanth/Catalyst-Model-XML-Feed-0.02/lib/Catalyst/Model/XML/Feed.pm ./lib/Catalyst/Model/XML/Feed.pm
--- /home/khisanth/Catalyst-Model-XML-Feed-0.02/lib/Catalyst/Model/XML/Feed.pm 2006-09-03 03:08:48.000000000 -0700
+++ ./lib/Catalyst/Model/XML/Feed.pm 2009-05-04 11:51:47.501419000 -0700
@@ -6,7 +6,7 @@
use base qw(Catalyst::Model Class::Accessor);
use Carp;
use XML::Feed;
-use NEXT;
+use MRO::Compat;
use URI;
use Catalyst::Model::XML::Feed::Item;
@@ -105,7 +105,7 @@
sub new {
my $self = shift;
- $self = $self->NEXT::new(@_);
+ $self = $self->next::method(@_);
my @in_feeds = eval { @{$self->feeds} };
$self->feeds({});
diff -ru /home/khisanth/Catalyst-Model-XML-Feed-0.02/t/01-add-feeds.t ./t/01-add-feeds.t
--- /home/khisanth/Catalyst-Model-XML-Feed-0.02/t/01-add-feeds.t 2006-09-02 20:11:14.000000000 -0700
+++ ./t/01-add-feeds.t 2009-05-04 11:53:15.571457000 -0700
@@ -11,7 +11,7 @@
ok($model, 'created model');
eval {
- $model->register('delicious', 'http://del.icio.us/rss/');
+ $model->register('delicious', 'http://feeds.delicious.com/v2/rss/');
};
ok(!$@, 'no error registering delicious feed');
is(scalar $model->get_all_feeds, 1, 'one feed added');
diff -ru /home/khisanth/Catalyst-Model-XML-Feed-0.02/t/02-preregister.t ./t/02-preregister.t
--- /home/khisanth/Catalyst-Model-XML-Feed-0.02/t/02-preregister.t 2006-09-02 20:11:14.000000000 -0700
+++ ./t/02-preregister.t 2009-05-04 11:53:28.668872000 -0700
@@ -10,7 +10,7 @@
my $model = Catalyst::Model::XML::Feed->
new(undef,
{feeds => [
- {title => 'delicious', uri => 'http://del.icio.us/rss/'},
+ {title => 'delicious', uri => 'http://feeds.delicious.com/v2/rss/'},
{location => 'http://blog.jrock.us/'},
]
},