sensu-plugins-pushover 0.0.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -3
- data/README.md +1 -2
- data/bin/handler-pushover.rb +16 -16
- data/lib/sensu-plugins-pushover/version.rb +2 -2
- metadata +12 -33
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- metadata.gz.sig +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25220cd6f19de7fbd0a0d4c60b5fe8930f47d30f
|
4
|
+
data.tar.gz: 99bd91a9c059f5829e1a7f0a64a1d41b0c883634
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d605392ebd6ce5b8be3472bee8f419a957843d81b0823a29717fcc0bcdf88cbd311ca55a16392f28cf4f9dcd835fb6f22c3622c7ed1fc77e20bda70ee8a257a5
|
7
|
+
data.tar.gz: e2156c882b6c920a34102e9896ca3bb9b49b738fa963e27232aa0da21614028734961235ed34d964bb1b2e9acf051acb0a21ef53891820c302497f7ae2769ea8
|
data/CHANGELOG.md
CHANGED
@@ -3,14 +3,24 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
3
3
|
|
4
4
|
This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
|
5
5
|
|
6
|
-
## Unreleased]
|
6
|
+
## [Unreleased]
|
7
|
+
|
8
|
+
## [1.0.0] - 2016-07-14
|
9
|
+
### Changed
|
10
|
+
- Changed dependency on sensu-plugin from strict (= 1.2.0) to pessimistic (~> 1.2)
|
11
|
+
- Silenced Object#timeout deprecation warnings under Ruby 2.3 by using Timeout.timeout instead.
|
12
|
+
|
13
|
+
### Removed
|
14
|
+
- Removed Ruby 1.9.3 support; add Ruby 2.3.0 support to test matrix
|
7
15
|
|
8
16
|
## [0.0.2] - 2015-07-14
|
9
17
|
### Changed
|
10
18
|
- updated sensu-plugin gem to 1.2.0
|
11
19
|
|
12
|
-
##
|
13
|
-
|
20
|
+
## 0.0.1 - 2015-07-04
|
14
21
|
### Added
|
15
22
|
- initial release
|
16
23
|
|
24
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-pushover/compare/1.0.0...HEAD
|
25
|
+
[1.0.0]: https://github.com/sensu-plugins/sensu-plugins-pushover/compare/0.0.2...1.0.0
|
26
|
+
[0.0.2]: https://github.com/sensu-plugins/sensu-plugins-pushover/compare/0.0.1...0.0.2
|
data/README.md
CHANGED
@@ -5,7 +5,6 @@
|
|
5
5
|
[](https://codeclimate.com/github/sensu-plugins/sensu-plugins-pushover)
|
6
6
|
[](https://codeclimate.com/github/sensu-plugins/sensu-plugins-pushover)
|
7
7
|
[](https://gemnasium.com/sensu-plugins/sensu-plugins-pushover)
|
8
|
-
[ ](https://codeship.com/projects/84061)
|
9
8
|
|
10
9
|
## Functionality
|
11
10
|
|
@@ -39,6 +38,6 @@
|
|
39
38
|
|
40
39
|
## Installation
|
41
40
|
|
42
|
-
[Installation and Setup](
|
41
|
+
[Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html)
|
43
42
|
|
44
43
|
## Notes
|
data/bin/handler-pushover.rb
CHANGED
@@ -24,22 +24,22 @@ class Pushover < Sensu::Handler
|
|
24
24
|
def handle
|
25
25
|
apiurl = settings['pushover']['apiurl'] || 'https://api.pushover.net/1/messages'
|
26
26
|
|
27
|
-
if settings['pushover']['keys']
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
27
|
+
keys = if settings['pushover']['keys']
|
28
|
+
settings['pushover']['keys']
|
29
|
+
else
|
30
|
+
[
|
31
|
+
{
|
32
|
+
'userkey' => settings['pushover']['userkey'],
|
33
|
+
'token' => settings['pushover']['token']
|
34
|
+
}
|
35
|
+
]
|
36
|
+
end
|
37
37
|
|
38
|
-
if @event['check']['status'] < 3
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
38
|
+
priority = if @event['check']['status'] < 3
|
39
|
+
@event['check']['status'] - 1
|
40
|
+
else
|
41
|
+
0
|
42
|
+
end
|
43
43
|
|
44
44
|
params = {
|
45
45
|
title: event_name,
|
@@ -56,7 +56,7 @@ class Pushover < Sensu::Handler
|
|
56
56
|
|
57
57
|
keys.each do |key|
|
58
58
|
begin
|
59
|
-
timeout(5) do
|
59
|
+
Timeout.timeout(5) do
|
60
60
|
params['user'] = key['userkey']
|
61
61
|
params['token'] = key['token']
|
62
62
|
req.set_form_data(params)
|
metadata
CHANGED
@@ -1,51 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-pushover
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sensu-Plugins and contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
-
|
12
|
-
-----BEGIN CERTIFICATE-----
|
13
|
-
MIIDgDCCAmigAwIBAgIBATANBgkqhkiG9w0BAQUFADBDMRIwEAYDVQQDDAltYXR0
|
14
|
-
am9uZXMxGDAWBgoJkiaJk/IsZAEZFgh5aWVsZGJvdDETMBEGCgmSJomT8ixkARkW
|
15
|
-
A2NvbTAeFw0xNTAxMjgyMTAyNTFaFw0xNjAxMjgyMTAyNTFaMEMxEjAQBgNVBAMM
|
16
|
-
CW1hdHRqb25lczEYMBYGCgmSJomT8ixkARkWCHlpZWxkYm90MRMwEQYKCZImiZPy
|
17
|
-
LGQBGRYDY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyTSzVYnO
|
18
|
-
CLgyrIyT1mBQakArQyW8x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00:00.000000000 Z
|
34
12
|
dependencies:
|
35
13
|
- !ruby/object:Gem::Dependency
|
36
14
|
name: sensu-plugin
|
37
15
|
requirement: !ruby/object:Gem::Requirement
|
38
16
|
requirements:
|
39
|
-
- -
|
17
|
+
- - "~>"
|
40
18
|
- !ruby/object:Gem::Version
|
41
|
-
version: 1.2
|
19
|
+
version: '1.2'
|
42
20
|
type: :runtime
|
43
21
|
prerelease: false
|
44
22
|
version_requirements: !ruby/object:Gem::Requirement
|
45
23
|
requirements:
|
46
|
-
- -
|
24
|
+
- - "~>"
|
47
25
|
- !ruby/object:Gem::Version
|
48
|
-
version: 1.2
|
26
|
+
version: '1.2'
|
49
27
|
- !ruby/object:Gem::Dependency
|
50
28
|
name: bundler
|
51
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,14 +86,14 @@ dependencies:
|
|
108
86
|
requirements:
|
109
87
|
- - "~>"
|
110
88
|
- !ruby/object:Gem::Version
|
111
|
-
version:
|
89
|
+
version: 0.32.1
|
112
90
|
type: :development
|
113
91
|
prerelease: false
|
114
92
|
version_requirements: !ruby/object:Gem::Requirement
|
115
93
|
requirements:
|
116
94
|
- - "~>"
|
117
95
|
- !ruby/object:Gem::Version
|
118
|
-
version:
|
96
|
+
version: 0.32.1
|
119
97
|
- !ruby/object:Gem::Dependency
|
120
98
|
name: rspec
|
121
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -203,7 +181,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
203
181
|
requirements:
|
204
182
|
- - ">="
|
205
183
|
- !ruby/object:Gem::Version
|
206
|
-
version:
|
184
|
+
version: 2.0.0
|
207
185
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
208
186
|
requirements:
|
209
187
|
- - ">="
|
@@ -211,8 +189,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
211
189
|
version: '0'
|
212
190
|
requirements: []
|
213
191
|
rubyforge_project:
|
214
|
-
rubygems_version: 2.
|
192
|
+
rubygems_version: 2.5.1
|
215
193
|
signing_key:
|
216
194
|
specification_version: 4
|
217
195
|
summary: Sensu plugins for pushover
|
218
196
|
test_files: []
|
197
|
+
has_rdoc:
|
checksums.yaml.gz.sig
DELETED
Binary file
|
data.tar.gz.sig
DELETED
Binary file
|
metadata.gz.sig
DELETED