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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f446c9d67d14691c13fb12f9a137df57c4cc4912
4
- data.tar.gz: b56592205561d5173396e1c8863bff8bb771efac
3
+ metadata.gz: f37f69d77cf1f03803a68c483ca50a341100e602
4
+ data.tar.gz: c43a3b9c67318d4e58641ac7cf91376a067ac7c5
5
5
  SHA512:
6
- metadata.gz: f70467283437ac47148f589bce3d2c791696009028a6183797f12c3fa6de80ab7806155c3aef0da30e06fbe223e8b6c35b1697511e9a1e8e57c8cea0d368d66f
7
- data.tar.gz: a1c405509ded74385fe8d8160710a5692f51a99c36c595e0585b727217159bd7ab7ebec11e6bddc1a4469391b068e6a88eb43d57bb379affc49e1dc13ba2be3e
6
+ metadata.gz: b44699c57d1d9e6135697d646211b9f98aa1c07f1742d8eb08a6d82440dce462bc25a0ee7004e53e77299b399a8795ae6efe93c2742ba49d6dce4c8d8c7e25b4
7
+ data.tar.gz: 55670a7677c39f5dd8aca067b9e7e0e5ebb0dfc783deba3772a047c30daf1602826272f6001d74ddc9ec7c56403d70507a2bda6b712c46790f77a786b4a1073f
data/README.md CHANGED
@@ -52,7 +52,7 @@ class Fancy < Nagios::Plugin
52
52
  end
53
53
 
54
54
  # Optional method that is executed once before determining the status.
55
- def chec
55
+ def check
56
56
  @number = rand(10)
57
57
  end
58
58
 
@@ -1,6 +1,6 @@
1
1
  module Nagios
2
2
  class Plugin
3
- VERSION = '3.0.1'
3
+ VERSION = '3.0.2'
4
4
 
5
5
  EXIT_CODE =
6
6
  { unknown: 3,
@@ -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 first' do
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(:output).ordered
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.1
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 00:00:00.000000000 Z
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.1
110
+ summary: nagiosplugin-3.0.2
111
111
  test_files:
112
112
  - features/nagiosplugin_usage.feature
113
113
  - features/support/env.rb