rfeedreader 1.0.15 → 1.0.16

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,8 @@
1
+ == 1.0.16 2008-11-10
2
+
3
+ * Solve: Empty titles
4
+ * Solve: clean debug text
5
+
1
6
  == 1.0.15 2008-10-18
2
7
 
3
8
  * Solve: Convert html to number only (avoid IE ' problem)
@@ -2,7 +2,7 @@ module Rfeedreader #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
- TINY = 15
5
+ TINY = 16
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/lib/rfeedreader.rb CHANGED
@@ -194,6 +194,8 @@ module Rfeedreader
194
194
  rescue
195
195
  @title = ""
196
196
  end
197
+
198
+ @title = @feed_url.gsub("http://", "").gsub(/\/.*/, "") if @title.empty?
197
199
  end
198
200
 
199
201
  def read_link(hpricot_doc)
@@ -250,4 +250,16 @@ class TestRfeedreader < Test::Unit::TestCase
250
250
  def test_mrss
251
251
  read_first "http://www.mariabonitacoisas.com.br/home/rss/mrss"
252
252
  end
253
+
254
+ def test_cocomment
255
+ read_first "http://www.cocomment.com/blog/2720"
256
+ end
257
+
258
+ def test_commentlink
259
+ read_first "http://acariciandolaanguila.blogspot.com/"
260
+ end
261
+
262
+ def test_orlandooo
263
+ read_first "http://orlandooo.com/blog/"
264
+ end
253
265
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rfeedreader
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.15
4
+ version: 1.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandre Girard
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-10-16 00:00:00 +02:00
12
+ date: 2008-11-10 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -50,7 +50,7 @@ dependencies:
50
50
  requirements:
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: 1.7.0
53
+ version: 1.8.2
54
54
  version:
55
55
  description: Feed parser to read feed and return first posts of this feed. Special parsing from sources like Flickr, Jumcut, Google video, ...
56
56
  email: alx.girard@gmail.com
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  requirements: []
105
105
 
106
106
  rubyforge_project: rfeedreader
107
- rubygems_version: 1.2.0
107
+ rubygems_version: 1.3.1
108
108
  signing_key:
109
109
  specification_version: 2
110
110
  summary: Feed parser to read feed and return first posts of this feed. Special parsing from sources like Flickr, Jumcut, Google video, ...