sensu-plugins-ponymailer 0.0.4 → 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: 94430dde9ccfe3dfcdc97e10ee2985619e0b5adc
4
- data.tar.gz: abd3169449ad31fb08fbbb452554f90b58aba6af
3
+ metadata.gz: 93987c5bf7a428a48a3f38cec1ba419dfddfe51f
4
+ data.tar.gz: 2e20f56859c570eaabcae15168d2d88165cad635
5
5
  SHA512:
6
- metadata.gz: 8da747285d4bc43e4d433152e0b1657ca559492d68ca4d8d57c033b321d9e9e176427df7761ad25c3b7d807dd0fbe9330e00e7332260811341860ed64312ca3f
7
- data.tar.gz: 7d648b204c4041e7091abf1d46278257972019b24a659d6826fef39492e74e252482ae2c40c4b0cd8f5a03b5ad07337d9eef9c5715517872c894f5e8210fe995
6
+ metadata.gz: 125c4ef53759f764f8b478468f8b1107dcb8508ed7114322f1f4f20b5043859fcd735934808798b92678cbc50b70e66c39f0f45dba57787f51d7b7b3e45b469f
7
+ data.tar.gz: 234d50678ce95cfc63feb16c75deaf00abf92dcc5cbf9d8e98a1b7134c5f831bbaf89e042f5e2f9d6dc8e7df7565821cab425fe4d7acd613b3235cc4e9608fd3
@@ -1,15 +1,27 @@
1
- #Change Log
1
+ # Change Log
2
2
  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] - 2017-07-31
9
+ ### Breaking Change
10
+ - Remove Ruby 1.9.3 support (@eheydrick)
11
+
12
+ ### Added
13
+ - Ruby 2.3 support (@eheydrick)
14
+ - Ruby 2.4.1 testing (@Evesy)
15
+
16
+ ### Changed
17
+ - Rubocop update and cleanup
18
+ - Relax `sensu-plugin` dependency to `~> 1.2` (@eheydrick)
7
19
 
8
20
  ## [0.0.4] - 2015-12-03
9
- ## Removed
21
+ ### Removed
10
22
  - Removed timeout gem dependency that was conflicting with stdlib
11
23
 
12
- ## Changed
24
+ ### Changed
13
25
  - Updated to rubocop 0.32.1
14
26
 
15
27
  ## [0.0.3] - 2015-07-14
@@ -17,7 +29,6 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
17
29
  - updated sensu-plugin gem to 1.2.0
18
30
 
19
31
  ## [0.0.2] - [2015-07-10]
20
-
21
32
  ### Changed
22
33
  - set deps in alpha order in `Rakefile`
23
34
  - set deps in alpha order in gemspec
@@ -28,7 +39,12 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
28
39
  - fix undefined method `arguments`
29
40
  - set binstubs to only be created for ruby files
30
41
 
31
- ## [0.0.1] - [2015-06-02]
42
+ ## 0.0.1 - [2015-06-02]
32
43
  ### Added
33
44
  - initial release
34
45
 
