rfeedreader 1.0.5 → 1.0.6

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.
@@ -1,3 +1,8 @@
1
+ == 1.0.6 2007-12-16
2
+
3
+ * Solve: Feed title encoding problem
4
+ * Solve: problem with <strong> html tag
5
+
1
6
  == 1.0.5 2007-11-26
2
7
 
3
8
  * Change: user agent signature
@@ -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!(/(<[^>]*>)/s, " ")
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
@@ -2,7 +2,7 @@ module Rfeedreader #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
- TINY = 5
5
+ TINY = 6
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -12,6 +12,7 @@ def read_first(feed_url)
12
12
  feed = Rfeedreader.read_first feed_url
13
13
  unless feed.nil?
14
14
  feed.display_entries
15
+ puts feed
15
16
  else
16
17
  puts "+++WARNING+++ nil feed"
17
18
  end
@@ -228,6 +228,6 @@ class TestRfeedreader < Test::Unit::TestCase
228
228
  end
229
229
 
230
230
  def test_bbvablogs
231
- read_first "http://enredadera.bbvablogs.com/feed/"
231
+ read_first "http://centroinnovacion.bbvablogs.com/feed/"
232
232
  end
233
233
  end
@@ -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.5</a>
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.5
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: