nagiosplugin 0.0.7 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -3,3 +3,4 @@
3
3
  Gemfile.lock
4
4
  pkg/*
5
5
  tmp/*
6
+ vendor/*
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # NagiosPlugin
2
2
 
3
- NagiosPlugin is a simple framework for writing [Nagios](http://www.nagios.org/) Plugins.
3
+ A simple framework for writing [Nagios](http://www.nagios.org/) Plugins.
4
4
 
5
5
  ## Installation
6
6
 
@@ -8,42 +8,35 @@ NagiosPlugin is a simple framework for writing [Nagios](http://www.nagios.org/)
8
8
 
9
9
  ## Usage
10
10
 
11
- Create your executable plugin (which will be called by nagios), `require "nagiosplugin"` and subclass from `NagiosPlugin::Plugin`.
12
- You must define the methods `critical?` and `warning?` which determine the plugin status during a check based on their boolean return value (`ok?` returns true by default but can be overwritten).
11
+ Create your executable file (which will be called by nagios), `require
12
+ 'nagiosplugin'` and subclass from `NagiosPlugin::Plugin`.
13
13
 
14
- The optional method `measure` will be called *first* on every check to take samples.
15
- Additional plugin output after the service name and status can be printed by defining `output` with some fancy content.
16
-
17
- Run `check!` on your *class* to ensure a proper plugin output (= stdout & exit status).
14
+ Then define a check method in your class which figures out the status
15
+ for what you want to check and calls the corresponding status method
16
+ (`ok`, `warning`, `critical` or `unknown`) to display a status message
17
+ and exit imediately.
18
18
 
19
19
  Here's a simple example plugin named `check_u2d`:
20
20
 
21
- ````Ruby
21
+ ```Ruby
22
22
  #!/usr/bin/env ruby
23
23
  require 'nagiosplugin'
24
24
 
25
25
  class UnicornToDwarfRatio < NagiosPlugin::Plugin
26
- def measure
27
- @unicorns, @dwarves = ... # The algorithm is your homework.
28
- end
29
-
30
- def critical?
31
- @unicorns < @dwarves
32
- end
33
-
34
- def warning?
35
- @unicorns == @dwarves
36
- end
37
-
38
- def output
39
- "#{unicorns.to_f/@dwarves.to_f} unicorns/dwarves"
40
- end
26
+ def check
27
+ unicorn_to_dwarf_ratio = ... # We still need an alogrithm for this.
28
+ msg = "#{unicorn_to_dwarf_ratio} unicorns/dwarves"
29
+
30
+ critical(msg) if unicorn_to_dwarf_ratio < 0.0
31
+ warning(msg) if unicorn_to_dwarf_ratio == 0.0
32
+ ok(msg)
33
+ end
41
34
  end
42
35
 
43
- UnicornToDwarfRatio.check!
36
+ UnicornToDwarfRatio.run
44
37
  ```
45
38
 
46
- Please also take a look at features to see what's going on...
39
+ Take a look below `features` to see what's going on...
47
40
 
48
41
  ## Note on Patches/Pull Requests
49
42
 
@@ -56,4 +49,4 @@ Please also take a look at features to see what's going on...
56
49
 
57
50
  ## Copyright
58
51
 
59
- Copyright (c) 2011 Björn Albers. See LICENSE for details.
52
+ Copyright (c) 2011-2012 Björn Albers. See LICENSE for details.
data/Rakefile CHANGED
@@ -1,14 +1,14 @@
1
- require "bundler/gem_tasks"
1
+ require 'bundler/gem_tasks'
2
2
 
3
- require "cucumber/rake/task"
3
+ require 'cucumber/rake/task'
4
4
  Cucumber::Rake::Task.new(:features) do |t|
5
- t.cucumber_opts = "--format pretty"
5
+ t.cucumber_opts = '--format pretty'
6
6
  end
7
7
 
8
- require "rspec/core/rake_task"
8
+ require 'rspec/core/rake_task'
9
9
  RSpec::Core::RakeTask.new do |t|
10
10
  t.rspec_opts = %w[--color]
11
- t.pattern = "./spec/**/*_spec.rb"
11
+ t.pattern = './spec/**/*_spec.rb'
12
12
  end
13
13
 
14
14
  task :default => :features
@@ -1,46 +1,50 @@
1
1
  Feature: Plugin Output
2
2
 
