feed_monitor 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 91302794ea5e285384fc2320ef83c461e66eb315
4
- data.tar.gz: 2c65a26bfdb92be59ca45180542724cface4e1de
3
+ metadata.gz: fd83e96d1ad61cdaf1ea16dcf7b191c0c94d76f8
4
+ data.tar.gz: 1df35987279702dc5bf973cc02bb37dcd9cf2648
5
5
  SHA512:
6
- metadata.gz: f623d64da776fa4c34b3745567deedda21d7f34aa0e79e4f7343d595219a4ae7a8667f80cdfc966e330799820c22a81f3a2d75d67ab07b6c72e47f55426e8a14
7
- data.tar.gz: 20dbbeaa8d2835314dcd8a3dd1b2251155af713ac6a4c649b3cbac01a9cea60f9a029a11a1cea8657f9dcec817e4f1006057a16f0934b014b65bb03bf7418731
6
+ metadata.gz: 157eaa9392c9dd950d904a0620c133b24c7ca87cc54c8665ca72ff60ba2581eb3e064247a35abb0c9ab820628aeb8274b9e20b1f9450fdd02a4cba7ef3959391
7
+ data.tar.gz: d71510a6ca14f0836cbcb762f22addf62612c3cc3432cb6b3b41cf3023bd6ffcecd7b659014527a8f98b233c231f14b434308e1ee54f36bc694122b5d04ce5ec
data/feed_monitor.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["joshaidan@gmail.com"]
11
11
  spec.summary = %q{Send email alerts for RSS feed updates}
12
12
  spec.description = %q{Monitor RSS feeds for updates and send out email alerts for each updated item.}
13
- spec.homepage = "http://brianjones.ca"
13
+ spec.homepage = "http://joshaidan.github.io/feed_monitor"
14
14
  spec.license = "GPL-2.0"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
data/lib/feed_monitor.rb CHANGED
@@ -28,7 +28,7 @@ module FeedMonitor
28
28
  # Iterate through each feed entry
29
29
  feed.entries.reverse.each do |entry|
30
30
  site = Site.first_or_create(url: feed.feed_url)
31
- if (!site.last_article_date or (site.last_article_date < entry.published) )
31
+ if (!site.last_article_date or (site.last_article_date.to_datetime < entry.published.to_datetime) )
32
32
 
33
33
  if entry.summary and entry.summary.size > 0
34
34
  body_message = entry.summary
@@ -1,3 +1,3 @@
1
1
  module FeedMonitor
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feed_monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Jones
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-12 00:00:00.000000000 Z
11
+ date: 2015-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -154,7 +154,7 @@ files:
154
154
  - feed_monitor.gemspec
155
155
  - lib/feed_monitor.rb
156
156
  - lib/feed_monitor/version.rb
157
- homepage: http://brianjones.ca
157
+ homepage: http://joshaidan.github.io/feed_monitor
158
158
  licenses:
159
159
  - GPL-2.0
160
160
  metadata: {}
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  version: '0'
175
175
  requirements: []
176
176
  rubyforge_project:
177
- rubygems_version: 2.2.2
177
+ rubygems_version: 2.4.5
178
178
  signing_key:
179
179
  specification_version: 4
180
180
  summary: Send email alerts for RSS feed updates