rfeedreader 0.9.15 → 0.9.16

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.9.16 2007-10-11
2
+
3
+ * Correct pre-encoded html
4
+
1
5
  == 0.9.15 2007-10-04
2
6
 
3
7
  * Correct pre-encoded html
data/lib/rfeedreader.rb CHANGED
@@ -100,7 +100,7 @@ module Rfeedreader
100
100
  end
101
101
 
102
102
  # replace pre-encoded html
103
- text.gsub!(/&#(\d+);/, '&#\1;')
103
+ text.gsub!(/&(\w+|#\d+);/, '&\1;')
104
104
 
105
105
  return text
106
106
  end
@@ -220,7 +220,7 @@ module Rfeedreader
220
220
  @description = ""
221
221
  @description = (@hpricot_item/"content").text
222
222
  @description = (@hpricot_item/"content\:encoded").text if @description.empty?
223
- @description = (@hpricot_item/"description|summary|[@type='text']").text if @description.empty?
223
+ @description = (@hpricot_item/"description|summary|[@type='text']").inner_html if @description.empty?
224
224
 
225
225
  unless @description.empty?
226
226
  @description = TextyHelper.clean(@description, 200)
@@ -2,7 +2,7 @@ module Rfeedreader #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 9
5
- TINY = 15
5
+ TINY = 16
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -163,4 +163,10 @@ class TestRfeedreader < Test::Unit::TestCase
163
163
  feed.display_entries
164
164
  end
165
165
 
166
+ def test_bligoo
167
+ feed_url = "http://www.blogplanta22.com/"
168
+ feed = read_feed(feed_url)
169
+ puts feed
170
+ feed.display_entries
171
+ end
166
172
  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.15</a>
36
+ <a href="http://rubyforge.org/projects/rfeedreader" class="numbers">0.9.16</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.15
7
- date: 2007-10-04 00:00:00 +02:00
6
+ version: 0.9.16
7
+ date: 2007-10-11 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