restool 1.0.9 → 1.0.10

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54aafd4653f3e0731a730bd9cb1980f32627c700f0115e951f81a98c36394554
4
- data.tar.gz: 190778d772811b36dcad7dc21e8adc9e66f0850e49e7c43fcddde7a92d20206c
3
+ metadata.gz: f58b48ed90b3c52f88e1c47baea869720ec821cca6f7ee8fff50a3fd685392b4
4
+ data.tar.gz: 9e8103f011ff146ae44531d48c34f2aa9ee5e3bb82550cf505c611b7244e9f8b
5
5
  SHA512:
6
- metadata.gz: 6d11e6e4f27ae0409c1ec7cbb20410ce2e64ff179d6dedb48195278148879ee1d439ba4109daec54be169f4c0b1eef3698728580f908c144937f2dfcb5b47f22
7
- data.tar.gz: cf06a3072c062e965bed39b7a5889402cb18bdc679b10b3655b445afb78cf9364fef8d4e23d6713988fbf9d916c8bee7fbceaa0d7ae0edaae324ee3387dca7bb
6
+ metadata.gz: edd54ab642a6ac7b867b98fc58df41dc7648e69255f0826a0bed63a26a38e13e430c3d6bf742ea106351b7787c424e12efebd09d45f06d59a88b92c30736f8a1
7
+ data.tar.gz: 5bc4886ac0d8d9657a6dcb099bf55fc077aafe297d9570f9a8855fa6e43b5a08e2f62ecd653472887e53471abecbe41ff6b3a0deeeb07ef869211364dfa2b384
@@ -25,6 +25,9 @@ module Restool
25
25
  def build_connection(host, verify_ssl, timeout, opts)
26
26
  uri = URI.parse(host)
27
27
 
28
+ opt_debug = opts[:debug].to_s.downcase == "true"
29
+ opt_ssl_version = opts[:ssl_version]
30
+
28
31
  connection = if proxy_uri
29
32
  Net::HTTP.new(uri.host, uri.port, proxy_uri.host, proxy_uri.port)
30
33
  else
@@ -35,7 +38,9 @@ module Restool
35
38
  connection.verify_mode = verify_ssl?(verify_ssl)
36
39
  connection.read_timeout = timeout
37
40
  connection.open_timeout = timeout
38
- connection.set_debug_output($stdout) if opts[:debug]
41
+
42
+ connection.ssl_version = opt_ssl_version.to_sym if opt_ssl_version
43
+ connection.set_debug_output($stdout) if opt_debug
39
44
 
40
45
  connection
41
46
  end
@@ -1,3 +1,3 @@
1
1
  module Restool
2
- VERSION = '1.0.9'
2
+ VERSION = '1.0.10'
3
3
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restool
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Andres Zeni
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2022-02-10 00:00:00.000000000 Z
10
+ date: 2025-04-14 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rspec
@@ -92,7 +91,6 @@ homepage: https://github.com/jzeni/restool
92
91
  licenses:
93
92
  - MIT
94
93
  metadata: {}
95
- post_install_message:
96
94
  rdoc_options: []
97
95
  require_paths:
98
96
  - lib
@@ -107,8 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
105
  - !ruby/object:Gem::Version
108
106
  version: '0'
109
107
  requirements: []
110
- rubygems_version: 3.2.0.rc.1
111
- signing_key:
108
+ rubygems_version: 3.6.3
112
109
  specification_version: 4
113
110
  summary: Turn your API and its responses into Ruby interfaces.
114
111
  test_files: []