sensu-plugins-pushover 0.0.2 → 1.0.0

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: a120dab7887f1b1551c1c849fde510741ed47394
4
- data.tar.gz: 124faec1448fe5f770d9b58fb74f79a2be25ee53
3
+ metadata.gz: 25220cd6f19de7fbd0a0d4c60b5fe8930f47d30f
4
+ data.tar.gz: 99bd91a9c059f5829e1a7f0a64a1d41b0c883634
5
5
  SHA512:
6
- metadata.gz: 7c1179caea716d64df4f649963e658d87be619a9490f7eb730756895479cecbc2d6a5dedcd7010f3bc6be14a802c8dbc98d037d9b6b8c09f219c02b57466d53e
7
- data.tar.gz: 5d94f07993bed888fbe87f748bb5d1e07f32bce9177a8da4b66affd367cd6c94050642b5c78a8d5c93975c5557310a020987ad6232a79ed9adcbf99d53246b1a
6
+ metadata.gz: d605392ebd6ce5b8be3472bee8f419a957843d81b0823a29717fcc0bcdf88cbd311ca55a16392f28cf4f9dcd835fb6f22c3622c7ed1fc77e20bda70ee8a257a5
7
+ data.tar.gz: e2156c882b6c920a34102e9896ca3bb9b49b738fa963e27232aa0da21614028734961235ed34d964bb1b2e9acf051acb0a21ef53891820c302497f7ae2769ea8
@@ -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][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
- ## [0.0.1] - 2015-07-04
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
  [![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-pushover/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-pushover)
6
6
  [![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-pushover/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-pushover)
7
7
  [![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-pushover.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-pushover)
8
- [ ![Codeship Status for sensu-plugins/sensu-plugins-pushover](https://codeship.com/projects/79576aa0-edb0-0132-5c33-1efd3f886df2/status?branch=master)](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](https://github.com/sensu-plugins/documentation/blob/master/user_docs/installation_instructions.md)
41
+ [Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html)
43
42
 
44
43
  ## Notes
@@ -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
- keys = settings['pushover']['keys']
29
- else
30
- keys = [
31
- {
32
- 'userkey' => settings['pushover']['userkey'],
33
- 'token' => settings['pushover']['token']
34
- }
35
- ]
36
- end
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
- priority = @event['check']['status'] - 1
40
- else
41
- priority = 0
42
- end
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)
@@ -1,8 +1,8 @@
1
1
  module SensuPluginsPushover
2
2
  module Version
3
- MAJOR = 0
3
+ MAJOR = 1
4
4
  MINOR = 0
5
- PATCH = 2
5
+ PATCH = 0
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
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.2
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
- CLgyrIyT1mBQakArQyW8xhi6MlDqyzXHJGeERT790U6EgoBVeS4XoK0ptFZNR8Tf
19
- zko0w+Nv47TarSCgkPOaxY+mxWnAVR10dOmfeLr7huiMyps+YD56/EF2FqQ3jf/+
20
- qohENfKD91qy1ieEy+Fn7Pf74ltbNKUdkb9a9eFXQ0DQ4ip5vik7DzjQkUTj4lca
21
- k6ArwnmHX4YDhZoYtrQJ8jVktN0/+NtA40M5qkCYHNe5tUW25b/tKVYuioxG6b2Z
22
- oIzaZxRLxf6HVAWpCVRT/F5+/yjigkX4u++eYacfLGleXQzoK7BL65vHGMJygWEE
23
- 0TKGqFOrl/L0AQIDAQABo38wfTAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNV
24
- HQ4EFgQUEf6a8Td7MrSZc8ImbLFZAENPbz0wIQYDVR0RBBowGIEWbWF0dGpvbmVz
25
- QHlpZWxkYm90LmNvbTAhBgNVHRIEGjAYgRZtYXR0am9uZXNAeWllbGRib3QuY29t
26
- MA0GCSqGSIb3DQEBBQUAA4IBAQBbzXAYA3BVGw8DZ0YYoY1VHPNEcH5qPIApmHO8
27
- rvSmuUT0yMEi7u00H/5uHRFf4LleGT/+sTdyXKsNPGT9kdRuQEgwi+vf7Zfvd8aX
28
- UF/+4VkEYf/8rV8Ere6u2QaWPgApdMV6JjKr1fAwCTd8AuGXNaWItiPPMseSQzLJ
29
- JKP4hVvbc1d+oS925B1lcBiqn2aYvElbyNAVmQPywNNqkWmvtlqj9ZVJfV5HQLdu
30
- 8sHuVruarogxxKPBzlL2is4EUb6oN/RdpGx2l4254+nyR+abg//Ed27Ym0PkB4lk
31
- HP0m8WSjZmFr109pE/sVsM5jtOCvogyujQOjNVGN4gz1wwPr
32
- -----END CERTIFICATE-----
33
- date: 2015-07-14 00:00:00.000000000 Z
10
+ cert_chain: []
11
+ date: 2016-07-14 00: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.0
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.0
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: '0.30'
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: '0.30'
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: 1.9.3
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.4.6
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:
Binary file
data.tar.gz.sig DELETED
Binary file
metadata.gz.sig DELETED
@@ -1,2 +0,0 @@
1
- )���P�5 A0�i�a�ؼ��v������c�*[�.܋~�r�%��e��˷�I!Yam4]"��a*�鎱3>���5�2S�7��xu9�#O���0
2
- v(��؅Y�r�ŕ޴�:Gc�c��q�LF!��@�j����Q����A�|�f���^��K~6��8�DuV�o��\��]���s��/1I�^D���Q��T"��>wq�� ���+�����IJ]�wQw$��7sDvwws��!B�������ǩ