setsuzoku 0.15.0 → 0.15.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33e2792dd95e82af3c6d7da592db91dfc6deb3231bba7408b02a5d0d400a06df
|
4
|
+
data.tar.gz: c3dd57468f5e8e1a8f948522f34a62231759c15b2778e3a591b414b6e208e6cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17824e32cc43b626875a9fb4bcfdae86b29a109b78f8c8aea01116734d72e4093ebfa1087e50b54ebcc65a1439b7002eb592057b9633596102f8590726e777ee
|
7
|
+
data.tar.gz: 7ad2426f1f7959301f1ec50ce45611363d79f433de59a0414226e8cd99f765a6bc68a6c2c9b391b84f1533aca6cbc07f8a46ff60b893d5af42241bd586c738a9
|
data/Gemfile.lock
CHANGED
@@ -129,7 +129,10 @@ module Setsuzoku
|
|
129
129
|
# Faraday expects get requests params to be a hash
|
130
130
|
params
|
131
131
|
elsif request_properties[:req_params].empty?
|
132
|
-
if
|
132
|
+
# if the header or request format include urlencoded return the body as a hash
|
133
|
+
if request_format.include?('urlencoded')
|
134
|
+
params
|
135
|
+
elsif %i[put patch post].include?(request_properties[:request_method])
|
133
136
|
params.to_json # Faraday doesn't support an empty hash for PUT/PATCH/POST requests
|
134
137
|
else
|
135
138
|
params # Faraday supports empty hashes for other request types...
|
data/lib/setsuzoku/version.rb
CHANGED