3
- In order to comply with official nagios plugin development guidelines
4
- As a sysadmin building my own nagios plugins
5
- I want to return a nagios compatible plugin output
6
-
7
- Scenario Outline: CRITICAL, WARNING and OK
8
- When I run a plugin with the following methods:
9
- """
10
- def critical?; <crit> end
11
- def warning?; <warn> end
12
- """
13
- Then the exit status should be <code>
14
- And the plugin should print "<status>"
15
-
16
- Examples:
17
- | crit | warn | code | status |
18
- | true | true | 2 | CRITICAL |
19
- | true | false | 2 | CRITICAL |
20
- | false | true | 1 | WARNING |
21
- | false | false | 0 | OK |
22
-
23
- Scenario Outline: UNKNOWN when all status checks return false
24
- When I run a plugin with the following methods:
25
- """
26
- def critical?; false end
27
- def warning?; false end
28
- def ok?; <ok> end
29
- """
30
- Then the exit status should be <code>
31
- And the plugin should print "<status>"
32
-
33
- Examples:
34
- | ok | code | status |
35
- | true | 0 | OK |
36
- | false | 3 | UNKNOWN: All status checks returned false! |
37
-
38
- Scenario: UNKNOWN when an exception was raised
39
- When I run a plugin with the following methods:
40
- """
41
- def critical?
42
- raise "OOPS!"
43
- end
44
- """
45
- Then the exit status should be 3
46
- And the plugin should print "UNKNOWN: OOPS!"
3
+ In order to comply with official nagios plugin development guidelines
4
+ As a sysadmin building my own nagios plugins
5
+ I want to return a nagios compatible plugin output
6
+
7
+ Scenario Outline: UNKNOWN, CRITICAL, WARNING and OK
8
+ Given a file named "check_foo.rb" with:
9
+ """
10
+ require 'nagiosplugin'
11
+
12
+ class Foo < NagiosPlugin::Plugin
13
+ def check
14
+ case ARGV.first
15
+ when 'UNKNOWN' then unknown 'no clue, sorry'
16
+ when 'CRITICAL' then critical 'booooom!'
17
+ when 'WARNING' then warning 'it could be worse'
18
+ when 'OK' then ok 'all is fine'
19
+ end
20
+ end
21
+ end
22
+
23
+ Foo.run
24
+ """
25
+ When I run `ruby check_foo.rb <status>`
26
+ Then the exit status should be <code>
27
+ And the stdout should contain "<status>"
28
+
29
+ Examples:
30
+ | status | code |
31
+ | UNKNOWN | 3 |
32
+ | CRITICAL | 2 |
33
+ | WARNING | 1 |
34
+ | OK | 0 |
35
+
36
+ Scenario: UNKNOWN when no status method was called
37
+ Given a file named "check_foo" with:
38
+ """
39
+ require 'nagiosplugin'
40
+
41
+ class Foo < NagiosPlugin::Plugin
42
+ def check
43
+ end
44
+ end
45
+
46
+ Foo.run
47
+ """
48
+ When I run `ruby check_foo`
49
+ Then the exit status should be 3
50
+ And the stdout should contain "UNKNOWN"
@@ -6,7 +6,7 @@ When /^I run a plugin with the following methods:$/ do |methods|
6
6
  class Foo < NagiosPlugin::Plugin
7
7
  #{methods}
8
8
  end
