nagios_check 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 138d3b7986ae5857d9f147b0433c55c3b898eb5f
4
+ data.tar.gz: afe1f0596381e526f33f3da2440c8d7dbfe06e0d
5
+ SHA512:
6
+ metadata.gz: dcbc892696ff88c9b7610b90bcc3cee12936f452e961aa01f2232cba3f486ffe059383b4aea0fbcdfe24a09340e6dc85a034d6d469b6cdd922633a46860f3213
7
+ data.tar.gz: dbed5b6bef66544efb3f21ab64cda516f73ad4938e6f3f373b2b38d52dd5609b0de32bc6580761726d7a98bc50d0f404c831bef5dd8dda3ca9ab218127927073
data/README.md CHANGED
@@ -81,5 +81,5 @@ Released under the MIT License. See the [MIT-LICENSE][license] file for further
81
81
  [license]: https://github.com/dbroeglin/nagios_check/blob/master/MIT-LICENSE
82
82
  [nagios-dev]: http://nagiosplug.sourceforge.net/developer-guidelines.html
83
83
 
84
- Copyright 2011 Dominique Broeglin
84
+ Copyright 2011-2016 Dominique Broeglin
85
85
 
@@ -23,14 +23,14 @@ module NagiosCheck
23
23
  return_val, status = 3, "UNKNOWN"
24
24
  begin
25
25
  parse_options
26
- if @timeout
26
+ if @options.t
27
27
  check_with_timeout
28
28
  else
29
29
  check
30
30
  end
31
31
  return_val, status = finish
32
32
  rescue Timeout::Error
33
- store_message "TIMEOUT after #{@timeout}s"
33
+ store_message "TIMEOUT after #{@options.t}s"
34
34
  rescue OptionParser::InvalidArgument, NagiosCheck::MissingOption => e
35
35
  store_message "CLI ERROR: #{e}"
36
36
  rescue => e
@@ -1,3 +1,3 @@
1
1
  module NagiosCheck
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
@@ -18,6 +18,6 @@ Gem::Specification.new do |s|
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ["lib"]
20
20
 
21
- s.add_development_dependency "rspec", ">= 2.0.0"
21
+ s.add_development_dependency "rspec", "~> 2.14.0"
22
22
  s.add_development_dependency "rake"
23
23
  end
metadata CHANGED
@@ -1,46 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nagios_check
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
5
- prerelease:
4
+ version: 0.3.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Dominique Broeglin
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-01-26 00:00:00.000000000 Z
11
+ date: 2016-11-27 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
- version: 2.0.0
19
+ version: 2.14.0
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: 2.0.0
26
+ version: 2.14.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  description: An easy to use DSL for building custom probes for the Nagios monitoring
@@ -51,7 +46,7 @@ executables: []
51
46
  extensions: []
52
47
  extra_rdoc_files: []
53
48
  files:
54
- - .gitignore
49
+ - ".gitignore"
55
50
  - Gemfile
56
51
  - MIT-LICENSE
57
52
  - README.md
@@ -67,27 +62,26 @@ files:
67
62
  - spec/spec_helper.rb
68
63
  homepage: https://github.com/dbroeglin/nagios_check
69
64
  licenses: []
65
+ metadata: {}
70
66
  post_install_message:
71
67
  rdoc_options: []
72
68
  require_paths:
73
69
  - lib
74
70
  required_ruby_version: !ruby/object:Gem::Requirement
75
- none: false
76
71
  requirements:
77
- - - ! '>='
72
+ - - ">="
78
73
  - !ruby/object:Gem::Version
79
74
  version: '0'
80
75
  required_rubygems_version: !ruby/object:Gem::Requirement
81
- none: false
82
76
  requirements:
83
- - - ! '>='
77
+ - - ">="
84
78
  - !ruby/object:Gem::Version
85
79
  version: '0'
86
80
  requirements: []
87
81
  rubyforge_project: nagios_check
88
- rubygems_version: 1.8.23
82
+ rubygems_version: 2.5.1
89
83
  signing_key:
90
- specification_version: 3
84
+ specification_version: 4
91
85
  summary: Ruby Nagios Check Integration
92
86
  test_files:
93
87
  - spec/finish_spec.rb