nagiosplugin 3.0.1 → 3.0.2
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 +4 -4
- data/README.md +1 -1
- data/lib/nagios/plugin.rb +1 -1
- data/spec/nagios/plugin_spec.rb +3 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f37f69d77cf1f03803a68c483ca50a341100e602
|
4
|
+
data.tar.gz: c43a3b9c67318d4e58641ac7cf91376a067ac7c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b44699c57d1d9e6135697d646211b9f98aa1c07f1742d8eb08a6d82440dce462bc25a0ee7004e53e77299b399a8795ae6efe93c2742ba49d6dce4c8d8c7e25b4
|
7
|
+
data.tar.gz: 55670a7677c39f5dd8aca067b9e7e0e5ebb0dfc783deba3772a047c30daf1602826272f6001d74ddc9ec7c56403d70507a2bda6b712c46790f77a786b4a1073f
|
data/README.md
CHANGED
data/lib/nagios/plugin.rb
CHANGED
data/spec/nagios/plugin_spec.rb
CHANGED
@@ -8,6 +8,7 @@ module Nagios
|
|
8
8
|
before do
|
9
9
|
allow(plugin).to receive_messages(
|
10
10
|
output: '',
|
11
|
+
status: :unknown,
|
11
12
|
check: nil)
|
12
13
|
allow(Plugin).to receive_messages(
|
13
14
|
puts: nil,
|
@@ -50,10 +51,10 @@ module Nagios
|
|
50
51
|
expect(Plugin).to have_received(:new).with(42, fancy: true)
|
51
52
|
end
|
52
53
|
|
53
|
-
it 'calls the plugin check callback
|
54
|
+
it 'calls the plugin check callback before fetching the status' do
|
54
55
|
Plugin.run!
|
55
56
|
expect(plugin).to have_received(:check).ordered
|
56
|
-
expect(plugin).to have_received(:
|
57
|
+
expect(plugin).to have_received(:status).ordered
|
57
58
|
end
|
58
59
|
|
59
60
|
context 'when an exception was raised' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nagiosplugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Björn Albers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -107,7 +107,7 @@ rubyforge_project:
|
|
107
107
|
rubygems_version: 2.2.2
|
108
108
|
signing_key:
|
109
109
|
specification_version: 4
|
110
|
-
summary: nagiosplugin-3.0.
|
110
|
+
summary: nagiosplugin-3.0.2
|
111
111
|
test_files:
|
112
112
|
- features/nagiosplugin_usage.feature
|
113
113
|
- features/support/env.rb
|