whistle 0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/resource.rb +1 -1
  2. data/lib/version.rb +1 -1
  3. 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) } # Purge seen hash remove items older than one month
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
@@ -1,3 +1,3 @@
1
1
  module Whistle
2
- VERSION = '0.1'
2
+ VERSION = '0.1.1'
3
3
  end
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: "0.1"
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-07 00:00:00 +01:00
12
+ date: 2008-03-20 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency