sensu-plugins-victorops 0.1.0 → 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: 293634ca8c9095c8aeb6f017a843ff622fb3cf27
4
- data.tar.gz: 3fff3b715c8b6f0cef7a8bef0cfd6b9e67fd9612
3
+ metadata.gz: 2f4f518228ffc32d119dd470281342a900ec6228
4
+ data.tar.gz: b86bdd7e192b34cb51e23456c6e7bcd0c0e7cef9
5
5
  SHA512:
6
- metadata.gz: 692cab05165162704333001eacb877ab1716efc37f621cb0d51a5c7b6001e95f6f07a1a8dd621cd36e9a006b222991a6b8f04b0167426467d6374a38f4e77d77
7
- data.tar.gz: 3c66d074fcc822d450fa0bb4762edfc8631d1d6298e9ee5912621f4e35fc1f3d7eba2a4084d9781cf57c6b96aff09f4ab1f5c01de9bc133e81b2f40d07d74ffe
6
+ metadata.gz: 94d4f7152539ce5747a701a4e95a8175339a89fecbdaf262fbff58a2a3cba0793ca03ea09d8bf6ab0724a9a162a36859446f90e9017f90b01702ee2af675b79d
7
+ data.tar.gz: 99e04cf8a159de84e0ca450960626a96b4ebe72cfbef130143c9cb6e7339ba7b881210ec373181e8d8f1ab2e4cd1a81b4c6ff2a63a425af4d9d7212f3f5a2937
@@ -3,7 +3,17 @@ 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
+ ## [1.0.0] - 2017-07-6
8
+ ### Added
9
+ - Ruby 2.3 & 2.4 testing
10
+
11
+ ### Breaking Changes
12
+ - Dropped Ruby 1.9.3 support
13
+ - Updated JSON dependency to 1.8.5
14
+
15
+ ### Fixed
16
+ - PR template spelling
7
17
 
8
18
  ## [0.1.0] - 2015-11-06
9
19
  ### Fixed
@@ -17,7 +27,6 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
17
27
  - updated sensu-plugin gem to 1.2.0
18
28
 
19
29
  ## [0.0.2] - 2015-06-03
20
-
21
30
  ### Fixed
22
31
  - added binstubs
23
32
 
@@ -25,7 +34,11 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
25
34
  - removed cruft from /lib
26
35
 
27
36
  ## 0.0.1 - 2015-05-21
28
-
29
37
  ### Added
30
38
  - initial release
31
39
 
