rfeedreader 1.0.13 → 1.0.14

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
+ == 1.0.14 2008-09-24
2
+
3
+ * Solve: Entry link on blogspot
4
+
1
5
  == 1.0.13 2008-06-19
2
6
 
3
7
  * Add: MRSS support
@@ -2,7 +2,7 @@ module Rfeedreader #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
- TINY = 13
5
+ TINY = 14
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/lib/rfeedreader.rb CHANGED
@@ -244,7 +244,7 @@ module Rfeedreader
244
244
  # Return the rss item link
245
245
  def read_link
246
246
  @link = nil
247
- if link = (@hpricot_item/"link")[0]
247
+ if link = (@hpricot_item/"link[@rel='alternate']")[0] || (@hpricot_item/"link")[0]
248
248
  @link = link.to_s.scan(/(http:\/\/.[^<\"]*)/).to_s
249
249
  end
250
250
  end
@@ -290,7 +290,7 @@ module Rfeedreader
290
290
  end
291
291
 
292
292
  def to_s
293
- "Entry: title: #{@title} - link: #{@url}\n\rdescription: #{@description}"
293
+ "Entry: title: #{@title} - link: #{@link}\n\rdescription: #{@description}"
294
294
  end
295
295
  end
296
296
 
@@ -244,7 +244,7 @@ class TestRfeedreader < Test::Unit::TestCase
244
244
  end
245
245
 
246
246
  def test_maria
247
- read_first "http://unamiradadesdeelsur.wordpress.com/"
247
+ read_first "http://www.riberadelhuerva.com/Blog/"
248
248
  end
249
249
 
250
250
  def test_mrss
data/website/index.html CHANGED
@@ -1,100 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <link rel="stylesheet" href="stylesheets/screen.css" type="text/css" media="screen" />
6
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
- <title>
8
- rfeedreader
9
- </title>
10
- <script src="javascripts/rounded_corners_lite.inc.js" type="text/javascript"></script>
11
- <style>
12
-
13
- </style>
14
- <script type="text/javascript">
15
- window.onload = function() {
16
- settings = {
17
- tl: { radius: 10 },
18
- tr: { radius: 10 },
19
- bl: { radius: 10 },
20
- br: { radius: 10 },
21
- antiAlias: true,
22
- autoPad: true,
23
- validTags: ["div"]
24
- }
25
- var versionBox = new curvyCorners(settings, document.getElementById("version"));
26
- versionBox.applyCornersToAll();
27
- }
28
- </script>
29
- </head>
30
- <body>
31
- <div id="main">
32
-
33
- <h1>rfeedreader</h1>
34
- <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/rfeedreader"; return false'>
35
- <p>Get Version</p>
36
- <a href="http://rubyforge.org/projects/rfeedreader" class="numbers">1.0.13</a>
37
- </div>
38
- <h2>What</h2>
39
-
40
-
41
- <p>Feed parser to read feed and return first posts of this feed.
42
- Special parsing from sources like Flickr, Jumcut, Google video, ...</p>
43
-
44
-
45
- <h2>Installing</h2>
46
-
47
-
48
- <pre syntax="ruby">sudo gem install rfeedreader</pre>
49
-
50
- <h2>Demonstration of usage</h2>
51
-
52
-
53
- <pre syntax="ruby">
54
- require 'rfeedreader'
55
-
56
- Rfeedreader.read_first('http://blog.alexgirard.com/feed/')
57
- # return feed containing first post
58
-
59
- Rfeedfinder.read('http://blog.alexgirard.com/feed/')
60
- # return feed containing an Array of posts
61
-
62
- Rfeedfinder.read('http://blog.alexgirard.com/feed/', nb_posts=3)
63
- # return Array containing first 3 posts
64
- </pre>
65
-
66
- <h2>Forum</h2>
67
-
68
-
69
- <p><a href="http://groups.google.com/group/rfeedreader">http://groups.google.com/group/rfeedreader</a></p>
70
-
71
-
72
- <h2>How to submit patches</h2>
73
-
74
-
75
- <p>Read the <a href="http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/">8 steps for fixing other people&#8217;s code</a> and for section <a href="http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/#8b-google-groups">8b: Submit patch to Google Groups</a>, use the Google Group above.</p>
76
-
77
-
78
- <p>The trunk repository is <code>svn://rubyforge.org/var/svn/rfeedreader/trunk</code> for anonymous access.</p>
79
-
80
-
81
- <h2>License</h2>
82
-
83
-
84
- <p>This code is free to use under the terms of the Creative Commons <span class="caps">GNU GPL</span>.</p>
85
-
86
-
87
- <h2>Contact</h2>
88
-
89
-
90
- <p>Comments are welcome. Send an email to <a href="mailto:alx.girard@gmail.com">Alexandre Girard</a>.</p>
91
- <p class="coda">
92
- <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 2nd June 2008<br>
93
- Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
94
- </p>
95
- </div>
96
-
97
- <!-- insert site tracking codes here, like Google Urchin -->
98
-
99
- </body>
100
- </html>
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.13
4
+ version: 1.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandre Girard
@@ -9,11 +9,12 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-06-20 00:00:00 -03:00
12
+ date: 2008-09-24 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rfeedfinder
17
+ type: :runtime
17
18
  version_requirement:
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
@@ -23,6 +24,7 @@ dependencies:
23
24
  version:
24
25
  - !ruby/object:Gem::Dependency
25
26
  name: htmlentities
27
+ type: :runtime
26
28
  version_requirement:
27
29
  version_requirements: !ruby/object:Gem::Requirement
28
30
  requirements:
@@ -32,6 +34,7 @@ dependencies:
32
34
  version:
33
35
  - !ruby/object:Gem::Dependency
34
36
  name: hpricot
37
+ type: :runtime
35
38
  version_requirement:
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
@@ -39,6 +42,16 @@ dependencies:
39
42
  - !ruby/object:Gem::Version
40
43
  version: "0.6"
41
44
  version:
45
+ - !ruby/object:Gem::Dependency
46
+ name: hoe
47
+ type: :development
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: 1.7.0
54
+ version:
42
55
  description: Feed parser to read feed and return first posts of this feed. Special parsing from sources like Flickr, Jumcut, Google video, ...
43
56
  email: alx.girard@gmail.com
44
57
  executables: []
@@ -91,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
104
  requirements: []
92
105
 
93
106
  rubyforge_project: rfeedreader
94
- rubygems_version: 1.1.1
107
+ rubygems_version: 1.2.0
95
108
  signing_key:
96
109
  specification_version: 2
97
110
  summary: Feed parser to read feed and return first posts of this feed. Special parsing from sources like Flickr, Jumcut, Google video, ...