circonus 3.4.6 → 3.5.0
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.
- data/lib/circonus.rb +3 -2
- metadata +2 -2
data/lib/circonus.rb
CHANGED
@@ -19,7 +19,8 @@ class Circonus
|
|
19
19
|
|
20
20
|
DEFAULT_OPTIONS = {
|
21
21
|
:timeout => 300,
|
22
|
-
:open_timeout => 300
|
22
|
+
:open_timeout => 300,
|
23
|
+
:verify_ssl => false
|
23
24
|
}
|
24
25
|
|
25
26
|
def set_apitoken(apitoken)
|
@@ -52,7 +53,7 @@ class Circonus
|
|
52
53
|
def _rest(type,url,headers,data=nil)
|
53
54
|
#STDERR.puts "_rest: type=#{type} url=#{url} headers=#{headers.inspect} data=#{data.inspect}"
|
54
55
|
begin
|
55
|
-
resource = RestClient::Resource.new url, :timeout => @options[:timeout], :open_timeout => @options[:open_timeout]
|
56
|
+
resource = RestClient::Resource.new url, :timeout => @options[:timeout], :open_timeout => @options[:open_timeout], :verify_ssl => @options[:verify_ssl]
|
56
57
|
case type
|
57
58
|
when 'delete'
|
58
59
|
r = resource.delete headers
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: circonus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.5.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-08-
|
12
|
+
date: 2014-08-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|