46
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-ponymailer/compare/1.0.0...HEAD
47
+ [1.0.0]: https://github.com/sensu-plugins/sensu-plugins-ponymailer/compare/0.0.4...1.0.0
48
+ [0.0.4]: https://github.com/sensu-plugins/sensu-plugins-ponymailer/compare/0.0.3...0.0.4
49
+ [0.0.3]: https://github.com/sensu-plugins/sensu-plugins-ponymailer/compare/0.0.2...0.0.3
50
+ [0.0.2]: https://github.com/sensu-plugins/sensu-plugins-ponymailer/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-ponymailer/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-ponymailer)
6
6
  [![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-ponymailer/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-ponymailer)
7
7
  [![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-ponymailer.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-ponymailer)
8
- [ ![Codeship Status for sensu-plugins/sensu-plugins-ponymailer](https://codeship.com/projects/1de221a0-ea2e-0132-7d0b-4602e60b2e9f/status?branch=master)](https://codeship.com/projects/83063)
9
8
 
10
9
  ## Functionality
11
10
 
@@ -19,7 +19,7 @@ class PonyMailer < Sensu::Handler
19
19
  0 => 'OK',
20
20
  1 => 'WARNING',
21
21
  2 => 'CRITICAL'
22
- }
22
+ }.freeze
23
23
 
24
24
  def short_name
25
25
  @event['client']['name'] + '/' + @event['check']['name']
@@ -42,14 +42,14 @@ class PonyMailer < Sensu::Handler
42
42
  charset: 'utf-8',
43
43
  sender: settings['ponymailer']['from']
44
44
  }
45
- mail_options.merge!(via_options: {
46
- address: settings['ponymailer']['hostname'],
47
- port: settings['ponymailer']['port'],
48
- enable_starttls_auto: settings['ponymailer']['tls'],
49
- user_name: settings['ponymailer']['username'],
50
- password: settings['ponymailer']['password'],
51
- authentication: :plain
52
- }) if settings['ponymailer']['authenticate']
45
+ mail_options[:via_options] = {
46
+ address: settings['ponymailer']['hostname'],
47
+ port: settings['ponymailer']['port'],
48
+ enable_starttls_auto: settings['ponymailer']['tls'],
49
+ user_name: settings['ponymailer']['username'],
50
+ password: settings['ponymailer']['password'],
51
+ authentication: :plain
52
+ } if settings['ponymailer']['authenticate']
53
53
 
54
54
  mail_options[:body] = %(Sensu has detected a failed check. Event analysis follows:
55
55
 
@@ -59,7 +59,7 @@ Check That Failed: #{@event['check']['name']}
59
59
  Check Command: #{@event['check']['command']}
60
60
  Check Flapping: #{@event['check']['flapping']}
61
61
  Check Occurrences: #{@event['occurrences']}
62
- Check History: #{@event['check']['history'].map { |h| STATUSES[h.to_i] }.join(' => ')}
62
+ Check History: #{@event['check']['history'].map { |h| STATUSES[h.to_i] }.join(' => ')}
63
63
 
64
64
  Node Name: #{@event['client']['name']}
65
65
  Node IP Address: #{@event['client']['address']}
@@ -77,15 +77,15 @@ Node Subscriptions: #{@event['client']['subscriptions'].join(', ')}
77
77
  Pony.options = mail_options
78
78
 
79
79
  # #YELLOW
80
- unless settings['ponymailer']['recipients'].empty? # rubocop:disable GuardClause
80
+ unless settings['ponymailer']['recipients'].empty?
81
81
  settings['ponymailer']['recipients'].each do |to|
82
82
  begin
83
83
  Timeout.timeout 10 do
84
84
  Pony.mail(to: to)
85
85
  puts 'mail -- sent alert for ' + short_name + ' to ' + to
86
86
  end
87
- rescue Timeout::Error
88
- puts 'mail -- timed out while attempting to ' + @event['action'] + ' an incident -- ' + short_name
87
+ rescue Timeout::Error
88
+ puts 'mail -- timed out while attempting to ' + @event['action'] + ' an incident -- ' + short_name
89
89
  end
90
90
  end
91
91
  end
@@ -1,8 +1,8 @@
1
1
  module SensuPluginsPonymailer
2
2
  module Version
3
- MAJOR = 0
3
+ MAJOR = 1
4
4
  MINOR = 0
5
- PATCH = 4
5
+ PATCH = 0
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,36 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-ponymailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
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-12-03 00:00:00.000000000 Z
10
+ cert_chain: []
11
+ date: 2017-08-01 00:00:00.000000000 Z
34
12
  dependencies:
35
13
  - !ruby/object:Gem::Dependency
36
14
  name: pony
@@ -50,16 +28,16 @@ dependencies:
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
@@ -203,7 +181,7 @@ homepage: https://github.com/sensu-plugins/sensu-plugins-ponymailer
203
181
  licenses:
204
182
  - MIT
205
183
  metadata:
206
- maintainer: ''
184
+ maintainer: sensu-plugin
207
185
  development_status: active
208
186
  production_status: unstable - testing recommended
209
187
  release_draft: 'false'
@@ -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 ponymailer
Binary file
data.tar.gz.sig DELETED
Binary file
metadata.gz.sig DELETED
Binary file