Skip to content

Commit 4c8f0f5

Browse files
pcothenetkleinjm
andauthored
Update to generator 5.2.1 (#36)
* Update to generator 5.0.0 * 5.1.0 * Test with standard for model generic * Re-add partial * Bite some bullets * Remove custom template * Generate version automatically * 5.2.1 * Things * Fix missing_method * Fix error message * Update version * Update changelog * Remove explicit json dependency * Update CHANGELOG.md Co-authored-by: James Klein <[email protected]> Co-authored-by: James Klein <[email protected]>
1 parent ae67c8d commit 4c8f0f5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+835
-550
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.10.0] - 2021-08-27
9+
10+
### Added
11+
12+
- Adds custom User-Agent header
13+
814
## [1.9.0] - 2021-08-17
915

1016
### Added

Gemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@ gemspec
55
group :development, :test do
66
gem 'rake', '~> 13.0.1'
77
gem 'pry-byebug'
8-
gem 'rubocop'
9-
gem 'factory_bot'
8+
gem 'rubocop', '~> 0.66.0'
109
end

Gemfile.lock

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,45 @@
11
PATH
22
remote: .
33
specs:
4-
patch_ruby (1.9.0)
5-
json (~> 2.1, >= 2.1.0)
4+
patch_ruby (1.10.0)
65
typhoeus (~> 1.0, >= 1.0.1)
76

87
GEM
98
remote: https://rubygems.org/
109
specs:
11-
activesupport (6.1.1)
10+
activesupport (6.1.4.1)
1211
concurrent-ruby (~> 1.0, >= 1.0.2)
1312
i18n (>= 1.6, < 2)
1413
minitest (>= 5.1)
1514
tzinfo (~> 2.0)
1615
zeitwerk (~> 2.3)
17-
ast (2.4.1)
16+
ast (2.4.2)
1817
byebug (11.1.3)
1918
coderay (1.1.3)
20-
concurrent-ruby (1.1.7)
19+
concurrent-ruby (1.1.9)
2120
diff-lcs (1.4.3)
2221
ethon (0.14.0)
2322
ffi (>= 1.15.0)
24-
factory_bot (6.1.0)
23+
factory_bot (6.2.0)
2524
activesupport (>= 5.0.0)
2625
ffi (1.15.3)
27-
i18n (1.8.7)
26+
i18n (1.8.10)
2827
concurrent-ruby (~> 1.0)
29-
json (2.5.1)
28+
jaro_winkler (1.5.4)
3029
method_source (1.0.0)
31-
minitest (5.14.3)
32-
parallel (1.19.2)
33-
parser (2.7.1.4)
30+
minitest (5.14.4)
31+
parallel (1.20.1)
32+
parser (3.0.2.0)
3433
ast (~> 2.4.1)
3534
pry (0.13.1)
3635
coderay (~> 1.1)
3736
method_source (~> 1.0)
3837
pry-byebug (3.9.0)
3938
byebug (~> 11.0)
4039
pry (~> 0.13.0)
40+
psych (4.0.1)
4141
rainbow (3.0.0)
4242
rake (13.0.1)
43-
regexp_parser (1.7.1)
44-
rexml (3.2.4)
4543
rspec (3.9.0)
4644
rspec-core (~> 3.9.0)
4745
rspec-expectations (~> 3.9.0)
@@ -55,35 +53,32 @@ GEM
5553
diff-lcs (>= 1.2.0, < 2.0)
5654
rspec-support (~> 3.9.0)
5755
rspec-support (3.9.3)
58-
rubocop (0.88.0)
56+
rubocop (0.66.0)
57+
jaro_winkler (~> 1.5.1)
5958
parallel (~> 1.10)
60-
parser (>= 2.7.1.1)
59+
parser (>= 2.5, != 2.5.1.1)
60+
psych (>= 3.1.0)
6161
rainbow (>= 2.2.2, < 4.0)
62-
regexp_parser (>= 1.7)
63-
rexml
64-
rubocop-ast (>= 0.1.0, < 1.0)
6562
ruby-progressbar (~> 1.7)
66-
unicode-display_width (>= 1.4.0, < 2.0)
67-
rubocop-ast (0.3.0)
68-
parser (>= 2.7.1.4)
69-
ruby-progressbar (1.10.1)
63+
unicode-display_width (>= 1.4.0, < 1.6)
64+
ruby-progressbar (1.11.0)
7065
typhoeus (1.4.0)
7166
ethon (>= 0.9.0)
7267
tzinfo (2.0.4)
7368
concurrent-ruby (~> 1.0)
74-
unicode-display_width (1.7.0)
69+
unicode-display_width (1.5.0)
7570
zeitwerk (2.4.2)
7671

