sensu-plugins-bluepill 0.0.3 → 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: cb5f912c0bf346f1dc3174dadb9a2e9bb9aed244
4
- data.tar.gz: 387a699e8dc40750f19074262e83c006874b6a44
3
+ metadata.gz: c8a1121d533a8c3546ab573f7d3bd3f05ebbe74f
4
+ data.tar.gz: 5f563a602978550e9282e84e7c5454b0e604a67f
5
5
  SHA512:
6
- metadata.gz: 815bde24df614bed526267ee83dbed46af0e683848b84eadcf61ac5839a78a8294d9210af4a392256c88c1309787e15d4a32bcb802211d58d3ea2180d0425fd0
7
- data.tar.gz: 072a7e1c71b9e8daa35f3cf947457db951d17662254b1c7d7a29f0e5d72f40a07b215e2f425e8a810f8da56d1ad13f80d6dfe2cd0f8dca159683df646230dd63
6
+ metadata.gz: e85ccafad2b045a5e4011c6958fa19b080355a45cc625e2a1a5161b5398a75de842b666739997a10662d16fbd20acf2f4912801626be4d593d2a5b313394b664
7
+ data.tar.gz: a349e9b94af07c0fd43323ca4877cca1d2e0f883cb18b18ba4231f1cd7ab53476efd540c717879fc6bfcfb8b2cfd644529c4cc73bd36dc9557e06cda1ae502a3
data/CHANGELOG.md CHANGED
@@ -1,9 +1,21 @@
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][unreleased]
6
+ ## [Unreleased]
7
+
8
+ ## [1.0.0] - 2017-06-28
9
+ ### Added
10
+ - Support for Ruby 2.3 and 2.4 (@eheydrick)
11
+
12
+ ### Removed
13
+ - Support for Ruby < 2 (@eheydrick)
14
+
15
+ ### Changed
16
+ - Loosen `sensu-plugin` dependency to `~> 1.2` (@eheydrick)
17
+ - Update to Rubocop `0.40` and cleanup (@eheydrick)
18
+ - Update travis deploy (@eheydrick)
7
19
 
8
20
  ## [0.0.3] - 2015-07-14
9
21
  ### Changed
@@ -22,3 +34,7 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
22
34
  ### Changed
23
35
  - removed cruft from /lib
24
36
 
37
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-bluepill/compare/1.0.0...HEAD
38
+ [1.0.0]: https://github.com/sensu-plugins/sensu-plugins-bluepill/compare/0.0.3...1.0.0
39
+ [0.0.3]: https://github.com/sensu-plugins/sensu-plugins-bluepill/compare/0.0.2...0.0.3
40
+ [0.0.2]: https://github.com/sensu-plugins/sensu-plugins-bluepill/compare/0.0.1...0.0.2
data/README.md CHANGED
@@ -1,11 +1,10 @@
1
1
  ## Sensu-Plugins-bluepill
2
2
 
