mint_http 0.1.6 → 0.1.8
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/Gemfile.lock +7 -9
- data/lib/mint_http/request.rb +5 -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: 5928a4bac42cf6e1c6039ddbff011d758d7f0835feab6def492b72b0a3efda14
|
|
4
|
+
data.tar.gz: 0d4aba076e15a19bca4e91dd96f5b6fe63ba52509ca4ad72cef9ac22fe5e0c03
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6603a0dde40391ec153b797d1cd5725feef3773f36ea5eb1c45c576cdd1c6b14dffbe2748e089850531b87656c48487e59ef9268a3416166fe5b2a0b57c0b141
|
|
7
|
+
data.tar.gz: 2f7cf463b45f12da07b663b3679781041539b66d56b046be2df8e9d86e812dd610345d48ccd189d8a3918a35f6ba1c0187fd7b14480fb0142900ff7e5f51db4f
|
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.8)
|
|
5
5
|
base64
|
|
6
6
|
json
|
|
7
7
|
net-http
|
|
@@ -11,16 +11,14 @@ PATH
|
|
|
11
11
|
GEM
|
|
12
12
|
remote: https://rubygems.org/
|
|
13
13
|
specs:
|
|
14
|
-
base64 (0.
|
|
15
|
-
|
|
16
|
-
json (2.6.3)
|
|
14
|
+
base64 (0.2.0)
|
|
15
|
+
json (2.7.2)
|
|
17
16
|
minitest (5.18.0)
|
|
18
|
-
net-http (0.
|
|
17
|
+
net-http (0.4.1)
|
|
19
18
|
uri
|
|
20
|
-
openssl (
|
|
21
|
-
ipaddr
|
|
19
|
+
openssl (3.2.0)
|
|
22
20
|
rake (13.0.6)
|
|
23
|
-
uri (0.
|
|
21
|
+
uri (0.13.0)
|
|
24
22
|
|
|
25
23
|
PLATFORMS
|
|
26
24
|
arm64-darwin-22
|
|
@@ -31,4 +29,4 @@ DEPENDENCIES
|
|
|
31
29
|
rake (~> 13.0)
|
|
32
30
|
|
|
33
31
|
BUNDLED WITH
|
|
34
|
-
2.
|
|
32
|
+
2.3.16
|
data/lib/mint_http/request.rb
CHANGED
|
@@ -283,6 +283,10 @@ module MintHttp
|
|
|
283
283
|
net_request.body = @body
|
|
284
284
|
when :json
|
|
285
285
|
net_request.body = @body.to_json if @body
|
|
286
|
+
|
|
287
|
+
if String === @body
|
|
288
|
+
net_request.body = @body
|
|
289
|
+
end
|
|
286
290
|
when :form
|
|
287
291
|
net_request.body = URI.encode_www_form(@body) if @body
|
|
288
292
|
when :multipart
|
|
@@ -336,7 +340,7 @@ module MintHttp
|
|
|
336
340
|
if @pool
|
|
337
341
|
@pool.release(net_http)
|
|
338
342
|
else
|
|
339
|
-
net_http.finish
|
|
343
|
+
net_http.finish if net_http.started?
|
|
340
344
|
end
|
|
341
345
|
end
|
|
342
346
|
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.8
|
|
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-06-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: net-http
|