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 +4 -4
- data/lib/restool/service/remote_client.rb +6 -1
- data/lib/restool/version.rb +1 -1
- metadata +3 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f58b48ed90b3c52f88e1c47baea869720ec821cca6f7ee8fff50a3fd685392b4
|
4
|
+
data.tar.gz: 9e8103f011ff146ae44531d48c34f2aa9ee5e3bb82550cf505c611b7244e9f8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/restool/version.rb
CHANGED
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.
|
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:
|
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.
|
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: []
|