sensu-plugins-zookeeper 1.5.0 → 2.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
  SHA256:
3
- metadata.gz: 730c88c962b31d3b0ca1ef65508e183a42ae62a4b08f237621af5e652decc9e8
4
- data.tar.gz: 53eedd6d5defea10428b8c68bf28896578bb7b0e81545b3ed4e4f13a8ff56b7b
3
+ metadata.gz: 83daae1c3f6dd1333cd43fb1cc7f24fc94082afdce148565716797ab6626da66
4
+ data.tar.gz: 8e05f1fce9a74cb6ce5872f0fe45cde1e3b879de0a0ef48d296f1c0086ddbdf9
5
5
  SHA512:
6
- metadata.gz: 0042a27fd7df1d534ff063ed92f0b9c55248b3bc63332d0d4f1c85fd382801b97c4b79229916392a31fb59151b5549e34eebf478bee200348e2cf8c9fe3ab369
7
- data.tar.gz: 9b3ec12a7481a6e2c203bc46154f523749290ab5da6f67c25bd7a5d182b92608a3ba5ac85ae74553df0f46e015fb281d8a2699d74c8758c22da701cd679e1763
6
+ metadata.gz: d3c15a4689b39624ebcdf8497dccc303d1be2c352628e1c41c1a1480bc58b256999ac1ac3a7f87e1cdb4ab893c7a06c5359bc22402400f4fe7719f36ae05ebdc
7
+ data.tar.gz: 759023fede130b8c885f50238b3ef402cf2f050e0cd3da2579a0858e00a51fe570d3f13760a08e6de86e11d4b9e9ac2a891a4da48dca4debfdc27b4d0d9d3ace
@@ -6,6 +6,16 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [2.0.0] - 2018-01-18
10
+ ### Security
11
+ - updated rubocop dependency to `~> 0.51.0` per: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-8418. (@thomasriley)
12
+
13
+ ### Breaking Changes
14
+ - removed < ruby 2.1 support which was pulled as part of security updates (@thomasriley)
15
+
16
+ ### Changed
17
+ - Various amendments to comply with Rubocop (@thomasriley)
18
+
9
19
  ## [1.5.0] - 2017-12-06
10
20
  ### Added
11
21
  - check-netty-zookeeper-cluster.rb: new script to check if a zookeeper v. 3.5 cluster is OK (@duncaan)
@@ -71,7 +81,8 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
71
81
  ### Added
72
82
  - initial release
73
83
 
74
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-zookeeper/compare/1.5.0...HEAD
84
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-zookeeper/compare/2.0.0...HEAD
85
+ [2.0.0]: https://github.com/sensu-plugins/sensu-plugins-zookeeper/compare/1.5.0...2.0.0
75
86
  [1.5.0]: https://github.com/sensu-plugins/sensu-plugins-zookeeper/compare/1.4.0...1.5.0
76
87
  [1.4.0]: https://github.com/sensu-plugins/sensu-plugins-zookeeper/compare/1.3.0...1.4.0
77
88
  [1.3.0]: https://github.com/sensu-plugins/sensu-plugins-zookeeper/compare/1.2.0...1.3.0
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- # encoding: UTF-8
3
2
 
4
3
  #
5
4
  # netty-check-zookeeper-cluster
@@ -1,5 +1,4 @@
1
1
  #! /usr/bin/env ruby
2
- # encoding: UTF-8
3
2
  #
4
3
  # check-znode
5
4
  #
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- # encoding: UTF-8
3
2
  #
4
3
  # check-zookeeper-cluster
5
4
  #
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- # encoding: UTF-8
3
2
  #
4
3
  # check-zookeeper-file-descriptors.rb
5
4
  #
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- # encoding: UTF-8
3
2
  #
4
3
  # check-zookeeper-latency
5
4
  #
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- # encoding: UTF-8
3
2
  #
4
3
  # check-zookeeper-mode
5
4
  #
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- # encoding: UTF-8
3
2
  #
4
3
  # check-zookeeper-reqs
5
4
  #
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- # encoding: UTF-8
3
2
  #
4
3
  # check-zookeeper-ruok
5
4
  #
@@ -49,7 +49,10 @@ class ZookeeperMetrics < Sensu::Plugin::Metric::CLI::Graphite
49
49
  default: 2181,
50
50
  proc: proc(&:to_i)
51
51
 
52
- def follow_url(uri_str, agent = "sensu-plugins-zookeeper/#{SensuPluginsZookeeper::Version::VER_STRING}", max_attempts = 10, timeout = 10)
52
+ def follow_url(uri_str,
53
+ agent = "sensu-plugins-zookeeper/#{SensuPluginsZookeeper::Version::VER_STRING}",
54
+ max_attempts = 10,
55
+ timeout = 10)
53
56
  attempts = 0
54
57
  cookie = nil
55
58
 
@@ -95,6 +98,7 @@ class ZookeeperMetrics < Sensu::Plugin::Metric::CLI::Graphite
95
98
 
96
99
  response
97
100
  end
101
+ # rubocop:enable Style/CommentedKeyword
98
102
 
99
103
  def dotted(*args)
100
104
  args.join('.')
@@ -119,7 +123,9 @@ class ZookeeperMetrics < Sensu::Plugin::Metric::CLI::Graphite
119
123
  timestamp = Time.now.to_i
120
124
 
121
125
  json = exhibitor_status
122
- json.each do |zk|
126
+
127
+ # TODO: Need to shortern this function
128
+ json.each do |zk| # rubocop:disable Metrics/BlockLength
123
129
  hostname = zk['hostname']
124
130
  response = zk_command(:mntr, hostname, config[:zk_port])
125
131
  metrics = {}
@@ -1,7 +1,7 @@
1
1
  module SensuPluginsZookeeper
2
2
  module Version
3
- MAJOR = 1
4
- MINOR = 5
3
+ MAJOR = 2
4
+ MINOR = 0
5
5
  PATCH = 0
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-zookeeper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 2.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-12-06 00:00:00.000000000 Z
11
+ date: 2018-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin
@@ -123,33 +123,33 @@ dependencies:
123
123
  - !ruby/object:Gem::Version
124
124
  version: '3.2'
125
125
  - !ruby/object:Gem::Dependency
126
- name: rubocop
126
+ name: rspec
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 0.40.0
131
+ version: '3.4'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 0.40.0
138
+ version: '3.4'
139
139
  - !ruby/object:Gem::Dependency
140
- name: rspec
140
+ name: rubocop
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: '3.4'
145
+ version: 0.51.0
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: '3.4'
152
+ version: 0.51.0
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: yard
155
155
  requirement: !ruby/object:Gem::Requirement
@@ -211,7 +211,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
211
211
  requirements:
212
212
  - - ">="
213
213
  - !ruby/object:Gem::Version
214
- version: 2.0.0
214
+ version: 2.1.0
215
215
  required_rubygems_version: !ruby/object:Gem::Requirement
216
216
  requirements:
217
217
  - - ">="
@@ -219,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
219
219
  version: '0'
220
220
  requirements: []
221
221
  rubyforge_project:
222
- rubygems_version: 2.7.3
222
+ rubygems_version: 2.7.4
223
223
  signing_key:
224
224
  specification_version: 4
225
225
  summary: Sensu plugins for zookeeper