rfeedfinder 0.9.6 → 0.9.7

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.7 2007-10-10
2
+
3
+ * Add Youtube support on user and tag page
4
+
1
5
  == 0.9.6 2007-09-08
2
6
 
3
7
  * Add timeout on http request
@@ -2,7 +2,7 @@ module Rfeedfinder #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 9
5
- TINY = 6
5
+ TINY = 7
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/lib/rfeedfinder.rb CHANGED
@@ -134,6 +134,14 @@ module Rfeedfinder
134
134
  _recurs = [uri] if _recurs.nil?
135
135
  fulluri = makeFullURI(uri)
136
136
 
137
+ # Add youtube support
138
+ if fulluri =~ /youtube\.com\/user\/(.*[^\/])/
139
+ fulluri = "http://www.youtube.com/rss/user/#{$1}/videos.rss"
140
+ end
141
+ if fulluri =~ /youtube\.com\/tag\/(.*[^\/])/
142
+ fulluri = "http://www.youtube.com/rss/tag/#{$1}/videos.rss"
143
+ end
144
+
137
145
  data = open_doc(fulluri)
138
146
  return [] if data.nil?
139
147
 
@@ -107,6 +107,10 @@ class TestRfeedfinder < Test::Unit::TestCase
107
107
  feed_finder "http://voxd.blogsome.com/"
108
108
  end
109
109
 
110
+ def test_youtube
111
+ feed_finder "http://www.youtube.com/user/nocommenttv"
112
+ end
113
+
110
114
  def test_not_fulluri_link
111
115
  # Meta link is only giving /feed/atom.xml
112
116
  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.6</a>
36
+ <a href="http://rubyforge.org/projects/rfeedfinder" class="numbers">0.9.7</a>
37
37
  </div>
38
38
  <h2>What</h2>
39
39
 
metadata CHANGED
@@ -3,8 +3,8 @@ 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.6
7
- date: 2007-09-08 00:00:00 +02:00
6
+ version: 0.9.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:
10
10
  - lib