dagger 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dagger.rb +10 -4
  3. data/lib/dagger/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63816a0d187903c137ee41f877ef6f1297c0fc40
4
- data.tar.gz: 69a54ec7a10a4cd1482aa809bb50668b973c7867
3
+ metadata.gz: 554b365474524830ac1017cac8b57354d8fed85a
4
+ data.tar.gz: be62ee9a3bab4868326fb4cf15db03776e0591bf
5
5
  SHA512:
6
- metadata.gz: 450539509f84b2620985500067745ad0bfb4ebdf1268e468671405bf55ad825c0a1662c62420222498f5cb7a7a827f9e6320cbcd1fa90fc70b732a0cf219401e
7
- data.tar.gz: 8340ddc5cf34eb6c4c94f3abb381b76483de5560e3746cb06590f2b9983795dea5e381f1d00ad6f6cb618f834083eb070b9da9183f3b68476edf6522cbe9b3ac
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
- http.open_timeout = opts[:open_timeout] if opts[:open_timeout]
92
- http.read_timeout = opts[:read_timeout] if opts[:read_timeout]
93
- http.use_ssl = true if uri.port == 443
94
- http.verify_mode = opts[:verify_ssl] === false ? OpenSSL::SSL::VERIFY_NONE : OpenSSL::SSL::VERIFY_PEER
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
 
@@ -1,7 +1,7 @@
1
1
  module Dagger
2
2
  MAJOR = 0
3
3
  MINOR = 5
4
- PATCH = 0
4
+ PATCH = 1
5
5
 
6
6
  VERSION = [MAJOR, MINOR, PATCH].join('.')
7
7
  end
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.0
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-23 00:00:00.000000000 Z
11
+ date: 2016-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler