setsuzoku 0.14.5 → 0.14.6
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9e8e7e3727f9c6f55d217d5f6945aaf9b0dd70e1e7623df1bff9ce401bfe895c
|
|
4
|
+
data.tar.gz: 7ec126f92ad83120308ce9656c4b7b71c37c2bfe9f984a49b733a3f4337652f4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 01a75e9f454f3f9bf3f2527e05aee8655d03ce29a5cb4c7fca264bbfb98cc16e95a8f5b1a18c645f2c77fd5fd92482b98ac33fd18be12271b073e8c64e8c059c
|
|
7
|
+
data.tar.gz: 3418e1e71f783fa0c5161cbd2ef9a7633ead4f5a8c4c1195c933b7c80ae691eb1f2b0df85eca7af9e750761cb56c919c97cbfa2ed4fc43e4750220c0a618734c
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
setsuzoku (0.14.
|
|
4
|
+
setsuzoku (0.14.6)
|
|
5
5
|
activesupport (>= 5.0, < 7)
|
|
6
6
|
faraday (~> 0.11)
|
|
7
7
|
nokogiri (~> 1.10)
|
|
@@ -10,7 +10,7 @@ PATH
|
|
|
10
10
|
GEM
|
|
11
11
|
remote: https://rubygems.org/
|
|
12
12
|
specs:
|
|
13
|
-
activesupport (6.1.4
|
|
13
|
+
activesupport (6.1.4)
|
|
14
14
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
15
15
|
i18n (>= 1.6, < 2)
|
|
16
16
|
minitest (>= 5.1)
|
|
@@ -27,11 +27,9 @@ GEM
|
|
|
27
27
|
hashdiff (1.0.1)
|
|
28
28
|
i18n (1.8.10)
|
|
29
29
|
concurrent-ruby (~> 1.0)
|
|
30
|
-
mini_portile2 (2.6.1)
|
|
31
30
|
minitest (5.14.4)
|
|
32
31
|
multipart-post (2.1.1)
|
|
33
|
-
nokogiri (1.
|
|
34
|
-
mini_portile2 (~> 2.6.1)
|
|
32
|
+
nokogiri (1.11.7-x86_64-darwin)
|
|
35
33
|
racc (~> 1.4)
|
|
36
34
|
public_suffix (4.0.5)
|
|
37
35
|
racc (1.5.2)
|
|
@@ -52,7 +50,7 @@ GEM
|
|
|
52
50
|
safe_yaml (1.0.5)
|
|
53
51
|
sorbet (0.5.5675)
|
|
54
52
|
sorbet-static (= 0.5.5675)
|
|
55
|
-
sorbet-runtime (0.5.
|
|
53
|
+
sorbet-runtime (0.5.6497)
|
|
56
54
|
sorbet-static (0.5.5675-universal-darwin-14)
|
|
57
55
|
tzinfo (2.0.4)
|
|
58
56
|
concurrent-ruby (~> 1.0)
|
|
@@ -122,11 +122,14 @@ module Setsuzoku
|
|
|
122
122
|
def formulate_request(request_properties = {}, request_options = {})
|
|
123
123
|
request_format = request_properties.dig(:request_format).to_s
|
|
124
124
|
params = request_properties[:req_params].merge(request_options.except(:headers))
|
|
125
|
-
if request_properties[:
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
if request_properties[:request_method] == :get
|
|
126
|
+
# Faraday expects get requests params to be a hash
|
|
127
|
+
params
|
|
128
|
+
elsif request_properties[:req_params].empty?
|
|
129
|
+
if request_properties[:request_method] == :put
|
|
130
|
+
params.to_json # Faraday doesn't support an empty hash for PUT requests
|
|
128
131
|
else
|
|
129
|
-
params
|
|
132
|
+
params # Faraday supports empty hashes for other request types...
|
|
130
133
|
end
|
|
131
134
|
else
|
|
132
135
|
# if the header or request format include urlencoded return the body as a hash
|
data/lib/setsuzoku/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: setsuzoku
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.14.
|
|
4
|
+
version: 0.14.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Luke Stadtler
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-10-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|