sensu-plugins-chef 4.0.0 → 5.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
- SHA1:
3
- metadata.gz: 921c03d9102e7ba6eb3330438b783613bbb020a1
4
- data.tar.gz: 495db0afca92ab3a4fcd2c8b28afc244988f1fcf
2
+ SHA256:
3
+ metadata.gz: 4f7f1ddb957442aee64422476bccfbd54312b355f247eb89946c340ace896f07
4
+ data.tar.gz: d6c522a674b02d6bb117174b44a93669f75f2c64ea45ef296184788dc4450e31
5
5
  SHA512:
6
- metadata.gz: 9018eb2a96f6f7b6dc76679554ec97583cf6ce76c14f1af5b5e7cc990d22366f0af7e0ebc531b850180327196509458c3d9245a0e4c76a363bc5852c9d604e69
7
- data.tar.gz: 40f41e8eb1701604131be65eee08cafe2da795d002a5b3d375b3104579041667b88136fddd8505817b2e8f9ad311e7529938bc3ea6d4e55be158486c38d4a01b
6
+ metadata.gz: d25745ac900bf24d9379ecf786d3df57921855a87c6e267f86438b3841eef13e5b82ba32a811755a77c0a1681418d569ff4401dcf22fdc35cb0bb0fce3a13fb7
7
+ data.tar.gz: 08c356690899cf835f17bb534ed7423ed66d996e98210ff966ec7d64926c13931aa94235e091bfa9c5bb19b7ffaa7febbde48f012294b4c7aac2318320be2f57
@@ -1,9 +1,25 @@
1
- #Change Log
1
+ # Change Log
2
2
  This project adheres to [Semantic Versioning](http://semver.org/).
3
3
 
4
- This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
4
+ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins/community/blob/master/HOW_WE_CHANGELOG.md)
5
5
 
6
6
  ## [Unreleased]
7
+
8
+ ## [5.0.0] - 2018-01-31
9
+ ### Security
10
+ - updated `rubocop` dependency to `~> 0.51.0` per: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-8418. (@geewiz)
11
+
12
+ ### Breaking Change
13
+ - in order to bring in new rubocop dependency we need to drop ruby 2.0 support as it is EOL and aligns with our support policy. (@geewiz)
14
+
15
+ ### Fixed
16
+ - made exception handling more specific by catching StandardError (@geewiz)
17
+ - misc formatting in changelog (@majormoses)
18
+
19
+ ### Changed
20
+ - updated changelog guidelines location (@majormoses)
21
+
22
+
7
23
  ## [4.0.0] - 2017-08-14
8
24
  ### Breaking Change
9
25
  - check-chef-nodes.rb: added an option for a grace_period which allows exclusion of nodes until they have been online for a specified ammount of time. Defaulting to 300 seconds. (@majormoses)
@@ -84,7 +100,8 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
84
100
  ### Added
85
101
  - initial release
86
102
 
87
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-chef/compare/4.0.0...HEAD
103
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-chef/compare/5.0.0...HEAD
104
+ [5.0.0]: https://github.com/sensu-plugins/sensu-plugins-chef/compare/4.0.0...5.0.0
88
105
  [4.0.0]: https://github.com/sensu-plugins/sensu-plugins-chef/compare/3.0.2...4.0.0
89
106
  [3.0.2]: https://github.com/sensu-plugins/sensu-plugins-chef/compare/3.0.2...3.0.1
90
107
  [3.0.1]: https://github.com/sensu-plugins/sensu-plugins-chef/compare/3.0.1...3.0.0
@@ -71,7 +71,7 @@ class ChefNodeChecker < Sensu::Plugin::Check::CLI
71
71
  else
72
72
  warning "Node #{config[:node_name]} does not contain 'ohai_time' attribute"
73
73
  end
74
- rescue => e
74
+ rescue StandardError => e
75
75
  critical "Node #{config[:node_name]} not found - #{e.message}"
76
76
  end
77
77
 
@@ -74,9 +74,10 @@ class ChefNodesStatusChecker < Sensu::Plugin::Check::CLI
74
74
  default: '^$'
75
75
 
76
76
  option :grace_period,
