sensu-plugins-docker 3.1.0 → 3.1.1

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: 8841539510e3098e3c808b8774b61cde67707ce91c56e03a4024145371e062ae
4
- data.tar.gz: a6c66042b42c2927d87e7985a63dc3819409183ea24c66fde1fe4334f547c867
3
+ metadata.gz: af6f2911ce7a968337e6f0eb55df60a0ce0b6fad80311721eaf67c44c9265f62
4
+ data.tar.gz: 1a3f06bf388e2d0fb3e9af539c43b46204395805a8059c3c265152cc5809b3f7
5
5
  SHA512:
6
- metadata.gz: c5df4424ffa14dd44f5c9f92dc0f9347b5d352fe8ec2c8767f2ee73a478ab02b5d3883d837b5acccefa7e7068a507b3fa9a1e496088bfb0b57afd50a37648d78
7
- data.tar.gz: f7e9772c95e1ac6e390c18075c0e62ea43a21bf9942be8e61a97c3836858b2fba1fb9295758a931bce9a97fa8499123bc67b2bd7ae5bc378b1f2dfde9200a1c7
6
+ metadata.gz: b3ea13e3a2e64d5b7ae1c487612ce9414ef175956bda1903d0784d5aa5583f670dcf6957e8d12e7cd401614a2c1b1b42a4492fcb08bf80c1f2b3c9c963cd645c
7
+ data.tar.gz: 711d11664a2d40cd52797909f7dd161e8e1782546ecc4a5ec267e1d126179b87592cb6cf325b1d2db667c4fd33a8f75322f60b250e51224d91af3c942a5c1815
@@ -6,6 +6,10 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [3.1.1] - 2018
10
+ ### Fixed
11
+ - check-container-logs.rb: fix nil.gsub condition on empty log lines
12
+
9
13
  ## [3.1.0] - 2018-05-07
10
14
  ### Added
11
15
  - intergration test for container check (@antonidabek)
@@ -146,7 +150,8 @@ changes some options. Review your check commands before deploying this version.
146
150
  ### Added
147
151
  - initial release
148
152
 
149
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-docker/compare/3.1.0...HEAD
153
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-docker/compare/3.1.1...HEAD
154
+ [3.1.1]: https://github.com/sensu-plugins/sensu-plugins-docker/compare/3.1.0...3.1.1
150
155
  [3.1.0]: https://github.com/sensu-plugins/sensu-plugins-docker/compare/3.0.0...3.1.0
151
156
  [3.0.0]: https://github.com/sensu-plugins/sensu-plugins-docker/compare/2.0.0...3.0.0
152
157
  [2.0.0]: https://github.com/sensu-plugins/sensu-plugins-docker/compare/1.5.0...2.0.0
@@ -138,7 +138,7 @@ class ContainerLogChecker < Sensu::Plugin::Check::CLI
138
138
  lines = raw_logs.split("\n")
139
139
  lines.map! do |line|
140
140
  # Check only logs generated with the 8 bits control
141
- if !line.nil? && /^(0|1|2)000$/ =~ line.byteslice(0, 4).unpack('C*').join('')
141
+ if !line.nil? && line.bytesize > 8 && /^(0|1|2)000$/ =~ line.byteslice(0, 4).unpack('C*').join('')
142
142
  # Remove the first 8 bits and ansii colors too
143
143
  line.byteslice(8, line.bytesize).gsub(/\x1b\[[\d;]*?m/, '')
144
144
  end
@@ -2,7 +2,7 @@ module SensuPluginsDocker
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 1
5
- PATCH = 0
5
+ PATCH = 1
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-docker
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
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-05-08 00:00:00.000000000 Z
11
+ date: 2018-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin
@@ -260,7 +260,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
260
260
  version: '0'
261
261
  requirements: []
262
262
  rubyforge_project:
263
- rubygems_version: 2.7.6
263
+ rubygems_version: 2.7.7
264
264
  signing_key:
265
265
  specification_version: 4
266
266
  summary: Sensu plugins for docker