setsuzoku 0.10.5 → 0.10.6
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: ec027734b7ade1f167e2c3512a47c8cd2b00606ff9103d0b17d80e1960492e6c
|
4
|
+
data.tar.gz: d0e35266c5f8a77a5257ae1b3cf903014ed1df0af55cd1b3e4b0fc1ba8e02f18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dec4afc6d6fb120b1dbb3e168ae3c1bccb28de3e556fac8ea4d08f0440b645def92c73477fcae1096847424422ae64ea2c1ce991c53dc4ba382ec031bd4c72c9
|
7
|
+
data.tar.gz: 7cb14d8ca015ee98fa7a3ccd89a5f90ac681c9dc470c09654cb2d07f23e78ca6210781de86f8e97eac456df267130e4849cb6e4f2f636873900b130ef0ae1102
|
data/Gemfile.lock
CHANGED
@@ -105,13 +105,12 @@ module Setsuzoku
|
|
105
105
|
# @return full_request [Hash/String] returns the request body in the format required
|
106
106
|
def formulate_request(request_properties = {}, request_options = {})
|
107
107
|
request_format = request_properties.dig(:request_format).to_s
|
108
|
-
content_type = request_options.dig(:headers, :'Content-Type').to_s
|
109
108
|
|
110
109
|
if request_properties[:request_method] == :get || request_properties[:req_params].empty?
|
111
110
|
request_properties[:req_params]
|
112
111
|
else
|
113
|
-
# if the header or request format
|
114
|
-
if request_format.include?('urlencoded')
|
112
|
+
# if the header or request format include urlencoded return the body as a hash
|
113
|
+
if request_format.include?('urlencoded')
|
115
114
|
request_properties[:req_params]
|
116
115
|
else
|
117
116
|
# return either xml or json
|
@@ -122,7 +121,7 @@ module Setsuzoku
|
|
122
121
|
end
|
123
122
|
end
|
124
123
|
end
|
125
|
-
|
124
|
+
end
|
126
125
|
|
127
126
|
def request_options(request_format = nil, action_details = {})
|
128
127
|
request_options = self.auth_strategy.auth_headers.merge(self.plugin.api_headers).merge(action_details[:request_options] || {})
|
@@ -131,10 +130,12 @@ module Setsuzoku
|
|
131
130
|
'application/json'
|
132
131
|
when :xml
|
133
132
|
'application/xml'
|
134
|
-
when :text
|
133
|
+
when :text, :file
|
135
134
|
'text/plain'
|
136
135
|
when :pdf
|
137
136
|
'application/pdf'
|
137
|
+
when :'x-www-form-urlencoded;charset=UTF-8'
|
138
|
+
'application/x-www-form-urlencoded;charset=UTF-8'
|
138
139
|
else
|
139
140
|
'application/json'
|
140
141
|
end
|
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.10.
|
4
|
+
version: 0.10.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: 2020-06-
|
11
|
+
date: 2020-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|