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 +4 -4
- data/feed_monitor.gemspec +1 -1
- data/lib/feed_monitor.rb +1 -1
- data/lib/feed_monitor/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd83e96d1ad61cdaf1ea16dcf7b191c0c94d76f8
|
4
|
+
data.tar.gz: 1df35987279702dc5bf973cc02bb37dcd9cf2648
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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://
|
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
|
data/lib/feed_monitor/version.rb
CHANGED
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.
|
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:
|
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://
|
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.
|
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
|