emn 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/emn/version.rb +1 -1
- data/lib/emn.rb +3 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a6f87295968e16d580825d91603feb6f40b2aa8
|
4
|
+
data.tar.gz: e7123d586ab3ed4472e965a1b56e3848a3465ca0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40d6447a8585128288f8429a628bc93673b909ab4f11fb0f05e04846987088729ad64575f103661a256c709d2d9245871832e983d735ecb2b368d17a44ba69a2
|
7
|
+
data.tar.gz: f9918067a59633d57990a5117bc67077a36f81cd14ab687cd1a3238891f554affae88c5ee6f2d293b7cca57a49cbac7939ee39d9f78ddcce402ca4378f541617
|
data/lib/emn/version.rb
CHANGED
data/lib/emn.rb
CHANGED
@@ -83,7 +83,7 @@ class EMN
|
|
83
83
|
|
84
84
|
notifications = checker.notifications
|
85
85
|
|
86
|
-
|
86
|
+
if !notifications[:data].empty?
|
87
87
|
template_file = File.expand_path(File.join(File.dirname(__FILE__), "..", notifications[:template]))
|
88
88
|
logger.debug("Sending notifications using template %s" % template_file)
|
89
89
|
|
@@ -93,6 +93,8 @@ class EMN
|
|
93
93
|
if pushover.publish(output, notifications[:subject])
|
94
94
|
config.save_seen!(config.seen.merge(notifications[:seen]))
|
95
95
|
end
|
96
|
+
else
|
97
|
+
config.save_seen!(config.seen.merge(notifications[:seen]))
|
96
98
|
end
|
97
99
|
end
|
98
100
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- R.I.Pienaar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eaal
|
@@ -61,12 +61,12 @@ extra_rdoc_files: []
|
|
61
61
|
files:
|
62
62
|
- bin/emn
|
63
63
|
- lib/emn.rb
|
64
|
-
- lib/emn/notifier/pushover.rb
|
65
|
-
- lib/emn/version.rb
|
66
64
|
- lib/emn/eve_api.rb
|
67
65
|
- lib/emn/config.rb
|
68
|
-
- lib/emn/
|
66
|
+
- lib/emn/notifier/pushover.rb
|
69
67
|
- lib/emn/monitor/pi.rb
|
68
|
+
- lib/emn/monitor/mail.rb
|
69
|
+
- lib/emn/version.rb
|
70
70
|
- templates/mail.erb
|
71
71
|
- templates/pi.erb
|
72
72
|
homepage: https://github.com/ripienaar/eve_mail_notifier
|