7772
PLATFORMS
7873
ruby
7974

8075
DEPENDENCIES
81-
factory_bot
76+
factory_bot (~> 6.2)
8277
patch_ruby!
8378
pry-byebug
8479
rake (~> 13.0.1)
8580
rspec (~> 3.6, >= 3.6.0)
86-
rubocop
81+
rubocop (~> 0.66.0)
8782

8883
BUNDLED WITH
8984
2.2.14

lib/patch_ruby.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The version of the OpenAPI document: v1
77
88
Generated by: https://openapi-generator.tech
9-
OpenAPI Generator version: 4.3.1
9+
OpenAPI Generator version: 5.2.1
1010
1111
=end
1212

lib/patch_ruby/api/estimates_api.rb

Lines changed: 33 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
The version of the OpenAPI document: v1
77
88
Generated by: https://openapi-generator.tech
9-
OpenAPI Generator version: 4.3.1
9+
OpenAPI Generator version: 5.2.1
1010
1111
=end
1212

@@ -70,15 +70,16 @@ def create_bitcoin_estimate_with_http_info(create_bitcoin_estimate_request, opts
7070
form_params = opts[:form_params] || {}
7171

7272
# http body (model)
73-
post_body = opts[:body] || @api_client.object_to_http_body(create_bitcoin_estimate_request)
73+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_bitcoin_estimate_request)
7474

7575
# return_type
76-
return_type = opts[:return_type] || 'EstimateResponse'
76+
return_type = opts[:debug_return_type] || 'EstimateResponse'
7777

7878
# auth_names
79-
auth_names = opts[:auth_names] || ['bearer_auth']
79+
auth_names = opts[:debug_auth_names] || ['bearer_auth']
8080