77
- description: 'The ammount of time before a node should be evaluated for failed convergence',
77
+ description: 'The amount of time before a node should be evaluated for failed convergence',
78
78
  long: '--grace-period SECONDS',
79
- default: (60 * 5), # default 5 minutes, which seems like a good but not great default
79
+ # default 5 minutes, which seems like a good but not great default
80
+ default: (60 * 5),
80
81
  proc: proc(&:to_i)
81
82
 
82
83
  option :ignore_ssl_verification,
@@ -75,7 +75,7 @@ class ChefNode < Sensu::Handler
75
75
  puts "CHEF-NODE: Ridley is broken: #{error.inspect}"
76
76
  true
77
77
  end
78
- rescue => error
78
+ rescue StandardError => error
79
79
  puts "CHEF-NODE: Unexpected error: #{error.inspect}"
80
80
  true
81
81
  end
@@ -84,7 +84,7 @@ class ChefNode < Sensu::Handler
84
84
  def delete_sensu_client!
85
85
  api_request(:DELETE, '/clients/' + @event['client']['name'])
86
86
  puts "CHEF-NODE: Successfully deleted Sensu client #{@event['client']['name']}"
87
- rescue => error
87
+ rescue StandardError => error
88
88
  puts "CHEF-NODE: Unexpected error: #{error.inspect}"
89
89
  end
90
90
 
@@ -1,6 +1,6 @@
1
1
  module SensuPluginsChef
2
2
  module Version
3
- MAJOR = 4
3
+ MAJOR = 5
4
4
  MINOR = 0
5
5
  PATCH = 0
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-chef
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu Plugins and contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-14 00:00:00.000000000 Z
11
+ date: 2018-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef
@@ -128,20 +128,6 @@ dependencies:
128
128
  - - "~>"
129
129
  - !ruby/object:Gem::Version
130
130
  version: '1.3'
131
- - !ruby/object:Gem::Dependency
132
- name: nio4r
133
- requirement: !ruby/object:Gem::Requirement
134
- requirements:
135
- - - "~>"
136
- - !ruby/object:Gem::Version
137
- version: '1.2'
138
- type: :development
139
- prerelease: false
140
- version_requirements: !ruby/object:Gem::Requirement
141
- requirements:
142
- - - "~>"
143
- - !ruby/object:Gem::Version
144
- version: '1.2'
145
131
  - !ruby/object:Gem::Dependency
146
132
  name: pry
147
133
  requirement: !ruby/object:Gem::Requirement
@@ -185,33 +171,33 @@ dependencies:
185
171
  - !ruby/object:Gem::Version
186
172
  version: '3.2'
187
173
  - !ruby/object:Gem::Dependency
188
- name: rubocop
174
+ name: rspec
189
175
  requirement: !ruby/object:Gem::Requirement
190
176
  requirements:
191
177
  - - "~>"
192
178
  - !ruby/object:Gem::Version
193
- version: 0.40.0
179
+ version: '3.4'
194
180
  type: :development
195
181
  prerelease: false
196
182
  version_requirements: !ruby/object:Gem::Requirement
197
183
  requirements:
198
184
  - - "~>"
199
185
  - !ruby/object:Gem::Version
200
- version: 0.40.0
186
+ version: '3.4'
201
187
  - !ruby/object:Gem::Dependency
202
- name: rspec
188
+ name: rubocop
203
189
  requirement: !ruby/object:Gem::Requirement
204
190
  requirements:
205
191
  - - "~>"
206
192
  - !ruby/object:Gem::Version
207
- version: '3.4'
193
+ version: 0.51.0
208
194
  type: :development
209
195
  prerelease: false
210
196
  version_requirements: !ruby/object:Gem::Requirement
211
197
  requirements:
212
198
  - - "~>"
213
199
  - !ruby/object:Gem::Version
214
- version: '3.4'
200
+ version: 0.51.0
215
201
  - !ruby/object:Gem::Dependency
216
202
  name: yard
217
203
  requirement: !ruby/object:Gem::Requirement
@@ -275,7 +261,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
275
261
  version: '0'
276
262
  requirements: []
277
263
  rubyforge_project:
278
- rubygems_version: 2.4.5
264
+ rubygems_version: 2.7.4
279
265
  signing_key:
280
266
  specification_version: 4
281
267
  summary: Sensu plugins for chef