sensu-plugin 0.1.4.beta → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sensu-handler.rb +3 -3
- data/lib/sensu-plugin.rb +4 -4
- metadata +7 -10
data/lib/sensu-handler.rb
CHANGED
@@ -4,10 +4,10 @@ require 'json'
|
|
4
4
|
module Sensu
|
5
5
|
|
6
6
|
NET_HTTP_REQ_CLASS = {
|
7
|
-
'GET'
|
8
|
-
'POST'
|
7
|
+
'GET' => Net::HTTP::Get,
|
8
|
+
'POST' => Net::HTTP::Post,
|
9
9
|
'DELETE' => Net::HTTP::Delete,
|
10
|
-
'PUT'
|
10
|
+
'PUT' => Net::HTTP::Put
|
11
11
|
}
|
12
12
|
|
13
13
|
class Handler
|
data/lib/sensu-plugin.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 19
|
5
|
+
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
9
|
- 4
|
10
|
-
|
11
|
-
version: 0.1.4.beta
|
10
|
+
version: 0.1.4
|
12
11
|
platform: ruby
|
13
12
|
authors:
|
14
13
|
- Decklin Foster
|
@@ -92,14 +91,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
92
91
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
92
|
none: false
|
94
93
|
requirements:
|
95
|
-
- - "
|
94
|
+
- - ">="
|
96
95
|
- !ruby/object:Gem::Version
|
97
|
-
hash:
|
96
|
+
hash: 3
|
98
97
|
segments:
|
99
|
-
-
|
100
|
-
|
101
|
-
- 1
|
102
|
-
version: 1.3.1
|
98
|
+
- 0
|
99
|
+
version: "0"
|
103
100
|
requirements: []
|
104
101
|
|
105
102
|
rubyforge_project:
|