8181
new_options = opts.merge(
82+
:operation => :"EstimatesApi.create_bitcoin_estimate",
8283
:header_params => header_params,
8384
:query_params => query_params,
8485
:form_params => form_params,
@@ -134,15 +135,16 @@ def create_ethereum_estimate_with_http_info(create_ethereum_estimate_request, op
134135
form_params = opts[:form_params] || {}
135136

136137
# http body (model)
137-
post_body = opts[:body] || @api_client.object_to_http_body(create_ethereum_estimate_request)
138+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_ethereum_estimate_request)
138139

139140
# return_type
140-
return_type = opts[:return_type] || 'EstimateResponse'
141+
return_type = opts[:debug_return_type] || 'EstimateResponse'
141142

142143
# auth_names
143-
auth_names = opts[:auth_names] || ['bearer_auth']
144+
auth_names = opts[:debug_auth_names] || ['bearer_auth']
144145

145146
new_options = opts.merge(
147+
:operation => :"EstimatesApi.create_ethereum_estimate",
146148
:header_params => header_params,
147149
:query_params => query_params,
148150
:form_params => form_params,
@@ -198,15 +200,16 @@ def create_flight_estimate_with_http_info(create_flight_estimate_request, opts =
198200
form_params = opts[:form_params] || {}
199201

200202
# http body (model)
201-
post_body = opts[:body] || @api_client.object_to_http_body(create_flight_estimate_request)
203+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_flight_estimate_request)
202204

203205
# return_type
204-
return_type = opts[:return_type] || 'EstimateResponse'
206+
return_type = opts[:debug_return_type] || 'EstimateResponse'
205207

206208
# auth_names
207-
auth_names = opts[:auth_names] || ['bearer_auth']
209+
auth_names = opts[:debug_auth_names] || ['bearer_auth']
208210

209211
new_options = opts.merge(
212+
:operation => :"EstimatesApi.create_flight_estimate",
210213
:header_params => header_params,
211214
:query_params => query_params,
212215
:form_params => form_params,
@@ -262,15 +265,16 @@ def create_mass_estimate_with_http_info(create_mass_estimate_request, opts = {})
262265
form_params = opts[:form_params] || {}
263266

264267
# http body (model)
265-
post_body = opts[:body] || @api_client.object_to_http_body(create_mass_estimate_request)
268+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_mass_estimate_request)
266269

267270
# return_type
268-
return_type = opts[:return_type] || 'EstimateResponse'
271+
return_type = opts[:debug_return_type] || 'EstimateResponse'
269272

270273
# auth_names
271-
auth_names = opts[:auth_names] || ['bearer_auth']
274+
auth_names = opts[:debug_auth_names] || ['bearer_auth']
272275

273276
new_options = opts.merge(
277+
:operation => :"EstimatesApi.create_mass_estimate",
274278
:header_params => header_params,
275279
:query_params => query_params,
276280
:form_params => form_params,
@@ -326,15 +330,16 @@ def create_shipping_estimate_with_http_info(create_shipping_estimate_request, op
326330
form_params = opts[:form_params] || {}
327331

328332
# http body (model)
329-
post_body = opts[:body] || @api_client.object_to_http_body(create_shipping_estimate_request)
333+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_shipping_estimate_request)
330334

331335
# return_type
332-
return_type = opts[:return_type] || 'EstimateResponse'
336+
return_type = opts[:debug_return_type] || 'EstimateResponse'
333337

334338
# auth_names
335-
auth_names = opts[:auth_names] || ['bearer_auth']
339+
auth_names = opts[:debug_auth_names] || ['bearer_auth']
336340

337341
new_options = opts.merge(
342+
:operation => :"EstimatesApi.create_shipping_estimate",
338343
:header_params => header_params,
339344
:query_params => query_params,
340345
:form_params => form_params,
@@ -390,15 +395,16 @@ def create_vehicle_estimate_with_http_info(create_vehicle_estimate_request, opts
390395
form_params = opts[:form_params] || {}
391396

392397
# http body (model)
393-
post_body = opts[:body] || @api_client.object_to_http_body(create_vehicle_estimate_request)
398+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_vehicle_estimate_request)
394399

395400
# return_type
396-
return_type = opts[:return_type] || 'EstimateResponse'
401+
return_type = opts[:debug_return_type] || 'EstimateResponse'
397402

398403
# auth_names
399-
auth_names = opts[:auth_names] || ['bearer_auth']
404+
auth_names = opts[:debug_auth_names] || ['bearer_auth']
400405

401406
new_options = opts.merge(
407+
:operation => :"EstimatesApi.create_vehicle_estimate",
402408
:header_params => header_params,
403409
:query_params => query_params,
404410
:form_params => form_params,
@@ -452,15 +458,16 @@ def retrieve_estimate_with_http_info(id, opts = {})
452458
form_params = opts[:form_params] || {}
453459

454460
# http body (model)
455-
post_body = opts[:body]
461+
post_body = opts[:debug_body]
456462

457463
# return_type
458-
return_type = opts[:return_type] || 'EstimateResponse'
464+
return_type = opts[:debug_return_type] || 'EstimateResponse'
459465

460466
# auth_names
461-
auth_names = opts[:auth_names] || ['bearer_auth']
467+
auth_names = opts[:debug_auth_names] || ['bearer_auth']
462468

463469
new_options = opts.merge(
470+
:operation => :"EstimatesApi.retrieve_estimate",
464471
:header_params => header_params,
465472
:query_params => query_params,
466473
:form_params => form_params,
@@ -511,15 +518,16 @@ def retrieve_estimates_with_http_info(opts = {})
511518
form_params = opts[:form_params] || {}
512519

513520
# http body (model)
514-
post_body = opts[:body]
521+
post_body = opts[:debug_body]
515522

516523
# return_type
517-
return_type = opts[:return_type] || 'EstimateListResponse'
524+
return_type = opts[:debug_return_type] || 'EstimateListResponse'
518525

519526
# auth_names
520-
auth_names = opts[:auth_names] || ['bearer_auth']
527+
auth_names = opts[:debug_auth_names] || ['bearer_auth']
521528

522529
new_options = opts.merge(
530+
:operation => :"EstimatesApi.retrieve_estimates",
523531
:header_params => header_params,
524532
:query_params => query_params,
525533
:form_params => form_params,

0 commit comments

Comments
 (0)