nagios-splunk 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/nagios/splunk/rest_client.rb +2 -1
- data/nagios-splunk.gemspec +1 -1
- metadata +5 -5
@@ -24,6 +24,7 @@ module Nagios
|
|
24
24
|
@port = uri.port
|
25
25
|
@username = uri.user
|
26
26
|
@password = uri.password
|
27
|
+
@use_ssl = (uri.scheme == "https")
|
27
28
|
end
|
28
29
|
|
29
30
|
# send HTTP request to the server
|
@@ -48,7 +49,7 @@ module Nagios
|
|
48
49
|
# @return [Net::HTTP]
|
49
50
|
def client
|
50
51
|
@client ||= Net::HTTP.new(@host, @port)
|
51
|
-
@client.use_ssl =
|
52
|
+
@client.use_ssl = @use_ssl
|
52
53
|
@client.set_debug_output $stderr if debug
|
53
54
|
@client
|
54
55
|
end
|
data/nagios-splunk.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nagios-splunk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Max Horbul
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-07-
|
18
|
+
date: 2012-07-26 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: nokogiri
|
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
122
|
requirements: []
|
123
123
|
|
124
124
|
rubyforge_project: nagios-splunk
|
125
|
-
rubygems_version: 1.8.
|
125
|
+
rubygems_version: 1.8.24
|
126
126
|
signing_key:
|
127
127
|
specification_version: 3
|
128
128
|
summary: Nagios Splunk plugin
|