sensu-plugins-sensu 4.0.0 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6133a1d932a4e24c9866faaf379348fcc320fdb6d00afbefd7cd934dcaf95f01
4
- data.tar.gz: 6feac0be3ec402a6374a97823dd095421cd5aa34666a444da2dc68c8261169e2
3
+ metadata.gz: a2744d297a085cf73b687afdb09cc9f09f0e6e2d089e3026c3b0320b6bb247ee
4
+ data.tar.gz: e8b5002e764d93097c947a91c711057d92d79d2a0d27b19aeed86361f391e521
5
5
  SHA512:
6
- metadata.gz: 8097b173310aa6a407c16a8c89505c2a794fabf3fab36e25b09c77c93d3af34046a986e0001061d8d27efccdc24328ffcb246075396ccd89a5b66c5e14824a55
7
- data.tar.gz: 568f7b0e700cb97df368f6343aa57b79c9a34726ba077397bce5f713cd38a35752aa5f2c911aed61ec4895fff1d99147aafb63780eb3e66e0e63351357c4d041
6
+ metadata.gz: 707aa9cb0d8d4dcc53324ac1273d3876aa56c6223cb9a6eae805c51629aa407ed88bc1a07da80a8e474347be7c8e5f07101f56d1531214c6f29383a823398bd4
7
+ data.tar.gz: e453b017a8b28ba70f29039ad5dc769f6df18e85e925276dfdd727b11c255113c95bd20866143fcb25691b04d1abe88d0cab59a8f2ebb711b30c73ad4085281b
data/CHANGELOG.md CHANGED
@@ -6,6 +6,12 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [4.1.0] - 2018-08-28
10
+ ### Changed
11
+ - bumped dependency of `sensu-plugin` to `~> 2.6` to provide paginated HTTP get (@cwjohnston)
12
+ - check-stale-results.rb: use paginated HTTP get (@cwjohnston)
13
+ - handler-purge-stale-results.rb: use paginated HTTP get (@cwjohnston)
14
+
9
15
  ## [4.0.0] - 2018-07-18
10
16
  ### Security
11
17
  - updated `yard` dependency to `~> 0.9.11` per: https://nvd.nist.gov/vuln/detail/CVE-2017-17042 which closes attacks against a yard server loading arbitrary files (@majormoses)
@@ -143,7 +149,8 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
143
149
  ### Added
144
150
  - initial release
145
151
 
146
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-sensu/compare/4.0.0...HEAD
152
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-sensu/compare/4.1.0...HEAD
153
+ [4.1.0]: https://github.com/sensu-plugins/sensu-plugins-sensu/compare/4.0.0...4.1.0
147
154
  [4.0.0]: https://github.com/sensu-plugins/sensu-plugins-sensu/compare/3.0.0...4.0.0
148
155
  [3.0.0]: https://github.com/sensu-plugins/sensu-plugins-sensu/compare/2.5.0...3.0.0
149
156
  [2.5.0]: https://github.com/sensu-plugins/sensu-plugins-sensu/compare/2.4.1...2.5.0
@@ -89,9 +89,7 @@ class CheckStaleResults < Sensu::Plugin::Check::CLI
89
89
  end
90
90
 
91
91
  def results
92
- res = []
93
- req = api_request(:GET, '/results')
94
- res = JSON.parse(req.body) if req&.code == '200'
92
+ res = paginated_get('/results')
95
93
  res
96
94
  end
97
95
 
@@ -37,9 +37,7 @@ class HandlerPurgeStaleResults < Sensu::Handler
37
37
  required: true
38
38
 
39
39
  def results
40
- res = []
41
- req = api_request(:GET, '/results')
42
- res = JSON.parse(req.body) if req&.code == '200'
40
+ res = paginated_get('/results')
43
41
  res
44
42
  end
45
43
 
@@ -4,7 +4,7 @@ module SensuPluginsSensu
4
4
  # This defines the version of the gem
5
5
  module Version
6
6
  MAJOR = 4
7
- MINOR = 0
7
+ MINOR = 1
8
8
  PATCH = 0
9
9
 
10
10
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-sensu
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.1.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: 2018-07-19 00:00:00.000000000 Z
11
+ date: 2018-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chronic_duration
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '2.5'
47
+ version: '2.6'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '2.5'
54
+ version: '2.6'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement