diff options
author | Hans de Graaff <graaff@gentoo.org> | 2010-07-08 19:22:33 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2010-07-08 19:22:33 +0000 |
commit | 71dff772885a788797ff0d46bbd71bb59194df6d (patch) | |
tree | 4956cf3777c74553e2f2d0799cf1954b7ba8a2a1 /dev-ruby/simple-rss/files | |
parent | sparc stable wrt #319961 (diff) | |
download | gentoo-2-71dff772885a788797ff0d46bbd71bb59194df6d.tar.gz gentoo-2-71dff772885a788797ff0d46bbd71bb59194df6d.tar.bz2 gentoo-2-71dff772885a788797ff0d46bbd71bb59194df6d.zip |
Version bump.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/simple-rss/files')
-rw-r--r-- | dev-ruby/simple-rss/files/simple-rss-1.2.3-no-media-rss.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/dev-ruby/simple-rss/files/simple-rss-1.2.3-no-media-rss.patch b/dev-ruby/simple-rss/files/simple-rss-1.2.3-no-media-rss.patch new file mode 100644 index 000000000000..9b06898d0209 --- /dev/null +++ b/dev-ruby/simple-rss/files/simple-rss-1.2.3-no-media-rss.patch @@ -0,0 +1,49 @@ +Remove tests depending on media_rss.xml, because it is not shipped in +the gem and the upstream VCS is not available. + +http://rubyforge.org/tracker/index.php?func=detail&aid=28359&group_id=893&atid=3517 + +--- test/base/base_test.rb.orig 2010-07-08 21:16:48.625863508 +0200 ++++ test/base/base_test.rb 2010-07-08 21:17:06.038612667 +0200 +@@ -3,7 +3,6 @@ + def setup + @rss09 = SimpleRSS.parse open(File.dirname(__FILE__) + '/../data/rss09.rdf') + @rss20 = SimpleRSS.parse open(File.dirname(__FILE__) + '/../data/rss20.xml') +- @media_rss = SimpleRSS.parse open(File.dirname(__FILE__) + '/../data/media_rss.xml') + @atom = SimpleRSS.parse open(File.dirname(__FILE__) + '/../data/atom.xml') + end + +@@ -29,26 +28,6 @@ + assert_equal Time.parse("Fri Sep 09 02:52:31 PDT 2005"), @rss09.channel.dc_date + end + +- def test_media_rss +- assert_equal 20, @media_rss.items.size +- assert_equal "Uploads from herval", @media_rss.title +- assert_equal "http://www.flickr.com/photos/herval/", @media_rss.channel.link +- assert_equal "http://www.flickr.com/photos/herval/4671960608/", @media_rss.items.first.link +- assert_equal "http://www.flickr.com/photos/herval/4671960608/", @media_rss.items.first[:link] +- assert_equal "http://farm5.static.flickr.com/4040/4671960608_10cb945d5c_o.jpg", @media_rss.items.first.media_content_url +- assert_equal "image/jpeg", @media_rss.items.first.media_content_type +- assert_equal "3168", @media_rss.items.first.media_content_height +- assert_equal "4752", @media_rss.items.first.media_content_width +- assert_equal "Woof?", @media_rss.items.first.media_title +- assert_equal "http://farm5.static.flickr.com/4040/4671960608_954d2297bc_s.jpg", @media_rss.items.first.media_thumbnail_url +- assert_equal "75", @media_rss.items.first.media_thumbnail_height +- assert_equal "75", @media_rss.items.first.media_thumbnail_width +- assert_equal "herval", @media_rss.items.first.media_credit +- assert_equal "photographer", @media_rss.items.first.media_credit_role +- assert_equal "pets frodo", @media_rss.items.first.media_category +- assert_equal "urn:flickr:tags", @media_rss.items.first.media_category_scheme +- end +- + def test_rss20 + assert_equal 10, @rss20.items.size + assert_equal "Technoblog", @rss20.title +@@ -69,4 +48,4 @@ + def test_bad_feed + assert_raise(SimpleRSSError) { SimpleRSS.parse(open(File.dirname(__FILE__) + '/../data/not-rss.xml')) } + end +-end +\ No newline at end of file ++end |