whistle 0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/resource.rb +1 -1
- data/lib/version.rb +1 -1
- metadata +2 -2
data/lib/resource.rb
CHANGED
@@ -65,7 +65,7 @@ module Whistle
|
|
65
65
|
f = FeedParser::Feed.new(open(@url,:http_basic_authentication => [@username,@password]).read)
|
66
66
|
|
67
67
|
@store[:seen] ||= {}
|
68
|
-
@store[:seen].delete_if {|link,date| date && (date < 1.month.ago) }
|
68
|
+
@store[:seen].delete_if {|link,date| (!f.items.map{|i| i.link}.include?(link)) && date && (date < 1.month.ago) }
|
69
69
|
|
70
70
|
old, new = f.items.partition {|i| @store[:seen].has_key?(i.link) }
|
71
71
|
new = new.first(5) if @store[:seen].empty? # Limit first tail to 5 entries
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: whistle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esad Hajdarevic
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-03-
|
12
|
+
date: 2008-03-20 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|