9
- Foo.check!
9
+ Foo.new.run
10
10
  """
11
11
  When I run `ruby check_foo`
12
12
  }
@@ -1 +1 @@
1
- require "aruba/cucumber"
1
+ require 'aruba/cucumber'
data/lib/nagiosplugin.rb CHANGED
@@ -1,2 +1,2 @@
1
- require "nagiosplugin/version"
2
- require "nagiosplugin/plugin"
1
+ require 'nagiosplugin/version'
2
+ require 'nagiosplugin/plugin'
@@ -1,61 +1,67 @@
1
1
  module NagiosPlugin
2
- EXIT_CODES = {
3
- :ok => 0,
4
- :warning => 1,
5
- :critical => 2,
6
- :unknown => 3,
7
- }
8
-
9
- PluginError = Class.new(StandardError)
10
-
11
2
  class Plugin
12
- def self.check!
13
- plugin = self.new
14
- plugin.check
15
- rescue Exception => e
16
- puts [plugin.prefix, e.to_s].join(' ')
17
- else
18
- puts plugin.message
19
- ensure
20
- exit plugin.code
3
+ # All allowed statuses sorted by their corresponding exit status.
4
+ STATUS = [:ok, :warning, :critical, :unknown]
5
+
6
+ # A custom status error which will be raised through the status methods.
7
+ class StatusError < StandardError
8
+ # @param [Symbol] status the status (must be {NagiosPlugin::Plugin::STATUS a valid status})
9
+ # @param [String] message the message you want to display
10
+ def initialize(status, message)
11
+ @status, @message = status.to_sym, message
12
+ end
13
+
14
+ # @return [Symbol] the status
15
+ def status
16
+ (STATUS.include?(@status) && @status) || STATUS.last
17
+ end
18
+
19
+ # @return [String] the status and message
20
+ def to_s
21
+ "#{status.to_s.upcase}: #{@message}"
22
+ end
23
+
24
+ # @return [Fixnum] the status converted into an exit code
25
+ def to_i
26
+ STATUS.find_index(status)
27
+ end
21
28
  end
22
-
23
- def check
24
- measure if respond_to?(:measure)
25
- set_status
26
- rescue Exception
27
- @status = :unknown
28
- raise
29
+
30
+ class << self
31
+ # Create new instance and run it.
32
+ def run(*args)
33
+ self.new(*args).run
34
+ end
29
35
  end
30
-
31
- def message
32
- [prefix, (output if respond_to?(:output))].compact.join(' ')
33
- end
34
-
35
- def prefix
36
- "#{self.class.name.upcase} #{status.to_s.upcase}:"
37
- end
38
-
39
- def code
40
- EXIT_CODES[status]
41
- end
42
-
43
- def status
44
- @status || :unknown
45
- end
46
-
47
- alias_method :to_s, :message
48
- alias_method :to_i, :code
49
-
50
- protected
51
-
52
- def set_status
53
- @status = [:critical, :warning, :ok].select { |s| send("#{s}?") }.first
54
- raise PluginError, "All status checks returned false!" if @status.nil?
55
- end
56
-
57
- def ok?
58
- true
36
+
37
+ # The methods for each status.
38
+ #
39
+ # They should be called in your check method and will raise an appropriate
40
+ # StatusError.
41
+ #
42
+ # @param [String] message
43
+ STATUS.each do |status|
44
+ define_method(status) do |message|
45
+ raise StatusError.new(status, message)
46
+ end
59
47
  end
48
+
49
+ # Run check and return result in a nagios-compatible format.
50
+ #
51
+ # It will...
52
+ # - execute your check method
53
+ # - output the result in a nagios-compatible format (SERVICE STATUS: Message)
54
+ # - exit according to the status
55
+ def run
56
+ check
57
+ rescue StatusError => e
58
+ rescue => e
59
+ e = StatusError.new(:unknown, ([e.to_s, nil] + e.backtrace).join("\n"))
60
+ else
61
+ e = StatusError.new(:unknown, 'no status method was called')
62
+ ensure
63
+ puts [self.class.name.upcase, e.to_s].join(' ')
64
+ exit e.to_i
65
+ end
60
66
  end
61
67
  end
@@ -1,3 +1,3 @@
1
1
  module NagiosPlugin
2
- VERSION = "0.0.7"
2
+ VERSION = '1.0.0'
3
3
  end
data/nagiosplugin.gemspec CHANGED
@@ -1,25 +1,25 @@
1
1
  # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "nagiosplugin/version"
2
+ $:.push File.expand_path('../lib', __FILE__)
3
+ require 'nagiosplugin/version'
4
4
 
5
5
  Gem::Specification.new do |s|
6
- s.name = "nagiosplugin"
6
+ s.name = 'nagiosplugin'
7
7
  s.version = NagiosPlugin::VERSION
8
- s.authors = ["Björn Albers"]
9
- s.email = ["bjoernalbers@googlemail.com"]
10
- s.homepage = "https://github.com/bjoernalbers/nagiosplugin"
8
+ s.authors = ['Björn Albers']
9
+ s.email = ['bjoernalbers@googlemail.com']
10
+ s.homepage = 'https://github.com/bjoernalbers/nagiosplugin'
11
11
  s.summary = "#{s.name}-#{s.version}"
12
- s.description = "Yet another framework for writing Nagios Plugins"
12
+ s.description = 'A simple framework for writing Nagios Plugins'
13
13
 
14
14
  s.files = `git ls-files`.split("\n")
15
15
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
16
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
- s.require_paths = ["lib"]
17
+ s.require_paths = ['lib']
18
18
 
19
- s.add_development_dependency "rake"
20
- s.add_development_dependency "cucumber"
21
- s.add_development_dependency "aruba"
22
- s.add_development_dependency "guard-cucumber"
23
- s.add_development_dependency "rspec"
24
- s.add_development_dependency "guard-rspec"
19
+ s.add_development_dependency 'rake'
20
+ s.add_development_dependency 'cucumber'
21
+ s.add_development_dependency 'aruba'
22
+ s.add_development_dependency 'guard-cucumber'
23
+ s.add_development_dependency 'rspec'
24
+ s.add_development_dependency 'guard-rspec'
25
25
  end
@@ -1,68 +1,120 @@
1
- require "spec_helper"
1
+ require 'spec_helper'
2
2
 
3
3
  describe NagiosPlugin::Plugin do
4
- before :each do
5
- @plugin = NagiosPlugin::Plugin.new
4
+ before do
5
+ class MyPlugin < NagiosPlugin::Plugin; end
6
+ @plugin = MyPlugin.new
6
7
  end
7
-
8
- it "should be unknown when not checked yet" do
9
- @plugin.status.should eql(:unknown)
10
- end
11
-
12
- [
13
- {:critical? => false, :warning? => false, :status => :ok },
14
- {:critical? => false, :warning? => true, :status => :warning },
15
- {:critical? => true, :warning? => false, :status => :critical},
16
- {:critical? => true, :warning? => true, :status => :critical}
17
- ].each do |result|
18
- it "should be #{result[:status].to_s} if checked so" do
19
- @plugin.stub(:critical?).and_return(result[:critical?])
20
- @plugin.stub(:warning?).and_return(result[:warning?])
21
- @plugin.check
22
- @plugin.status.should eql(result[:status])
8
+
9
+ describe '#run' do
10
+ before do
11
+ @plugin.stub(:puts)
12
+ @plugin.stub(:exit)
23
13
  end
24
- end
25
-
26
- it "should raise when all checks return false" do
27
- [:critical?, :warning?, :ok?].each do |m|
28
- @plugin.stub(m).and_return(false)
14
+
15
+ it 'should run the check method' do
16
+ @plugin.should_receive(:check).with(no_args)
17
+ @plugin.run
18
+ end
19
+
20
+ it 'should output the class name' do
21
+ def @plugin.check; end
22
+ @plugin.should_receive(:puts).with(/MYPLUGIN/)
23
+ @plugin.run
24
+ end
25
+
26
+ context 'when an unknown exception was raised' do
27
+ before do
28
+ StandardError.any_instance.stub(:backtrace).and_return(%w[foo bar baz])
29
+ def @plugin.check
30
+ raise StandardError, 'Oops!'
31
+ end
32
+ end
33
+
34
+ it 'should output the execptions message' do
35
+ @plugin.should_receive(:puts).with(/Oops!/)
36
+ @plugin.run
37
+ end
38
+
39
+ it 'should output the exceptions backtrace' do
40
+ @plugin.should_receive(:puts).with(/foo\nbar\nbaz/)
41
+ @plugin.run
42
+ end
43
+
44
+ it 'should exit unknown' do
45
+ @plugin.should_receive(:exit).with(3)
46
+ @plugin.run
47
+ end
48
+ end
49
+
50
+ context 'when no exception was raised' do
51
+ before { def @plugin.check; end }
52
+
53
+ it 'should display a hint for the developer' do
54
+ @plugin.should_receive(:puts).with(/no status method was called/i)
55
+ @plugin.run
56
+ end
57
+
58
+ it 'should exit unknown' do
59
+ @plugin.should_receive(:exit).with(3)
60
+ @plugin.run
61
+ end
62
+ end
63
+
64
+ context 'when a status error was raised' do
65
+ before do
66
+ def @plugin.check
67
+ raise NagiosPlugin::Plugin::StatusError.new(:ok, 'hello, world.')
68
+ end
69
+ end
70
+
71
+ it 'should output the status type' do
72
+ @plugin.should_receive(:puts).with(/OK/)
73
+ @plugin.run
74
+ end
75
+
76
+ it 'should output the status message' do
77
+ @plugin.should_receive(:puts).with(/hello, world\./)
78
+ @plugin.run
79
+ end
80
+
81
+ it 'should exit with the exit status from status error' do
82
+ @plugin.should_receive(:exit).with(0)
83
+ @plugin.run
84
+ end
29
85
  end
30
- lambda { @plugin.check }.should raise_error(NagiosPlugin::PluginError)
31
- @plugin.status.should eql(:unknown)
32
86
  end
33
-
34
-
35
- it "should raise if check methods are undefined" do
36
- lambda { @plugin.check }.should raise_error(NoMethodError)
37
- @plugin.status.should eql(:unknown)
38
-
39
- @plugin.instance_exec { def critical?; false end }
40
- lambda { @plugin.check }.should raise_error(NoMethodError)
41
- @plugin.status.should eql(:unknown)
42
-
43
- @plugin.instance_exec { def warning?; false end }
44
- lambda { @plugin.check }.should_not raise_error(NoMethodError)
45
- @plugin.status.should_not eql(:unknown)
87
+ end
88
+
89
+
90
+ describe NagiosPlugin::Plugin::StatusError do
91
+ def create_status(status, msg = '')
92
+ NagiosPlugin::Plugin::StatusError.new(status, msg)
46
93
  end
47
-
48
- it "should also represent the status as exit code" do
49
- {
50
- :ok => 0,
51
- :warning => 1,
52
- :critical => 2,
53
- :unknown => 3
54
- }.each_pair do |status,code|
55
- @plugin.stub(:status).and_return(status)
56
- @plugin.code.should eql(code)
94
+
95
+ %w[ok warning critical unknown].each_with_index do |s,i|
96
+ context "when #{s}" do
97
+ before { @status = create_status(s.to_sym) }
98
+
99
+ it 'should include status in the exception message' do
100
+ @status.to_s.should include(s.upcase)
101
+ end
102
+
103
+ it "should convert to #{i}" do
104
+ @status.to_i.should eql(i)
105
+ end
57
106
  end
58
107
  end
59
-
60
- it "should alias to_s to message" do
61
- def @plugin.output; "hello, world" end
62
- @plugin.to_s.should eql(@plugin.message)
63
- end
64
-
65
- it "should alias to_i to code" do
66
- @plugin.to_i.should eql(@plugin.code)
108
+
109
+ context 'when initialized with invalid status' do
110
+ before { @status = create_status(:invalid) }
111
+
112
+ it 'should include unknown status in the exception message' do
113
+ @status.to_s.should include('UNKNOWN')
114
+ end
115
+
116
+ it 'should convert to 3' do
117
+ @status.to_i.should eql(3)
118
+ end
67
119
  end
68
120
  end
data/spec/spec_helper.rb CHANGED
@@ -1 +1 @@
1
- require "nagiosplugin"
1
+ require 'nagiosplugin'
metadata CHANGED
@@ -1,91 +1,117 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: nagiosplugin
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.7
3
+ version: !ruby/object:Gem::Version
4
+ hash: 23
5
5
  prerelease:
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 0
10
+ version: 1.0.0
6
11
  platform: ruby
7
- authors:
8
- - Björn Albers
12
+ authors:
13
+ - "Bj\xC3\xB6rn Albers"
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-01-13 00:00:00.000000000Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: rake
16
- requirement: &70198850133720 !ruby/object:Gem::Requirement
17
+
18
+ date: 2012-03-29 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ type: :development
22
+ requirement: &id001 !ruby/object:Gem::Requirement
17
23
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ hash: 3
28
+ segments:
29
+ - 0
30
+ version: "0"
31
+ prerelease: false
32
+ name: rake
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
22
35
  type: :development
36
+ requirement: &id002 !ruby/object:Gem::Requirement
37
+ none: false
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ hash: 3
42
+ segments:
43
+ - 0
44
+ version: "0"
23
45
  prerelease: false
24
- version_requirements: *70198850133720
25
- - !ruby/object:Gem::Dependency
26
46
  name: cucumber
27
- requirement: &70198850131720 !ruby/object:Gem::Requirement
28
- none: false
29
- requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
32
- version: '0'
47
+ version_requirements: *id002
48
+ - !ruby/object:Gem::Dependency
33
49
  type: :development
50
+ requirement: &id003 !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ hash: 3
56
+ segments:
57
+ - 0
58
+ version: "0"
34
59
  prerelease: false
35
- version_requirements: *70198850131720
36
- - !ruby/object:Gem::Dependency
37
60
  name: aruba
38
- requirement: &70198850130120 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ! '>='
42
- - !ruby/object:Gem::Version
43
- version: '0'
61
+ version_requirements: *id003
62
+ - !ruby/object:Gem::Dependency
44
63
  type: :development
64
+ requirement: &id004 !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ hash: 3
70
+ segments:
71
+ - 0
72
+ version: "0"
45
73
  prerelease: false
46
- version_requirements: *70198850130120
47
- - !ruby/object:Gem::Dependency
48
74
  name: guard-cucumber
49
- requirement: &70198850129120 !ruby/object:Gem::Requirement
50
- none: false
51
- requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
75
+ version_requirements: *id004
76
+ - !ruby/object:Gem::Dependency
55
77
  type: :development
78
+ requirement: &id005 !ruby/object:Gem::Requirement
79
+ none: false
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ hash: 3
84
+ segments:
85
+ - 0
86
+ version: "0"
56
87
  prerelease: false
57
- version_requirements: *70198850129120
58
- - !ruby/object:Gem::Dependency
59
88
  name: rspec
60
- requirement: &70198850128200 !ruby/object:Gem::Requirement
61
- none: false
62
- requirements:
63
- - - ! '>='
64
- - !ruby/object:Gem::Version
65
- version: '0'
89
+ version_requirements: *id005
90
+ - !ruby/object:Gem::Dependency
66
91
  type: :development
67
- prerelease: false
68
- version_requirements: *70198850128200
69
- - !ruby/object:Gem::Dependency
70
- name: guard-rspec
71
- requirement: &70198850127260 !ruby/object:Gem::Requirement
92
+ requirement: &id006 !ruby/object:Gem::Requirement
72
93
  none: false
73
- requirements:
74
- - - ! '>='
75
- - !ruby/object:Gem::Version
76
- version: '0'
77
- type: :development
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ hash: 3
98
+ segments:
99
+ - 0
100
+ version: "0"
78
101
  prerelease: false
79
- version_requirements: *70198850127260
80
- description: Yet another framework for writing Nagios Plugins
81
- email:
102
+ name: guard-rspec
103
+ version_requirements: *id006
104
+ description: A simple framework for writing Nagios Plugins
105
+ email:
82
106
  - bjoernalbers@googlemail.com
83
107
  executables: []
108
+
84
109
  extensions: []
110
+
85
111
  extra_rdoc_files: []
86
- files:
112
+
113
+ files:
87
114
  - .gitignore
88
- - .rvmrc
89
115
  - Gemfile
90
116
  - Guardfile
91
117
  - LICENSE
@@ -102,35 +128,38 @@ files:
102
128
  - spec/spec_helper.rb
103
129
  homepage: https://github.com/bjoernalbers/nagiosplugin
104
130
  licenses: []
131
+
105
132
  post_install_message:
106
133
  rdoc_options: []
107
- require_paths:
134
+
135
+ require_paths:
108
136
  - lib
109
- required_ruby_version: !ruby/object:Gem::Requirement
137
+ required_ruby_version: !ruby/object:Gem::Requirement
110
138
  none: false
111
- requirements:
112
- - - ! '>='
113
- - !ruby/object:Gem::Version
114
- version: '0'
115
- segments:
139
+ requirements:
140
+ - - ">="
141
+ - !ruby/object:Gem::Version
142
+ hash: 3
143
+ segments:
116
144
  - 0
117
- hash: -2385574504671783555
118
- required_rubygems_version: !ruby/object:Gem::Requirement
145
+ version: "0"
146
+ required_rubygems_version: !ruby/object:Gem::Requirement
119
147
  none: false
120
- requirements:
121
- - - ! '>='
122
- - !ruby/object:Gem::Version
123
- version: '0'
124
- segments:
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ hash: 3
152
+ segments:
125
153
  - 0
126
- hash: -2385574504671783555
154
+ version: "0"
127
155
  requirements: []
156
+
128
157
  rubyforge_project:
129
- rubygems_version: 1.8.10
158
+ rubygems_version: 1.8.11
130
159
  signing_key:
131
160
  specification_version: 3
132
- summary: nagiosplugin-0.0.7
133
- test_files:
161
+ summary: nagiosplugin-1.0.0
162
+ test_files:
134
163
  - features/plugin_output.feature
135
164
  - features/steps/dev_steps.rb
136
165
  - features/support/env.rb
data/.rvmrc DELETED
@@ -1 +0,0 @@
1
- rvm use 1.9.2@nagiosplugin --create