patch_ruby 1.16.0 → 1.16.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/lib/patch_ruby/api/estimates_api.rb +27 -9
- data/lib/patch_ruby/api/orders_api.rb +9 -6
- data/lib/patch_ruby/api/projects_api.rb +3 -3
- data/lib/patch_ruby/api/technology_types_api.rb +2 -2
- data/lib/patch_ruby/api_client.rb +5 -5
- data/lib/patch_ruby/api_error.rb +1 -1
- data/lib/patch_ruby/configuration.rb +2 -2
- data/lib/patch_ruby/models/allocation.rb +1 -1
- data/lib/patch_ruby/models/create_bitcoin_estimate_request.rb +1 -1
- data/lib/patch_ruby/models/create_ethereum_estimate_request.rb +1 -1
- data/lib/patch_ruby/models/create_flight_estimate_request.rb +1 -1
- data/lib/patch_ruby/models/create_mass_estimate_request.rb +1 -1
- data/lib/patch_ruby/models/create_order_request.rb +1 -1
- data/lib/patch_ruby/models/create_shipping_estimate_request.rb +1 -1
- data/lib/patch_ruby/models/create_success_response.rb +2 -6
- data/lib/patch_ruby/models/create_vehicle_estimate_request.rb +1 -1
- data/lib/patch_ruby/models/error_response.rb +2 -6
- data/lib/patch_ruby/models/estimate.rb +4 -1
- data/lib/patch_ruby/models/estimate_list_response.rb +1 -1
- data/lib/patch_ruby/models/estimate_response.rb +1 -1
- data/lib/patch_ruby/models/highlight.rb +1 -1
- data/lib/patch_ruby/models/meta_index_object.rb +1 -1
- data/lib/patch_ruby/models/order.rb +3 -3
- data/lib/patch_ruby/models/order_list_response.rb +1 -1
- data/lib/patch_ruby/models/order_response.rb +1 -1
- data/lib/patch_ruby/models/parent_technology_type.rb +1 -1
- data/lib/patch_ruby/models/photo.rb +1 -1
- data/lib/patch_ruby/models/project.rb +4 -1
- data/lib/patch_ruby/models/project_list_response.rb +1 -1
- data/lib/patch_ruby/models/project_response.rb +1 -1
- data/lib/patch_ruby/models/sdg.rb +1 -1
- data/lib/patch_ruby/models/standard.rb +1 -1
- data/lib/patch_ruby/models/technology_type.rb +1 -1
- data/lib/patch_ruby/models/technology_type_list_response.rb +1 -1
- data/lib/patch_ruby/version.rb +2 -2
- data/lib/patch_ruby.rb +1 -1
- data/patch_ruby.gemspec +1 -1
- data/spec/api_client_spec.rb +3 -3
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/error_response_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +23 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc5be57ebe9bda719991c78a7e8112692b22b95d8ca2940ed9332ef451dc6a5d
|
4
|
+
data.tar.gz: b62cc2d7aec1b071a272d55928b7edf428a46a3af5527ebde46d0b779e5567dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acdea515811b0cdbf21e612d9d380ffc6e2988cb0a8e47f06ef830813103578b2ea067414c1a1eb55464db931b7c816e5a724b3341ab802f848e939c9329f3a9
|
7
|
+
data.tar.gz: 5d3daed43098b3bbb5a5d6f5eefa69d14a667bf000ae5cbe4de6e7f5e06e62b6867a78f468c85c0b0c7f17c6268a6981e23397f58a6f0cfd26add5a250466c28
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## [1.16.1] - 2022-01-07
|
9
|
+
|
10
|
+
### Changed
|
11
|
+
|
12
|
+
- No feature changes. Updates the openapi-generator version.
|
13
|
+
|
8
14
|
## [1.16.0] - 2021-12-07
|
9
15
|
|
10
16
|
### Removed
|
data/Gemfile.lock
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
Contact: engineering@usepatch.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -65,7 +65,10 @@ module Patch
|
|
65
65
|
# HTTP header 'Accept' (if needed)
|
66
66
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
67
67
|
# HTTP header 'Content-Type'
|
68
|
-
|
68
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
69
|
+
if !content_type.nil?
|
70
|
+
header_params['Content-Type'] = content_type
|
71
|
+
end
|
69
72
|
|
70
73
|
# form parameters
|
71
74
|
form_params = opts[:form_params] || {}
|
@@ -131,7 +134,10 @@ module Patch
|
|
131
134
|
# HTTP header 'Accept' (if needed)
|
132
135
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
133
136
|
# HTTP header 'Content-Type'
|
134
|
-
|
137
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
138
|
+
if !content_type.nil?
|
139
|
+
header_params['Content-Type'] = content_type
|
140
|
+
end
|
135
141
|
|
136
142
|
# form parameters
|
137
143
|
form_params = opts[:form_params] || {}
|
@@ -197,7 +203,10 @@ module Patch
|
|
197
203
|
# HTTP header 'Accept' (if needed)
|
198
204
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
199
205
|
# HTTP header 'Content-Type'
|
200
|
-
|
206
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
207
|
+
if !content_type.nil?
|
208
|
+
header_params['Content-Type'] = content_type
|
209
|
+
end
|
201
210
|
|
202
211
|
# form parameters
|
203
212
|
form_params = opts[:form_params] || {}
|
@@ -263,7 +272,10 @@ module Patch
|
|
263
272
|
# HTTP header 'Accept' (if needed)
|
264
273
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
265
274
|
# HTTP header 'Content-Type'
|
266
|
-
|
275
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
276
|
+
if !content_type.nil?
|
277
|
+
header_params['Content-Type'] = content_type
|
278
|
+
end
|
267
279
|
|
268
280
|
# form parameters
|
269
281
|
form_params = opts[:form_params] || {}
|
@@ -329,7 +341,10 @@ module Patch
|
|
329
341
|
# HTTP header 'Accept' (if needed)
|
330
342
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
331
343
|
# HTTP header 'Content-Type'
|
332
|
-
|
344
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
345
|
+
if !content_type.nil?
|
346
|
+
header_params['Content-Type'] = content_type
|
347
|
+
end
|
333
348
|
|
334
349
|
# form parameters
|
335
350
|
form_params = opts[:form_params] || {}
|
@@ -395,7 +410,10 @@ module Patch
|
|
395
410
|
# HTTP header 'Accept' (if needed)
|
396
411
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
397
412
|
# HTTP header 'Content-Type'
|
398
|
-
|
413
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
414
|
+
if !content_type.nil?
|
415
|
+
header_params['Content-Type'] = content_type
|
416
|
+
end
|
399
417
|
|
400
418
|
# form parameters
|
401
419
|
form_params = opts[:form_params] || {}
|
@@ -432,7 +450,7 @@ module Patch
|
|
432
450
|
# @param [Hash] opts the optional parameters
|
433
451
|
# @return [EstimateResponse]
|
434
452
|
def retrieve_estimate(id, opts = {})
|
435
|
-
|
453
|
+
|
436
454
|
data, _status_code, _headers = retrieve_estimate_with_http_info(id, opts)
|
437
455
|
data
|
438
456
|
end
|
@@ -496,7 +514,7 @@ module Patch
|
|
496
514
|
# @option opts [Integer] :page
|
497
515
|
# @return [EstimateListResponse]
|
498
516
|
def retrieve_estimates(opts = {})
|
499
|
-
|
517
|
+
|
500
518
|
data, _status_code, _headers = retrieve_estimates_with_http_info(opts)
|
501
519
|
data
|
502
520
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
Contact: engineering@usepatch.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -33,7 +33,7 @@ module Patch
|
|
33
33
|
# @param [Hash] opts the optional parameters
|
34
34
|
# @return [OrderResponse]
|
35
35
|
def cancel_order(id, opts = {})
|
36
|
-
|
36
|
+
|
37
37
|
data, _status_code, _headers = cancel_order_with_http_info(id, opts)
|
38
38
|
data
|
39
39
|
end
|
@@ -126,7 +126,10 @@ module Patch
|
|
126
126
|
# HTTP header 'Accept' (if needed)
|
127
127
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
128
128
|
# HTTP header 'Content-Type'
|
129
|
-
|
129
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
130
|
+
if !content_type.nil?
|
131
|
+
header_params['Content-Type'] = content_type
|
132
|
+
end
|
130
133
|
|
131
134
|
# form parameters
|
132
135
|
form_params = opts[:form_params] || {}
|
@@ -163,7 +166,7 @@ module Patch
|
|
163
166
|
# @param [Hash] opts the optional parameters
|
164
167
|
# @return [OrderResponse]
|
165
168
|
def place_order(id, opts = {})
|
166
|
-
|
169
|
+
|
167
170
|
data, _status_code, _headers = place_order_with_http_info(id, opts)
|
168
171
|
data
|
169
172
|
end
|
@@ -227,7 +230,7 @@ module Patch
|
|
227
230
|
# @param [Hash] opts the optional parameters
|
228
231
|
# @return [OrderResponse]
|
229
232
|
def retrieve_order(id, opts = {})
|
230
|
-
|
233
|
+
|
231
234
|
data, _status_code, _headers = retrieve_order_with_http_info(id, opts)
|
232
235
|
data
|
233
236
|
end
|
@@ -294,7 +297,7 @@ module Patch
|
|
294
297
|
# @option opts [String] :metadata_example2
|
295
298
|
# @return [OrderListResponse]
|
296
299
|
def retrieve_orders(opts = {})
|
297
|
-
|
300
|
+
|
298
301
|
data, _status_code, _headers = retrieve_orders_with_http_info(opts)
|
299
302
|
data
|
300
303
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
Contact: engineering@usepatch.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -30,7 +30,7 @@ module Patch
|
|
30
30
|
# @param [Hash] opts the optional parameters
|
31
31
|
# @return [ProjectResponse]
|
32
32
|
def retrieve_project(id, opts = {})
|
33
|
-
|
33
|
+
|
34
34
|
data, _status_code, _headers = retrieve_project_with_http_info(id, opts)
|
35
35
|
data
|
36
36
|
end
|
@@ -97,7 +97,7 @@ module Patch
|
|
97
97
|
# @option opts [Integer] :minimum_available_mass
|
98
98
|
# @return [ProjectListResponse]
|
99
99
|
def retrieve_projects(opts = {})
|
100
|
-
|
100
|
+
|
101
101
|
data, _status_code, _headers = retrieve_projects_with_http_info(opts)
|
102
102
|
data
|
103
103
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
Contact: engineering@usepatch.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -28,7 +28,7 @@ module Patch
|
|
28
28
|
# @param [Hash] opts the optional parameters
|
29
29
|
# @return [TechnologyTypeListResponse]
|
30
30
|
def retrieve_technology_types(opts = {})
|
31
|
-
|
31
|
+
|
32
32
|
data, _status_code, _headers = retrieve_technology_types_with_http_info(opts)
|
33
33
|
data
|
34
34
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
Contact: engineering@usepatch.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -31,7 +31,7 @@ module Patch
|
|
31
31
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
32
32
|
def initialize(config = Configuration.default)
|
33
33
|
@config = config
|
34
|
-
@user_agent = "patch-ruby/1.16.
|
34
|
+
@user_agent = "patch-ruby/1.16.1"
|
35
35
|
@default_headers = {
|
36
36
|
'Content-Type' => 'application/json',
|
37
37
|
'User-Agent' => @user_agent
|
@@ -296,7 +296,7 @@ module Patch
|
|
296
296
|
@config.base_url(opts[:operation]) + path
|
297
297
|
end
|
298
298
|
|
299
|
-
# Update
|
299
|
+
# Update header and query params based on authentication settings.
|
300
300
|
#
|
301
301
|
# @param [Hash] header_params Header parameters
|
302
302
|
# @param [Hash] query_params Query parameters
|
@@ -335,8 +335,8 @@ module Patch
|
|
335
335
|
# @param [Array] content_types array for Content-Type
|
336
336
|
# @return [String] the Content-Type header (e.g. application/json)
|
337
337
|
def select_header_content_type(content_types)
|
338
|
-
#
|
339
|
-
return
|
338
|
+
# return nil by default
|
339
|
+
return if content_types.nil? || content_types.empty?
|
340
340
|
# use JSON when present, otherwise use the first one
|
341
341
|
json_content_type = content_types.find { |s| json_mime?(s) }
|
342
342
|
json_content_type || content_types.first
|
data/lib/patch_ruby/api_error.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
Contact: engineering@usepatch.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -147,13 +147,13 @@ module Patch
|
|
147
147
|
@server_operation_variables = {}
|
148
148
|
@api_key = {}
|
149
149
|
@api_key_prefix = {}
|
150
|
-
@timeout = 0
|
151
150
|
@client_side_validation = true
|
152
151
|
@verify_ssl = true
|
153
152
|
@verify_ssl_host = true
|
154
153
|
@params_encoding = nil
|
155
154
|
@cert_file = nil
|
156
155
|
@key_file = nil
|
156
|
+
@timeout = 0
|
157
157
|
@debugging = false
|
158
158
|
@inject_format = false
|
159
159
|
@force_ending_format = false
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
Contact: engineering@usepatch.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -43,6 +43,7 @@ module Patch
|
|
43
43
|
# List of attributes with nullable: true
|
44
44
|
def self.openapi_nullable
|
45
45
|
Set.new([
|
46
|
+
:'error'
|
46
47
|
])
|
47
48
|
end
|
48
49
|
|
@@ -90,10 +91,6 @@ module Patch
|
|
90
91
|
invalid_properties.push('invalid value for "success", success cannot be nil.')
|
91
92
|
end
|
92
93
|
|
93
|
-
if @error.nil?
|
94
|
-
invalid_properties.push('invalid value for "error", error cannot be nil.')
|
95
|
-
end
|
96
|
-
|
97
94
|
invalid_properties
|
98
95
|
end
|
99
96
|
|
@@ -101,7 +98,6 @@ module Patch
|
|
101
98
|
# @return true if the model is valid
|
102
99
|
def valid?
|
103
100
|
return false if @success.nil?
|
104
|
-
return false if @error.nil?
|
105
101
|
true
|
106
102
|
end
|
107
103
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
Contact: engineering@usepatch.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -47,6 +47,7 @@ module Patch
|
|
47
47
|
# List of attributes with nullable: true
|
48
48
|
def self.openapi_nullable
|
49
49
|
Set.new([
|
50
|
+
:'error',
|
50
51
|
:'data'
|
51
52
|
])
|
52
53
|
end
|
@@ -99,10 +100,6 @@ module Patch
|
|
99
100
|
invalid_properties.push('invalid value for "success", success cannot be nil.')
|
100
101
|
end
|
101
102
|
|
102
|
-
if @error.nil?
|
103
|
-
invalid_properties.push('invalid value for "error", error cannot be nil.')
|
104
|
-
end
|
105
|
-
|
106
103
|
invalid_properties
|
107
104
|
end
|
108
105
|
|
@@ -110,7 +107,6 @@ module Patch
|
|
110
107
|
# @return true if the model is valid
|
111
108
|
def valid?
|
112
109
|
return false if @success.nil?
|
113
|
-
return false if @error.nil?
|
114
110
|
true
|
115
111
|
end
|
116
112
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
Contact: engineering@usepatch.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -108,6 +108,9 @@ module Patch
|
|
108
108
|
end
|
109
109
|
|
110
110
|
if attributes.key?(:'order')
|
111
|
+
if (value = attributes[:'order']).is_a?(Hash)
|
112
|
+
self.order = value
|
113
|
+
end
|
111
114
|
self.order = attributes[:'order']
|
112
115
|
end
|
113
116
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
Contact: engineering@usepatch.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -246,7 +246,7 @@ module Patch
|
|
246
246
|
state_validator = EnumAttributeValidator.new('String', ["draft", "placed", "processing", "complete", "cancelled"])
|
247
247
|
return false unless state_validator.valid?(@state)
|
248
248
|
return false if @allocation_state.nil?
|
249
|
-
allocation_state_validator = EnumAttributeValidator.new('String', ["pending", "
|
249
|
+
allocation_state_validator = EnumAttributeValidator.new('String', ["pending", "allocated"])
|
250
250
|
return false unless allocation_state_validator.valid?(@allocation_state)
|
251
251
|
return false if @allocations.nil?
|
252
252
|
return false if @metadata.nil?
|
@@ -284,7 +284,7 @@ module Patch
|
|
284
284
|
# Custom attribute writer method checking allowed values (enum).
|
285
285
|
# @param [Object] allocation_state Object to be assigned
|
286
286
|
def allocation_state=(allocation_state)
|
287
|
-
validator = EnumAttributeValidator.new('String', ["pending", "
|
287
|
+
validator = EnumAttributeValidator.new('String', ["pending", "allocated"])
|
288
288
|
unless validator.valid?(allocation_state)
|
289
289
|
fail ArgumentError, "invalid value for \"allocation_state\", must be one of #{validator.allowable_values}."
|
290
290
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
Contact: engineering@usepatch.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -255,6 +255,9 @@ module Patch
|
|
255
255
|
end
|
256
256
|
|
257
257
|
if attributes.key?(:'standard')
|
258
|
+
if (value = attributes[:'standard']).is_a?(Hash)
|
259
|
+
self.standard = value
|
260
|
+
end
|
258
261
|
self.standard = attributes[:'standard']
|
259
262
|
end
|
260
263
|
|
data/lib/patch_ruby/version.rb
CHANGED
@@ -6,10 +6,10 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
Contact: engineering@usepatch.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module Patch
|
14
|
-
VERSION = '1.16.
|
14
|
+
VERSION = '1.16.1'
|
15
15
|
end
|
data/lib/patch_ruby.rb
CHANGED
data/patch_ruby.gemspec
CHANGED
data/spec/api_client_spec.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
Contact: engineering@usepatch.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -197,8 +197,8 @@ describe Patch::ApiClient do
|
|
197
197
|
let(:api_client) { Patch::ApiClient.new }
|
198
198
|
|
199
199
|
it 'works' do
|
200
|
-
expect(api_client.select_header_content_type(nil)).to
|
201
|
-
expect(api_client.select_header_content_type([])).to
|
200
|
+
expect(api_client.select_header_content_type(nil)).to be_nil
|
201
|
+
expect(api_client.select_header_content_type([])).to be_nil
|
202
202
|
|
203
203
|
expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
|
204
204
|
expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
data/spec/configuration_spec.rb
CHANGED
@@ -30,7 +30,7 @@ describe 'ErrorResponse' do
|
|
30
30
|
it_behaves_like "a generated class" do
|
31
31
|
let(:instance) { @instance }
|
32
32
|
let(:instance_hash) { { success: @instance.success, error: @instance.error, data: @instance.data } }
|
33
|
-
let(:nullable_properties) { Set.new([:data]) }
|
33
|
+
let(:nullable_properties) { Set.new([:data, :error]) }
|
34
34
|
end
|
35
35
|
|
36
36
|
describe 'test an instance of ErrorResponse' do
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: patch_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.16.
|
4
|
+
version: 1.16.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patch Technology
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -199,48 +199,48 @@ signing_key:
|
|
199
199
|
specification_version: 4
|
200
200
|
summary: Ruby wrapper for the Patch API
|
201
201
|
test_files:
|
202
|
-
- spec/api/technology_types_api_spec.rb
|
203
|
-
- spec/api/estimates_api_spec.rb
|
204
202
|
- spec/api/orders_api_spec.rb
|
205
203
|
- spec/api/projects_api_spec.rb
|
204
|
+
- spec/api/technology_types_api_spec.rb
|
205
|
+
- spec/api/estimates_api_spec.rb
|
206
206
|
- spec/api_client_spec.rb
|
207
207
|
- spec/configuration_spec.rb
|
208
208
|
- spec/constants.rb
|
209
|
-
- spec/factories/orders.rb
|
210
209
|
- spec/factories/allocations.rb
|
211
210
|
- spec/factories/meta_index_objects.rb
|
212
|
-
- spec/factories/
|
211
|
+
- spec/factories/error_responses.rb
|
212
|
+
- spec/factories/create_mass_estimate_requests.rb
|
213
|
+
- spec/factories/sdgs.rb
|
213
214
|
- spec/factories/order_responses.rb
|
214
|
-
- spec/factories/create_order_requests.rb
|
215
|
-
- spec/factories/projects.rb
|
216
215
|
- spec/factories/order_list_responses.rb
|
217
|
-
- spec/factories/
|
218
|
-
- spec/factories/create_mass_estimate_requests.rb
|
219
|
-
- spec/factories/estimate_responses.rb
|
220
|
-
- spec/factories/estimate_list_responses.rb
|
216
|
+
- spec/factories/estimates.rb
|
221
217
|
- spec/factories/project_responses.rb
|
218
|
+
- spec/factories/projects.rb
|
222
219
|
- spec/factories/technology_type.rb
|
223
|
-
- spec/factories/
|
220
|
+
- spec/factories/estimate_responses.rb
|
221
|
+
- spec/factories/estimate_list_responses.rb
|
222
|
+
- spec/factories/orders.rb
|
224
223
|
- spec/factories/parent_technology_type.rb
|
225
|
-
- spec/factories/
|
226
|
-
- spec/
|
224
|
+
- spec/factories/create_order_requests.rb
|
225
|
+
- spec/factories/project_list_responses.rb
|
227
226
|
- spec/integration/projects_spec.rb
|
228
|
-
- spec/integration/estimates_spec.rb
|
229
227
|
- spec/integration/orders_spec.rb
|
230
|
-
- spec/
|
231
|
-
- spec/
|
232
|
-
- spec/models/project_list_response_spec.rb
|
233
|
-
- spec/models/order_list_response_spec.rb
|
228
|
+
- spec/integration/projects/technology_types_spec.rb
|
229
|
+
- spec/integration/estimates_spec.rb
|
234
230
|
- spec/models/allocation_spec.rb
|
235
231
|
- spec/models/order_response_spec.rb
|
236
232
|
- spec/models/error_response_spec.rb
|
237
|
-
- spec/models/estimate_list_response_spec.rb
|
238
233
|
- spec/models/create_order_request_spec.rb
|
239
|
-
- spec/models/
|
234
|
+
- spec/models/project_list_response_spec.rb
|
235
|
+
- spec/models/estimate_list_response_spec.rb
|
240
236
|
- spec/models/project_spec.rb
|
237
|
+
- spec/models/estimate_response_spec.rb
|
238
|
+
- spec/models/order_list_response_spec.rb
|
239
|
+
- spec/models/order_spec.rb
|
241
240
|
- spec/models/project_response_spec.rb
|
241
|
+
- spec/models/meta_index_object_spec.rb
|
242
242
|
- spec/models/estimate_spec.rb
|
243
|
-
- spec/models/
|
243
|
+
- spec/models/create_mass_estimate_request_spec.rb
|
244
244
|
- spec/patch_ruby_spec.rb
|
245
245
|
- spec/spec_helper.rb
|
246
246
|
- spec/support/shared/generated_classes.rb
|