3
- [ ![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-bluepill.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-bluepill)
3
+ [![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-bluepill.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-bluepill)
4
4
  [![Gem Version](https://badge.fury.io/rb/sensu-plugins-bluepill.svg)](http://badge.fury.io/rb/sensu-plugins-bluepill)
5
5
  [![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-bluepill/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-bluepill)
6
6
  [![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-bluepill/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-bluepill)
7
7
  [![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-bluepill.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-bluepill)
8
- [ ![Codeship Status for sensu-plugins/sensu-plugins-bluepill](https://codeship.com/projects/9d036de0-cd24-0132-033d-2698d59c4ad3/status?branch=master)](https://codeship.com/projects/76229)
9
8
 
10
9
  ## Functionality
11
10
 
@@ -16,6 +15,6 @@
16
15
 
17
16
  ## Installation
18
17
 
19
- [Installation and Setup](https://github.com/sensu-plugins/documentation/blob/master/user_docs/installation_instructions.md)
18
+ [Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html)
20
19
 
21
20
  ## Notes
@@ -63,7 +63,7 @@ class CheckBluepill < Sensu::Plugin::Check::CLI
63
63
  orig
64
64
  end
65
65
 
66
- def bluepill_application_status(name) # rubocop:disable all
66
+ def bluepill_application_status(name)
67
67
  out = { name: [], ok: [], warn: [], crit: [], err: [] }
68
68
  app_status = `#{config[:sudo] ? 'sudo ' : nil }bluepill #{name} status 2<&1`
69
69
  name = 'Unknown' if name == ''
@@ -71,7 +71,7 @@ class CheckBluepill < Sensu::Plugin::Check::CLI
71
71
  puts "***** DEBUG: bluepill #{name} status *****\n#{app_status}" if config[:debug]
72
72
  processes_found = 0
73
73
  # #YELLOW
74
- app_status.each_line do |line| # rubocop:disable Style/Next
74
+ app_status.each_line do |line|
75
75
  if line =~ /(pid:)/
76
76
  processes_found += 1
77
77
  case line
@@ -95,7 +95,7 @@ class CheckBluepill < Sensu::Plugin::Check::CLI
95
95
  out
96
96
  end
97
97
 
98
- def parse_output(out) # rubocop:disable all
98
+ def parse_output(out)
99
99
  puts "***** DEBUG: Full output hash ******\n#{out.inspect}" if config[:debug]
100
100
  if !out[:crit].empty?
101
101
  critical "Bluepill process(es) critical:\n#{out[:crit].join("\n")}"
@@ -108,11 +108,11 @@ class CheckBluepill < Sensu::Plugin::Check::CLI
108
108
  end
109
109
  end
110
110
 
111
- def run # rubocop:disable all
111
+ def run
112
112
  # Check if Bluepill is installed
113
113
  `which bluepill`
114
114
  # #YELLOW
115
- unless $CHILD_STATUS.success? # rubocop:disable IfUnlessModifier
115
+ unless $CHILD_STATUS.success?
116
116
  ok 'bluepill not installed'
117
117
  end
118
118
 
@@ -120,7 +120,7 @@ class CheckBluepill < Sensu::Plugin::Check::CLI
120
120
 
121
121
  if config[:apps]
122
122
  requested_apps = config[:apps].split(',').map(&:strip) || []
123
- puts "***** DEBUG: requested applications: #{requested_apps }*****" if config[:debug]
123
+ puts "***** DEBUG: requested applications: #{requested_apps}*****" if config[:debug]
124
124
  requested_apps.each do |a|
125
125
  out = merge_output(out, bluepill_application_status(a))
126
126
  end
@@ -142,7 +142,7 @@ class CheckBluepill < Sensu::Plugin::Check::CLI
142
142
  # We assume that no found applications is OK, since we only
143
143
  # get here if -a option is unset.
144
144
  # #YELLOW
145
- bluepill_status.each_line do |line| # rubocop:disable Style/Next
145
+ bluepill_status.each_line do |line|
146
146
  if line =~ /^\s \d\.\s/
147
147
  app_name = line.split(/^\s \d\.\s/)[1].strip
148
148
  # #YELLOW
@@ -1,8 +1,8 @@
1
1
  module SensuPluginsBluepill
2
2
  module Version
3
- MAJOR = 0
3
+ MAJOR = 1
4
4
  MINOR = 0
5
- PATCH = 3
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-bluepill
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
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-07-14 00:00:00.000000000 Z
10
+ cert_chain: []
11
+ date: 2017-06-29 00:00:00.000000000 Z
34
12
  dependencies:
35
13
  - !ruby/object:Gem::Dependency
36
14
  name: english
@@ -50,142 +28,142 @@ 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
- name: codeclimate-test-reporter
42
+ name: bundler
65
43
  requirement: !ruby/object:Gem::Requirement
66
44
  requirements:
67
45
  - - "~>"
68
46
  - !ruby/object:Gem::Version
69
- version: '0.4'
47
+ version: '1.7'
70
48
  type: :development
71
49
  prerelease: false
72
50
  version_requirements: !ruby/object:Gem::Requirement
73
51
  requirements:
74
52
  - - "~>"
75
53
  - !ruby/object:Gem::Version
76
- version: '0.4'
54
+ version: '1.7'
77
55
  - !ruby/object:Gem::Dependency
78
- name: rubocop
56
+ name: codeclimate-test-reporter
79
57
  requirement: !ruby/object:Gem::Requirement
80
58
  requirements:
81
- - - '='
59
+ - - "~>"
82
60
  - !ruby/object:Gem::Version
83
- version: 0.30.0
61
+ version: '0.4'
84
62
  type: :development
85
63
  prerelease: false
86
64
  version_requirements: !ruby/object:Gem::Requirement
87
65
  requirements:
88
- - - '='
66
+ - - "~>"
89
67
  - !ruby/object:Gem::Version
90
- version: 0.30.0
68
+ version: '0.4'
91
69
  - !ruby/object:Gem::Dependency
92
- name: rspec
70
+ name: github-markup
93
71
  requirement: !ruby/object:Gem::Requirement
94
72
  requirements:
95
73
  - - "~>"
96
74
  - !ruby/object:Gem::Version
97
- version: '3.1'
75
+ version: '1.3'
98
76
  type: :development
99
77
  prerelease: false
100
78
  version_requirements: !ruby/object:Gem::Requirement
101
79
  requirements:
102
80
  - - "~>"
103
81
  - !ruby/object:Gem::Version
104
- version: '3.1'
82
+ version: '1.3'
105
83
  - !ruby/object:Gem::Dependency
106
- name: bundler
84
+ name: pry
107
85
  requirement: !ruby/object:Gem::Requirement
108
86
  requirements:
109
87
  - - "~>"
110
88
  - !ruby/object:Gem::Version
111
- version: '1.7'
89
+ version: '0.10'
112
90
  type: :development
113
91
  prerelease: false
114
92
  version_requirements: !ruby/object:Gem::Requirement
115
93
  requirements:
116
94
  - - "~>"
117
95
  - !ruby/object:Gem::Version
118
- version: '1.7'
96
+ version: '0.10'
119
97
  - !ruby/object:Gem::Dependency
120
- name: rake
98
+ name: rubocop
121
99
  requirement: !ruby/object:Gem::Requirement
122
100
  requirements:
123
101
  - - "~>"
124
102
  - !ruby/object:Gem::Version
125
- version: '10.0'
103
+ version: 0.40.0
126
104
  type: :development
127
105
  prerelease: false
128
106
  version_requirements: !ruby/object:Gem::Requirement
129
107
  requirements:
130
108
  - - "~>"
131
109
  - !ruby/object:Gem::Version
132
- version: '10.0'
110
+ version: 0.40.0
133
111
  - !ruby/object:Gem::Dependency
134
- name: github-markup
112
+ name: rspec
135
113
  requirement: !ruby/object:Gem::Requirement
136
114
  requirements:
137
115
  - - "~>"
138
116
  - !ruby/object:Gem::Version
139
- version: '1.3'
117
+ version: '3.1'
140
118
  type: :development
141
119
  prerelease: false
142
120
  version_requirements: !ruby/object:Gem::Requirement
143
121
  requirements:
144
122
  - - "~>"
145
123
  - !ruby/object:Gem::Version
146
- version: '1.3'
124
+ version: '3.1'
147
125
  - !ruby/object:Gem::Dependency
148
- name: redcarpet
126
+ name: rake
149
127
  requirement: !ruby/object:Gem::Requirement
150
128
  requirements:
151
129
  - - "~>"
152
130
  - !ruby/object:Gem::Version
153
- version: '3.2'
131
+ version: '10.0'
154
132
  type: :development
155
133
  prerelease: false
156
134
  version_requirements: !ruby/object:Gem::Requirement
157
135
  requirements:
158
136
  - - "~>"
159
137
  - !ruby/object:Gem::Version
160
- version: '3.2'
138
+ version: '10.0'
161
139
  - !ruby/object:Gem::Dependency
162
- name: yard
140
+ name: redcarpet
163
141
  requirement: !ruby/object:Gem::Requirement
164
142
  requirements:
165
143
  - - "~>"
166
144
  - !ruby/object:Gem::Version
167
- version: '0.8'
145
+ version: '3.2'
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.8'
152
+ version: '3.2'
175
153
  - !ruby/object:Gem::Dependency
176
- name: pry
154
+ name: yard
177
155
  requirement: !ruby/object:Gem::Requirement
178
156
  requirements:
179
157
  - - "~>"
180
158
  - !ruby/object:Gem::Version
181
- version: '0.10'
159
+ version: '0.8'
182
160
  type: :development
183
161
  prerelease: false
184
162
  version_requirements: !ruby/object:Gem::Requirement
185
163
  requirements:
186
164
  - - "~>"
187
165
  - !ruby/object:Gem::Version
188
- version: '0.10'
166
+ version: '0.8'
189
167
  description: Bluepill process supervisor plugins
190
168
  email: "<sensu-users@googlegroups.com>"
191
169
  executables:
@@ -203,7 +181,7 @@ homepage: https://github.com/sensu-plugins/sensu-plugins-bluepill
203
181
  licenses:
204
182
  - MIT
205
183
  metadata:
206
- maintainer: ''
184
+ maintainer: sensu-plugin
207
185
  development_status: unmaintained
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.6
206
+ rubygems_version: 2.4.5
229
207
  signing_key:
230
208
  specification_version: 4
231
209
  summary: Bluepill process supervisor plugins
checksums.yaml.gz.sig DELETED
Binary file
data.tar.gz.sig DELETED
Binary file
metadata.gz.sig DELETED
Binary file