rfeedfinder 0.9.7 → 0.9.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.9.8 2007-10-11
2
+
3
+ * Solve problem with Hpricot
4
+
1
5
  == 0.9.7 2007-10-10
2
6
 
3
7
  * Add Youtube support on user and tag page
data/lib/rfeedfinder.rb CHANGED
@@ -37,7 +37,7 @@ module Rfeedfinder
37
37
  def searchLinks(data, baseuri, regexp)
38
38
  links = []
39
39
  data.search(regexp).map!{|link|
40
- if !link.to_s.strip.empty?
40
+ if !link.to_s.strip.empty? and link.kind_of? Hpricot::Elem and !(link.kind_of? Hpricot::Text)
41
41
  uri = link[:href].to_s
42
42
  uri = link[:src].to_s if uri.empty?
43
43
  uri = link[:SRC].to_s if uri.empty?
@@ -2,7 +2,7 @@ module Rfeedfinder #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 9
5
- TINY = 7
5
+ TINY = 8
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -111,6 +111,10 @@ class TestRfeedfinder < Test::Unit::TestCase
111
111
  feed_finder "http://www.youtube.com/user/nocommenttv"
112
112
  end
113
113
 
114
+ def test_google_news
115
+ feed_finder "http://news.google.com/news?hl=en&ned=us&q=olpc&btnG=Search+News"
116
+ end
117
+
114
118
  def test_not_fulluri_link
115
119
  # Meta link is only giving /feed/atom.xml
116
120
  feed_finder "http://blog.zvents.com/", "http://blog.zvents.com/feed/atom.xml"
data/website/index.html CHANGED
@@ -33,7 +33,7 @@
33
33
  <h1>rfeedfinder</h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/rfeedfinder"; return false'>
35
35
  <p>Get Version</p>
36
- <a href="http://rubyforge.org/projects/rfeedfinder" class="numbers">0.9.7</a>
36
+ <a href="http://rubyforge.org/projects/rfeedfinder" class="numbers">0.9.8</a>
37
37
  </div>
38
38
  <h2>What</h2>
39
39
 
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: rfeedfinder
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.9.7
6
+ version: 0.9.8
7
7
  date: 2007-10-11 00:00:00 +02:00
8
8
  summary: rFeedFinder uses RSS autodiscovery, Atom autodiscovery, spidering, URL correction, and Web service queries -- whatever it takes -- to find the feed.
9
9
  require_paths: