rfeedreader 0.9.13 → 0.9.14
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/lib/rfeedreader/version.rb +1 -1
- data/lib/rfeedreader.rb +1 -2
- data/test/test_rfeedreader.rb +12 -1
- data/website/index.html +1 -1
- metadata +2 -2
data/History.txt
CHANGED
data/lib/rfeedreader/version.rb
CHANGED
data/lib/rfeedreader.rb
CHANGED
@@ -210,7 +210,7 @@ module Rfeedreader
|
|
210
210
|
end
|
211
211
|
|
212
212
|
def read_title
|
213
|
-
@title = TextyHelper.convertEncoding((@hpricot_item/:title).
|
213
|
+
@title = TextyHelper.convertEncoding(TextyHelper.clean((@hpricot_item/:title).to_s), @charset)
|
214
214
|
end
|
215
215
|
|
216
216
|
def read_description
|
@@ -231,7 +231,6 @@ module Rfeedreader
|
|
231
231
|
|
232
232
|
@description.gsub!(/((https?):\/\/([^\/]+)\/(.*))/, '[<a href=\'\1\'>link</a>]')
|
233
233
|
@description.strip!
|
234
|
-
|
235
234
|
end
|
236
235
|
end
|
237
236
|
|
data/test/test_rfeedreader.rb
CHANGED
@@ -109,7 +109,13 @@ class TestRfeedreader < Test::Unit::TestCase
|
|
109
109
|
end
|
110
110
|
|
111
111
|
def test_encoding_error
|
112
|
-
read_first "http://www.adesalambrar.info/feed/"
|
112
|
+
#read_first "http://www.adesalambrar.info/feed/"
|
113
|
+
#read_first "http://nikoqueiruga.blogspot.com/"
|
114
|
+
#Display full list, some not working
|
115
|
+
#feed = read_feed("http://suevia.blogspot.com/")
|
116
|
+
feed = read_feed("http://suevia.blogspot.com/")
|
117
|
+
puts feed
|
118
|
+
feed.display_entries
|
113
119
|
end
|
114
120
|
|
115
121
|
def test_encoded_uri
|
@@ -137,6 +143,10 @@ class TestRfeedreader < Test::Unit::TestCase
|
|
137
143
|
read_first "http://www.deugarte.com/feed"
|
138
144
|
end
|
139
145
|
|
146
|
+
def test_read_blogspot
|
147
|
+
read_first "http://creatividadsocial.blogspot.com/"
|
148
|
+
end
|
149
|
+
|
140
150
|
def test_read_feed
|
141
151
|
feed_url = "http://www.ambidextrousmag.org/blog/?feed=rss2"
|
142
152
|
puts "Read first from #{feed_url}"
|
@@ -145,4 +155,5 @@ class TestRfeedreader < Test::Unit::TestCase
|
|
145
155
|
assert_equal 1, feed.entries.size
|
146
156
|
feed.display_entries
|
147
157
|
end
|
158
|
+
|
148
159
|
end
|
data/website/index.html
CHANGED
@@ -33,7 +33,7 @@
|
|
33
33
|
<h1>rfeedreader</h1>
|
34
34
|
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/rfeedreader"; return false'>
|
35
35
|
<p>Get Version</p>
|
36
|
-
<a href="http://rubyforge.org/projects/rfeedreader" class="numbers">0.9.
|
36
|
+
<a href="http://rubyforge.org/projects/rfeedreader" class="numbers">0.9.14</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: rfeedreader
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.9.
|
7
|
-
date: 2007-09-
|
6
|
+
version: 0.9.14
|
7
|
+
date: 2007-09-18 00:00:00 +02:00
|
8
8
|
summary: Feed parser to read feed and return first posts of this feed. Special parsing from sources like Flickr, Jumcut, Google video, ...
|
9
9
|
require_paths:
|
10
10
|
- lib
|