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: ebb07133f2399524199b1c5a2f1cd500ae8317656ea91539bf99868eaa3a0b4d
4
- data.tar.gz: 56c9a198f24fc19be3f510c062f8e5e6c13d6249c33932c7aba4715edca11c89
3
+ metadata.gz: ec027734b7ade1f167e2c3512a47c8cd2b00606ff9103d0b17d80e1960492e6c
4
+ data.tar.gz: d0e35266c5f8a77a5257ae1b3cf903014ed1df0af55cd1b3e4b0fc1ba8e02f18
5
5
  SHA512:
6
- metadata.gz: c479986f2b169b6b6bfa503e10d6826d463ad08521aeb8bbbe9357840c964e8ca6b61e077876004fa3a7fd96a82fbf2f9fa3cce4dbb3792905ca9c7ee0b0ea6b
7
- data.tar.gz: 2a73541b422fc3e802f293c5e6991b3e6aabc17b709531db19d2f33d0ecef712af530ac2eec33efc1de82ccdd130b24144d5c95eacb7cdfd4de4829cce83ac29
6
+ metadata.gz: dec4afc6d6fb120b1dbb3e168ae3c1bccb28de3e556fac8ea4d08f0440b645def92c73477fcae1096847424422ae64ea2c1ce991c53dc4ba382ec031bd4c72c9
7
+ data.tar.gz: 7cb14d8ca015ee98fa7a3ccd89a5f90ac681c9dc470c09654cb2d07f23e78ca6210781de86f8e97eac456df267130e4849cb6e4f2f636873900b130ef0ae1102
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- setsuzoku (0.10.5)
4
+ setsuzoku (0.10.6)
5
5
  activesupport (~> 5.0)
6
6
  faraday (~> 0.11)
7
7
  httparty (~> 0.16.4)
@@ -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 and request format include urlencoded return the body as a hash
114
- if request_format.include?('urlencoded') && content_type.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
- end
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
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Setsuzoku
5
- VERSION = '0.10.5'
5
+ VERSION = '0.10.6'
6
6
  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.10.5
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-27 00:00:00.000000000 Z
11
+ date: 2020-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler