emn 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/emn/version.rb +1 -1
  3. data/lib/emn.rb +3 -1
  4. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7859ee37dc3e8c7bd5a616c4e206070ab4efe8db
4
- data.tar.gz: 7a85adb9dfce6b2f027e89e7275b021f3b66476a
3
+ metadata.gz: 6a6f87295968e16d580825d91603feb6f40b2aa8
4
+ data.tar.gz: e7123d586ab3ed4472e965a1b56e3848a3465ca0
5
5
  SHA512:
6
- metadata.gz: bfed3767c44236dd8dd19155cdd2f430069efd5894fd841fa0d7e77b8f632a2aa86fd0f6168d19d1162f04e560880a8f1780466ca04c8aca0745d112abdb3a50
7
- data.tar.gz: cf20b5003a66f1e2e318edaa28a76d8be759d0a916edf999110ac775e996149b63102a92a53b37f67a1409cf13702ef657ad44cf7502cd2105c1d9c8da7ba500
6
+ metadata.gz: 40d6447a8585128288f8429a628bc93673b909ab4f11fb0f05e04846987088729ad64575f103661a256c709d2d9245871832e983d735ecb2b368d17a44ba69a2
7
+ data.tar.gz: f9918067a59633d57990a5117bc67077a36f81cd14ab687cd1a3238891f554affae88c5ee6f2d293b7cca57a49cbac7939ee39d9f78ddcce402ca4378f541617
data/lib/emn/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class EMN
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/emn.rb CHANGED
@@ -83,7 +83,7 @@ class EMN
83
83
 
84
84
  notifications = checker.notifications
85
85
 
86
- unless notifications[:data].empty?
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.3
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-08-31 00:00:00.000000000 Z
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/monitor/mail.rb
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