mint_http 0.1.5 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -6
- data/lib/mint_http/request.rb +17 -1
- data/lib/mint_http/response.rb +1 -1
- data/lib/mint_http/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51ad5decdb74925fcbc5e48bf9bb8e7edeac7d4838a690c6d6abbb61f5b77a69
|
4
|
+
data.tar.gz: 9a280c88d46aa396c3c558f3739f0e11c473a6fdf8c85ba7e523cd241d42ea2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22824a626569a7cbe2945a54763f2c92e9fd11ecd8f0e3294b630fd04b1694200c41dda0396e420483f56e25f484d37e423f0fdeb1b7c0a059ab15c61af6f84a
|
7
|
+
data.tar.gz: addfab3c50084bbbd3daf488e059c0f18da6e9956a2b4d449a299c25d17b44a9307b3c5535380b10b5a3f2fc60e903edf13507393eff44a276a3ec5b0c7d5dad
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
mint_http (0.1.
|
4
|
+
mint_http (0.1.6)
|
5
5
|
base64
|
6
6
|
json
|
7
7
|
net-http
|
@@ -11,16 +11,16 @@ PATH
|
|
11
11
|
GEM
|
12
12
|
remote: https://rubygems.org/
|
13
13
|
specs:
|
14
|
-
base64 (0.1.
|
15
|
-
ipaddr (1.2.
|
16
|
-
json (2.
|
14
|
+
base64 (0.1.1)
|
15
|
+
ipaddr (1.2.5)
|
16
|
+
json (2.6.3)
|
17
17
|
minitest (5.18.0)
|
18
18
|
net-http (0.3.2)
|
19
19
|
uri
|
20
|
-
openssl (2.2.
|
20
|
+
openssl (2.2.3)
|
21
21
|
ipaddr
|
22
22
|
rake (13.0.6)
|
23
|
-
uri (0.12.
|
23
|
+
uri (0.12.2)
|
24
24
|
|
25
25
|
PLATFORMS
|
26
26
|
arm64-darwin-22
|
data/lib/mint_http/request.rb
CHANGED
@@ -20,6 +20,8 @@ module MintHttp
|
|
20
20
|
attr_reader :cert
|
21
21
|
attr_reader :proxy_address
|
22
22
|
attr_reader :proxy_port
|
23
|
+
attr_reader :ssl_verify_mode
|
24
|
+
attr_reader :ssl_verify_hostname
|
23
25
|
|
24
26
|
def initialize
|
25
27
|
@pool = nil
|
@@ -39,6 +41,8 @@ module MintHttp
|
|
39
41
|
@proxy_port = nil
|
40
42
|
@proxy_user = nil
|
41
43
|
@proxy_pass = nil
|
44
|
+
@ssl_verify_mode = nil
|
45
|
+
@ssl_verify_hostname = nil
|
42
46
|
|
43
47
|
header('User-Agent' => 'Mint Http')
|
44
48
|
as_json
|
@@ -66,6 +70,16 @@ module MintHttp
|
|
66
70
|
self
|
67
71
|
end
|
68
72
|
|
73
|
+
def ssl_verify_mode(mode)
|
74
|
+
@ssl_verify_mode = mode
|
75
|
+
self
|
76
|
+
end
|
77
|
+
|
78
|
+
def ssl_verify_hostname(verify)
|
79
|
+
@ssl_verify_hostname = verify
|
80
|
+
self
|
81
|
+
end
|
82
|
+
|
69
83
|
def use_ca(ca)
|
70
84
|
@ca = ca
|
71
85
|
self
|
@@ -297,6 +311,8 @@ module MintHttp
|
|
297
311
|
proxy_port: @proxy_port,
|
298
312
|
proxy_user: @proxy_user,
|
299
313
|
proxy_pass: @proxy_pass,
|
314
|
+
verify_mode: @ssl_verify_mode,
|
315
|
+
verify_hostname: @ssl_verify_hostname,
|
300
316
|
}
|
301
317
|
|
302
318
|
[url, net_request, options]
|
@@ -320,7 +336,7 @@ module MintHttp
|
|
320
336
|
if @pool
|
321
337
|
@pool.release(net_http)
|
322
338
|
else
|
323
|
-
net_http.finish
|
339
|
+
net_http.finish if net_http.started?
|
324
340
|
end
|
325
341
|
end
|
326
342
|
end
|
data/lib/mint_http/response.rb
CHANGED
data/lib/mint_http/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mint_http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ali Alhoshaiyan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-http
|