40
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-victorops/compare/1.1.0...HEAD
41
+ [1.0.0]: https://github.com/sensu-plugins/sensu-plugins-victorops/compare/1.1.0...1.1.0
42
+ [0.1.0]: https://github.com/sensu-plugins/sensu-plugins-victorops/compare/0.0.3...0.1.0
43
+ [0.0.3]: https://github.com/sensu-plugins/sensu-plugins-victorops/compare/0.0.2...0.0.3
44
+ [0.0.2]: https://github.com/sensu-plugins/sensu-plugins-victorops/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-victorops/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-victorops)
6
6
  [![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-victorops/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-victorops)
7
7
  [![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-victorops.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-victorops)
8
- [ ![Codeship Status for sensu-plugins/sensu-plugins-victorops](https://codeship.com/projects/3639bc20-e210-0132-d166-3642858bbef8/status?branch=master)](https://codeship.com/projects/81382)
9
8
 
10
9
  ## Functionality
11
10
 
@@ -30,10 +30,10 @@ class VictorOps < Sensu::Handler
30
30
  def handle
31
31
  # validate that we have settings
32
32
  unless defined? settings[config[:settingsname]] && !settings[config[:settingsname]].nil?
33
- fail "victorops.rb sensu setting '#{config[:settingsname]}' not found or empty"
33
+ raise "victorops.rb sensu setting '#{config[:settingsname]}' not found or empty"
34
34
  end
35
35
  unless defined? settings[config[:settingsname]]['api_url'] && !settings[config[:settingsname]]['api_url'].nil?
36
- fail "victorops.rb sensu setting '#{config[:settingsname]}.api_url' not found or empty"
36
+ raise "victorops.rb sensu setting '#{config[:settingsname]}.api_url' not found or empty"
37
37
  end
38
38
  api_url = settings[config[:settingsname]]['api_url']
39
39
 
@@ -42,7 +42,7 @@ class VictorOps < Sensu::Handler
42
42
  routing_key = settings[config[:settingsname]]['routing_key'] if routing_key.nil?
43
43
 
44
44
  unless defined? routing_key && !routing_key.nil?
45
- fail 'routing key not defined, should be in Sensu settings or passed via command arguments'
45
+ raise 'routing key not defined, should be in Sensu settings or passed via command arguments'
46
46
  end
47
47
 
48
48
  incident_key = @event['client']['name'] + '/' + @event['check']['name']
@@ -56,12 +56,12 @@ class VictorOps < Sensu::Handler
56
56
  timeout(10) do
57
57
  case @event['action']
58
58
  when 'create'
59
- case @event['check']['status']
60
- when 1
61
- message_type = 'WARNING'
62
- else
63
- message_type = 'CRITICAL'
64
- end
59
+ message_type = case @event['check']['status']
60
+ when 1
61
+ 'WARNING'
62
+ else
63
+ 'CRITICAL'
64
+ end
65
65
  when 'resolve'
66
66
  message_type = 'RECOVERY'
67
67
  end
@@ -1,7 +1,7 @@
1
1
  module SensuPluginsVictorops
2
2
  module Version
3
- MAJOR = 0
4
- MINOR = 1
3
+ MAJOR = 1
4
+ MINOR = 0
5
5
  PATCH = 0
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
metadata CHANGED
@@ -1,36 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-victorops
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.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
- MIIDgDCCAmigAwI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
29
- JKP4hVvbc1d+oS925B1lcBiqn2aYvElbyNAVmQPywNNqkWmvtlqj9ZVJfV5HQLdu
30
- 8sHuVruarogxxKPBzlL2is4EUb6oN/RdpGx2l4254+nyR+abg//Ed27Ym0PkB4lk
31
- HP0m8WSjZmFr109pE/sVsM5jtOCvogyujQOjNVGN4gz1wwPr
32
- -----END CERTIFICATE-----
33
- date: 2015-11-06 00:00:00.000000000 Z
10
+ cert_chain: []
11
+ date: 2017-07-07 00:00:00.000000000 Z
34
12
  dependencies:
35
13
  - !ruby/object:Gem::Dependency
36
14
  name: json
@@ -38,28 +16,28 @@ dependencies:
38
16
  requirements:
39
17
  - - '='
40
18
  - !ruby/object:Gem::Version
41
- version: 1.8.2
19
+ version: 1.8.5
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.8.2
26
+ version: 1.8.5
49
27
  - !ruby/object:Gem::Dependency
50
28
  name: sensu-plugin
51
29
  requirement: !ruby/object:Gem::Requirement
52
30
  requirements:
53
- - - '='
31
+ - - "~>"
54
32
  - !ruby/object:Gem::Version
55
- version: 1.2.0
33
+ version: '1.2'
56
34
  type: :runtime
57
35
  prerelease: false
58
36
  version_requirements: !ruby/object:Gem::Requirement
59
37
  requirements:
60
- - - '='
38
+ - - "~>"
61
39
  - !ruby/object:Gem::Version
62
- version: 1.2.0
40
+ version: '1.2'
63
41
  - !ruby/object:Gem::Dependency
64
42
  name: bundler
65
43
  requirement: !ruby/object:Gem::Requirement
@@ -162,16 +140,16 @@ dependencies:
162
140
  name: rubocop
163
141
  requirement: !ruby/object:Gem::Requirement
164
142
  requirements:
165
- - - '='
143
+ - - "~>"
166
144
  - !ruby/object:Gem::Version
167
- version: 0.32.1
145
+ version: 0.40.0
168
146
  type: :development
169
147
  prerelease: false
170
148
  version_requirements: !ruby/object:Gem::Requirement
171
149
  requirements:
172
- - - '='
150
+ - - "~>"
173
151
  - !ruby/object:Gem::Version
174
- version: 0.32.1
152
+ version: 0.40.0
175
153
  - !ruby/object:Gem::Dependency
176
154
  name: yard
177
155
  requirement: !ruby/object:Gem::Requirement
@@ -217,7 +195,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
217
195
  requirements:
218
196
  - - ">="
219
197
  - !ruby/object:Gem::Version
220
- version: 1.9.3
198
+ version: 2.0.0
221
199
  required_rubygems_version: !ruby/object:Gem::Requirement
222
200
  requirements:
223
201
  - - ">="
@@ -225,7 +203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
225
203
  version: '0'
226
204
  requirements: []
227
205
  rubyforge_project:
228
- rubygems_version: 2.4.8
206
+ rubygems_version: 2.4.5
229
207
  signing_key:
230
208
  specification_version: 4
231
209
  summary: Sensu plugins for Victorops alerting service
Binary file
data.tar.gz.sig DELETED
@@ -1,3 +0,0 @@
1
- ��(E�q��Qi0ǟ���fa"=��4@?���7�4�ߵ��P���ݍ�)[n�+ ��mk�/0Fp�.��w������6��q�ﲖ)�
2
- ]��U�&# �ဵ��c6������5n��i��J�"�]�^��xw�䕵_v�N�ax2��{�6�;<,�F��ZBa���*��$cs�2�l\%
3
- yYe��u��п�8hwkB ����5�֦�܍�f���F�GW�:�s�|),�4diW
metadata.gz.sig DELETED
Binary file