setsuzoku 0.15.0 → 0.15.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +38 -16
- data/lib/setsuzoku/service/web_service/api_strategies/rest_strategy.rb +4 -1
- data/lib/setsuzoku/version.rb +1 -1
- data/setsuzoku.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 748f2d61756c3b841ab62e9b085677a32e0ba9edc3888d95dd1724b8606a400a
|
4
|
+
data.tar.gz: 8d6c210f8cabb2fbb48700c8dd7a8e0a53b94f77ea3acce302f58b4529b17832
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce36e42e069edaffbd5f5556e3927299bb023808cf0b6fde030ef841382c1dc9d08c5993f90f519f07827b1e7393a35c0f2149a8abe5026bb2559576c5afa4ff
|
7
|
+
data.tar.gz: 9504bdd1ed316d3442a01459672060f0f90e39457046fc37e3e3891f92bde397a9669ce3a081a6572f9ce61ef59124330146f742f846f020c45792ce63ae1e01
|
data/Gemfile.lock
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
setsuzoku (0.15.
|
4
|
+
setsuzoku (0.15.1)
|
5
5
|
activesupport (>= 5.0, < 7)
|
6
|
-
faraday (~> 0
|
6
|
+
faraday (~> 1.0)
|
7
7
|
nokogiri (~> 1.10)
|
8
8
|
sorbet-runtime (~> 0.5)
|
9
9
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
activesupport (6.1.
|
13
|
+
activesupport (6.1.7.4)
|
14
14
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
15
15
|
i18n (>= 1.6, < 2)
|
16
16
|
minitest (>= 5.1)
|
@@ -18,23 +18,44 @@ GEM
|
|
18
18
|
zeitwerk (~> 2.3)
|
19
19
|
addressable (2.7.0)
|
20
20
|
public_suffix (>= 2.0.2, < 5.0)
|
21
|
-
concurrent-ruby (1.
|
21
|
+
concurrent-ruby (1.2.2)
|
22
22
|
crack (0.4.3)
|
23
23
|
safe_yaml (~> 1.0.0)
|
24
24
|
diff-lcs (1.4.2)
|
25
|
-
faraday (
|
26
|
-
|
25
|
+
faraday (1.10.3)
|
26
|
+
faraday-em_http (~> 1.0)
|
27
|
+
faraday-em_synchrony (~> 1.0)
|
28
|
+
faraday-excon (~> 1.1)
|
29
|
+
faraday-httpclient (~> 1.0)
|
30
|
+
faraday-multipart (~> 1.0)
|
31
|
+
faraday-net_http (~> 1.0)
|
32
|
+
faraday-net_http_persistent (~> 1.0)
|
33
|
+
faraday-patron (~> 1.0)
|
34
|
+
faraday-rack (~> 1.0)
|
35
|
+
faraday-retry (~> 1.0)
|
36
|
+
ruby2_keywords (>= 0.0.4)
|
37
|
+
faraday-em_http (1.0.0)
|
38
|
+
faraday-em_synchrony (1.0.0)
|
39
|
+
faraday-excon (1.1.0)
|
40
|
+
faraday-httpclient (1.0.1)
|
41
|
+
faraday-multipart (1.0.4)
|
42
|
+
multipart-post (~> 2)
|
43
|
+
faraday-net_http (1.0.1)
|
44
|
+
faraday-net_http_persistent (1.2.0)
|
45
|
+
faraday-patron (1.0.0)
|
46
|
+
faraday-rack (1.0.0)
|
47
|
+
faraday-retry (1.0.3)
|
27
48
|
hashdiff (1.0.1)
|
28
|
-
i18n (1.
|
49
|
+
i18n (1.14.1)
|
29
50
|
concurrent-ruby (~> 1.0)
|
30
|
-
mini_portile2 (2.8.
|
31
|
-
minitest (5.
|
32
|
-
multipart-post (2.
|
33
|
-
nokogiri (1.
|
34
|
-
mini_portile2 (~> 2.8.
|
51
|
+
mini_portile2 (2.8.4)
|
52
|
+
minitest (5.19.0)
|
53
|
+
multipart-post (2.3.0)
|
54
|
+
nokogiri (1.15.3)
|
55
|
+
mini_portile2 (~> 2.8.2)
|
35
56
|
racc (~> 1.4)
|
36
57
|
public_suffix (4.0.5)
|
37
|
-
racc (1.
|
58
|
+
racc (1.7.1)
|
38
59
|
rake (10.5.0)
|
39
60
|
rspec (3.8.0)
|
40
61
|
rspec-core (~> 3.8.0)
|
@@ -49,18 +70,19 @@ GEM
|
|
49
70
|
diff-lcs (>= 1.2.0, < 2.0)
|
50
71
|
rspec-support (~> 3.8.0)
|
51
72
|
rspec-support (3.8.3)
|
73
|
+
ruby2_keywords (0.0.5)
|
52
74
|
safe_yaml (1.0.5)
|
53
75
|
sorbet (0.5.10030)
|
54
76
|
sorbet-static (= 0.5.10030)
|
55
|
-
sorbet-runtime (0.5.
|
77
|
+
sorbet-runtime (0.5.10946)
|
56
78
|
sorbet-static (0.5.10030-universal-darwin-14)
|
57
|
-
tzinfo (2.0.
|
79
|
+
tzinfo (2.0.6)
|
58
80
|
concurrent-ruby (~> 1.0)
|
59
81
|
webmock (3.8.0)
|
60
82
|
addressable (>= 2.3.6)
|
61
83
|
crack (>= 0.3.2)
|
62
84
|
hashdiff (>= 0.4.0, < 2.0.0)
|
63
|
-
zeitwerk (2.6.
|
85
|
+
zeitwerk (2.6.11)
|
64
86
|
|
65
87
|
PLATFORMS
|
66
88
|
ruby
|
@@ -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
data/setsuzoku.gemspec
CHANGED
@@ -44,6 +44,6 @@ Gem::Specification.new do |spec|
|
|
44
44
|
spec.add_development_dependency "sorbet", "~> 0.5"
|
45
45
|
spec.add_runtime_dependency "sorbet-runtime", "~> 0.5"
|
46
46
|
#TODO: we should remove httparty if we can just use faraday
|
47
|
-
spec.add_runtime_dependency "faraday", "~> 0
|
47
|
+
spec.add_runtime_dependency "faraday", "~> 1.0"
|
48
48
|
spec.add_runtime_dependency "nokogiri", "~> 1.10"
|
49
49
|
end
|
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.15.
|
4
|
+
version: 0.15.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luke Stadtler
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -120,14 +120,14 @@ dependencies:
|
|
120
120
|
requirements:
|
121
121
|
- - "~>"
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version: '0
|
123
|
+
version: '1.0'
|
124
124
|
type: :runtime
|
125
125
|
prerelease: false
|
126
126
|
version_requirements: !ruby/object:Gem::Requirement
|
127
127
|
requirements:
|
128
128
|
- - "~>"
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version: '0
|
130
|
+
version: '1.0'
|
131
131
|
- !ruby/object:Gem::Dependency
|
132
132
|
name: nokogiri
|
133
133
|
requirement: !ruby/object:Gem::Requirement
|
@@ -242,7 +242,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
242
242
|
- !ruby/object:Gem::Version
|
243
243
|
version: '0'
|
244
244
|
requirements: []
|
245
|
-
rubygems_version: 3.
|
245
|
+
rubygems_version: 3.4.17
|
246
246
|
signing_key:
|
247
247
|
specification_version: 4
|
248
248
|
summary: Extensible 3rd-party interface and functionality plugins
|