transmission-rss 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  $:.unshift( File.dirname( __FILE__ ) )
2
2
 
3
3
  module TransmissionRSS
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
6
6
 
7
7
  dir = 'transmission-rss'
@@ -57,11 +57,18 @@ class TransmissionRSS::Aggregator
57
57
 
58
58
  items.each do |item|
59
59
  link = item.link
60
+
61
+ # Item contains no link.
62
+ if( link.nil? )
63
+ next
64
+ end
60
65
 
66
+ # Link is not a String directly.
61
67
  if( link.class != String )
62
68
  link = link.href
63
69
  end
64
70
 
71
+ # The link is not in +@seen+ Array.
65
72
  if( not seen?( link ) )
66
73
  on_new_item( link )
67
74
  @log.add( 'on_new_item event ' + link )
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.1
8
+ - 2
9
+ version: 0.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - henning mueller
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-09-28 00:00:00 +02:00
17
+ date: 2010-10-01 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies: []
20
20
 
@@ -31,17 +31,17 @@ extra_rdoc_files: []
31
31
 
32
32
  files:
33
33
  - bin/transmission-rss
34
- - lib/transmission-rss.rb
34
+ - lib/transmission-rss/client.rb
35
35
  - lib/transmission-rss/config-editor/listbox.rb
36
- - lib/transmission-rss/config-editor/listbox-original.rb
37
36
  - lib/transmission-rss/config-editor/main.rb
37
+ - lib/transmission-rss/config-editor/listbox-original.rb
38
38
  - lib/transmission-rss/config-editor/main.glade
39
+ - lib/transmission-rss/aggregator.rb
39
40
  - lib/transmission-rss/log.rb
41
+ - lib/transmission-rss/hash.rb
40
42
  - lib/transmission-rss/config-editor.rb
41
- - lib/transmission-rss/aggregator.rb
42
43
  - lib/transmission-rss/config.rb
43
- - lib/transmission-rss/hash.rb
44
- - lib/transmission-rss/client.rb
44
+ - lib/transmission-rss.rb
45
45
  - README.rdoc
46
46
  has_rdoc: true
47
47
  homepage: