mint_http 0.1.5 → 0.1.6
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 +16 -0
- 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: 63e31ba9d13e9a4c3b6c4abfd32e1364c58f741ee3c29e0eac4aa4f27e255d53
|
4
|
+
data.tar.gz: 3c37eb759b431524bfad3752416ea4f0258182fded0e5ca3253d2d923614151c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd7ead92124e1bd73d3ac973bdac60185ed05013ace2a71229b4b4cf5444e141f2deb82cfa5197f93f864f4168f5be855ffb57d840bb30247ae24e6c05315609
|
7
|
+
data.tar.gz: 4ce792e6a54c19b9935267857889ac923ea8d0ac248999faa1e00863d993639b796615255e9bbf43b24381615416f100e0cf9c88756da7882deac6d2f9eb1d5e
|
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.5)
|
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]
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ali Alhoshaiyan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-http
|