dagger 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dagger.rb +10 -4
- data/lib/dagger/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 554b365474524830ac1017cac8b57354d8fed85a
|
4
|
+
data.tar.gz: be62ee9a3bab4868326fb4cf15db03776e0591bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f03630f6ccd2603de2aa87cca29987a08dd3de8190ea4eb85820b0a46a3735287a1da5b9c704cd8d6d6d644a7e209c7b4d4c56144117839fb6b71ab630b66937
|
7
|
+
data.tar.gz: 4dbc25a2e30be77ec37e29e2ecd240a01871e2fa56420524a21aa48c643892289f9f16715e433e7c2cab36bf5bb1616be4109fb57deaf972f18432ebf94dc970
|
data/lib/dagger.rb
CHANGED
@@ -88,10 +88,16 @@ module Dagger
|
|
88
88
|
|
89
89
|
def self.client(uri, opts = {})
|
90
90
|
http = Net::HTTP.new(uri.host, uri.port)
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
91
|
+
|
92
|
+
if uri.port == 443
|
93
|
+
http.use_ssl = true
|
94
|
+
http.verify_mode = opts[:verify_ssl] === false ? OpenSSL::SSL::VERIFY_NONE : OpenSSL::SSL::VERIFY_PEER
|
95
|
+
end
|
96
|
+
|
97
|
+
[:open_timeout, :read_timeout, :ssl_version, :ciphers].each do |key|
|
98
|
+
http.send("#{key}=", opts[key]) if opts.has_key?(key)
|
99
|
+
end
|
100
|
+
|
95
101
|
http
|
96
102
|
end
|
97
103
|
|
data/lib/dagger/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dagger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomás Pollak
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|