metriks-librato_metrics 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -83,12 +83,15 @@ module Metriks
|
|
83
83
|
req.basic_auth(@email, @token)
|
84
84
|
req.set_form_data(@data)
|
85
85
|
|
86
|
-
http = Net::HTTP.new(url.host, url.port)
|
87
|
-
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
88
|
-
http.use_ssl = true
|
89
86
|
store = OpenSSL::X509::Store.new
|
90
87
|
store.set_default_paths
|
91
|
-
|
88
|
+
|
89
|
+
http = Net::HTTP.new(url.host, url.port)
|
90
|
+
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
91
|
+
http.use_ssl = true
|
92
|
+
http.open_timeout = @timeout
|
93
|
+
http.read_timeout = @timeout
|
94
|
+
http.cert_store = store
|
92
95
|
|
93
96
|
case res = http.start { |http| http.request(req) }
|
94
97
|
when Net::HTTPSuccess, Net::HTTPRedirection
|
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
|
|
13
13
|
## If your rubyforge_project name is different, then edit it and comment out
|
14
14
|
## the sub! line in the Rakefile
|
15
15
|
s.name = 'metriks-librato_metrics'
|
16
|
-
s.version = '1.0.
|
17
|
-
s.date = '2015-09-
|
16
|
+
s.version = '1.0.5'
|
17
|
+
s.date = '2015-09-28'
|
18
18
|
|
19
19
|
## Make sure your summary is short. The description may be as long
|
20
20
|
## as you like.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metriks-librato_metrics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
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: 2015-09-
|
12
|
+
date: 2015-09-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: metriks
|