nagios-splunk 0.0.2 → 0.0.3

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.
@@ -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 = true
52
+ @client.use_ssl = @use_ssl
52
53
  @client.set_debug_output $stderr if debug
53
54
  @client
54
55
  end
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "nagios-splunk"
5
- s.version = "0.0.2"
5
+ s.version = "0.0.3"
6
6
  s.authors = 'Max Horbul'
7
7
  s.email = ["max@gorbul.net"]
8
8
  s.homepage = "https://github.com/mhorbul/nagios-splunk"
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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
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-19 00:00:00 Z
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.17
125
+ rubygems_version: 1.8.24
126
126
  signing_key:
127
127
  specification_version: 3
128
128
  summary: Nagios Splunk plugin