rfeedreader 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/lib/rfeedreader.rb +3 -2
- data/lib/rfeedreader/version.rb +1 -1
- data/test/test_helper.rb +1 -0
- data/test/test_rfeedreader.rb +1 -1
- data/website/index.html +1 -1
- metadata +1 -1
data/History.txt
CHANGED
data/lib/rfeedreader.rb
CHANGED
@@ -18,7 +18,8 @@ module Rfeedreader
|
|
18
18
|
|
19
19
|
if text.index("<")
|
20
20
|
# Strip html tags, tabs and new lines
|
21
|
-
text.gsub!(
|
21
|
+
text.gsub!(/<[^>]*>/s, " ")
|
22
|
+
text.gsub!(/<strong>/, " ")
|
22
23
|
# strip any comments, and if they have a newline at the end (ie. line with
|
23
24
|
# only a comment) strip that too
|
24
25
|
text.gsub!(/<!--(.*?)-->[\n]?/m, "")
|
@@ -170,7 +171,7 @@ module Rfeedreader
|
|
170
171
|
|
171
172
|
def read_title(hpricot_doc)
|
172
173
|
begin
|
173
|
-
@title = (hpricot_doc/"//title:first").text
|
174
|
+
@title = TextyHelper.convertEncoding((hpricot_doc/"//title:first").text)
|
174
175
|
rescue
|
175
176
|
@title = ""
|
176
177
|
end
|
data/lib/rfeedreader/version.rb
CHANGED
data/test/test_helper.rb
CHANGED
data/test/test_rfeedreader.rb
CHANGED
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">1.0.
|
36
|
+
<a href="http://rubyforge.org/projects/rfeedreader" class="numbers">1.0.6</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: rfeedreader
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.0.
|
6
|
+
version: 1.0.6
|
7
7
|
date: 2007-12-16 00:00:00 +01: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:
|