trinsic_api 3.3.0.pre.alpha3 → 3.3.0.pre.alpha4

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: bbca2db77044e0e25400fb375fbe3713f3a9f41241dc741a93c7c5737cda3a98
4
- data.tar.gz: 72b2839506e2f1e9ff27630eb6110bf6dd6b5670bb79def8f5f8d61b2370563d
3
+ metadata.gz: 29bc5e41c1d37f3d21b3ddc3d0cb1620174e688b2112623500748389617c4361
4
+ data.tar.gz: 52306aebde99eaf28853f77094e6ddca4541559095d0f94b74008f5c88b45b64
5
5
  SHA512:
6
- metadata.gz: 7c624e76d5194cf6aa86c7ea39c357bd8f3855ac1a460ee0c0188a93ed670d7b1e84ba5df3198bc69c50d0ebcde1bc7daf7d8e924a96cf3b3012bb64dd1ba5ac
7
- data.tar.gz: 90b541ac2a5f6a5bead33c9849baf57daf235b35fde2ba7a4f3d43184900df11b205ca7b7f75a31c0d670537726705a02bf4fed536485536b642b7798f505cf4
6
+ metadata.gz: a6c554e0f1479ae413fd88d31ba3a5e60a4a78e4800c8d8dde12e275ba380d43c7e53372d4ac7527cf3997ef05195994aada0896365516562e17b62e45ba07c9
7
+ data.tar.gz: 46ed504ca8b7efc75527ba25929cd4b5366f55f5f8ace2a19420a3d18e3456716ba2e6077fa60d457efe0fbf679eeea69c48d1fe335f1f537dd33ef88c547f76
@@ -96,7 +96,7 @@ module TrinsicApi
96
96
  http_method = http_method.to_sym.downcase
97
97
 
98
98
  header_params = @default_headers.merge(opts[:header_params] || {})
99
- header_params['X-Trinsic-SDK'] = "ruby/3.3.0-alpha3"
99
+ header_params['X-Trinsic-SDK'] = "ruby/3.3.0-alpha4"
100
100
  query_params = opts[:query_params] || {}
101
101
  form_params = opts[:form_params] || {}
102
102
  follow_location = opts[:follow_location] || true
@@ -125,6 +125,7 @@ module TrinsicApi
125
125
 
126
126
  if [:post, :patch, :put, :delete].include?(http_method)
127
127
  req_body = build_request_body(header_params, form_params, opts[:body])
128
+ req_opts[:multipart] = true if header_params['Content-Type'] == 'multipart/form-data'
128
129
  req_opts.update :body => req_body
129
130
  if @config.debugging
130
131
  @config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n"
@@ -78,6 +78,8 @@ module TrinsicApi
78
78
  {}.tap do |hash|
79
79
  value.each { |k, v| hash[k] = _to_hash(v) }
80
80
  end
81
+ elsif value.is_a?(Time)
82
+ value.iso8601(9)
81
83
  elsif value.respond_to? :to_hash
82
84
  value.to_hash
83
85
  else
@@ -11,5 +11,5 @@ Generator version: 7.26.0
11
11
  =end
12
12
 
13
13
  module TrinsicApi
14
- VERSION = '3.3.0-alpha3'
14
+ VERSION = '3.3.0-alpha4'
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trinsic_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0.pre.alpha3
4
+ version: 3.3.0.pre.alpha4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trinsic