Skip to content

Commit bf1db1e

Browse files
committed
Cop
1 parent c6c2429 commit bf1db1e

Some content is hidden

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

47 files changed

+56
-83
lines changed

Gemfile

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

Gemfile.lock

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ GEM
1212
i18n (>= 1.6, < 2)
1313
minitest (>= 5.1)
1414
tzinfo (~> 2.0)
15-
ast (2.4.2)
15+
ast (2.4.3)
1616
byebug (11.1.3)
1717
coderay (1.1.3)
1818
concurrent-ruby (1.2.2)
@@ -24,21 +24,26 @@ GEM
2424
ffi (1.17.2)
2525
i18n (1.12.0)
2626
concurrent-ruby (~> 1.0)
27-
jaro_winkler (1.5.6)
27+
json (2.12.0)
28+
language_server-protocol (3.17.0.5)
29+
lint_roller (1.1.0)
2830
method_source (1.0.0)
2931
minitest (5.18.0)
30-
parallel (1.20.1)
31-
parser (3.0.2.0)
32+
parallel (1.27.0)
33+
parser (3.3.8.0)
3234
ast (~> 2.4.1)
35+
racc
36+
prism (1.4.0)
3337
pry (0.14.1)
3438
coderay (~> 1.1)
3539
method_source (~> 1.0)
3640
pry-byebug (3.8.0)
3741
byebug (~> 11.0)
3842
pry (~> 0.10)
39-
psych (4.0.1)
40-
rainbow (3.0.0)
43+
racc (1.8.1)
44+
rainbow (3.1.1)
4145
rake (13.0.6)
46+
regexp_parser (2.10.0)
4247
rspec (3.10.0)
4348
rspec-core (~> 3.10.0)
4449
rspec-expectations (~> 3.10.0)
@@ -52,20 +57,28 @@ GEM
5257
diff-lcs (>= 1.2.0, < 2.0)
5358
rspec-support (~> 3.10.0)
5459
rspec-support (3.10.2)
55-
rubocop (0.66.0)
56-
jaro_winkler (~> 1.5.1)
60+
rubocop (1.75.6)
61+
json (~> 2.3)
62+
language_server-protocol (~> 3.17.0.2)
63+
lint_roller (~> 1.1.0)
5764
parallel (~> 1.10)
58-
parser (>= 2.5, != 2.5.1.1)
59-
psych (>= 3.1.0)
65+
parser (>= 3.3.0.2)
6066
rainbow (>= 2.2.2, < 4.0)
67+
regexp_parser (>= 2.9.3, < 3.0)
68+
rubocop-ast (>= 1.44.0, < 2.0)
6169
ruby-progressbar (~> 1.7)
62-
unicode-display_width (>= 1.4.0, < 1.6)
63-
ruby-progressbar (1.11.0)
70+
unicode-display_width (>= 2.4.0, < 4.0)
71+
rubocop-ast (1.44.1)
72+
parser (>= 3.3.7.2)
73+
prism (~> 1.4)
74+
ruby-progressbar (1.13.0)
6475
typhoeus (1.4.1)
6576
ethon (>= 0.9.0)
6677
tzinfo (2.0.6)
6778
concurrent-ruby (~> 1.0)
68-
unicode-display_width (1.5.0)
79+
unicode-display_width (3.1.4)
80+
unicode-emoji (~> 4.0, >= 4.0.4)
81+
unicode-emoji (4.0.4)
6982

7083
PLATFORMS
7184
arm64-darwin-20
@@ -83,7 +96,7 @@ DEPENDENCIES
8396
pry-byebug
8497
rake (~> 13.0.1)
8598
rspec (~> 3.6, >= 3.6.0)
86-
rubocop (~> 0.66.0)
99+
rubocop (~> 1.75.6)
87100

88101
BUNDLED WITH
89102
2.3.9

lib/patch_ruby/api/estimates_api.rb

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def initialize(api_client = ApiClient.default)
3838
# @option opts [Integer] :patch_version
3939
# @return [EstimateResponse]
4040
def create_air_shipping_estimate(create_air_shipping_estimate_request = {}, opts = {})
41-
_create_air_shipping_estimate_request = Patch::CreateAirShippingEstimateRequest.new(create_air_shipping_estimate_request)
41+
_create_air_shipping_estimate_request = Patch::CreateAirShippingEstimateRequest.new(create_air_shipping_estimate_request)
4242
data, _status_code, _headers = create_air_shipping_estimate_with_http_info(_create_air_shipping_estimate_request, opts)
4343
data
4444
end
@@ -71,7 +71,7 @@ def create_air_shipping_estimate_with_http_info(create_air_shipping_estimate_req
7171
# HTTP header 'Content-Type'
7272
content_type = @api_client.select_header_content_type(['application/json'])
7373
if !content_type.nil?
74-
header_params['Content-Type'] = content_type
74+
header_params['Content-Type'] = content_type
7575
end
7676
header_params['Patch-Version'] = 2
7777
header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil?
@@ -112,7 +112,7 @@ def create_air_shipping_estimate_with_http_info(create_air_shipping_estimate_req
112112
# @option opts [Integer] :patch_version
113113
# @return [EstimateResponse]
114114
def create_bitcoin_estimate(create_bitcoin_estimate_request = {}, opts = {})
115-
_create_bitcoin_estimate_request = Patch::CreateBitcoinEstimateRequest.new(create_bitcoin_estimate_request)
115+
_create_bitcoin_estimate_request = Patch::CreateBitcoinEstimateRequest.new(create_bitcoin_estimate_request)
116116
data, _status_code, _headers = create_bitcoin_estimate_with_http_info(_create_bitcoin_estimate_request, opts)
117117
data
118118
end
@@ -145,7 +145,7 @@ def create_bitcoin_estimate_with_http_info(create_bitcoin_estimate_request, opts
145145
# HTTP header 'Content-Type'
146146
content_type = @api_client.select_header_content_type(['application/json'])
147147
if !content_type.nil?
148-
header_params['Content-Type'] = content_type
148+
header_params['Content-Type'] = content_type
149149
end
150150
header_params['Patch-Version'] = 2
151151
header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil?
@@ -186,7 +186,7 @@ def create_bitcoin_estimate_with_http_info(create_bitcoin_estimate_request, opts
186186
# @option opts [Integer] :patch_version
187187
# @return [EstimateResponse]
188188
def create_flight_estimate(create_flight_estimate_request = {}, opts = {})
189-
_create_flight_estimate_request = Patch::CreateFlightEstimateRequest.new(create_flight_estimate_request)
189+
_create_flight_estimate_request = Patch::CreateFlightEstimateRequest.new(create_flight_estimate_request)
190190
data, _status_code, _headers = create_flight_estimate_with_http_info(_create_flight_estimate_request, opts)
191191
data
192192
end
@@ -219,7 +219,7 @@ def create_flight_estimate_with_http_info(create_flight_estimate_request, opts =
219219
# HTTP header 'Content-Type'
220220
content_type = @api_client.select_header_content_type(['application/json'])
221221
if !content_type.nil?
222-
header_params['Content-Type'] = content_type
222+
header_params['Content-Type'] = content_type
223223
end
224224
header_params['Patch-Version'] = 2
225225
header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil?
@@ -260,7 +260,7 @@ def create_flight_estimate_with_http_info(create_flight_estimate_request, opts =
260260
# @option opts [Integer] :patch_version
261261
# @return [EstimateResponse]
262262
def create_mass_estimate(create_mass_estimate_request = {}, opts = {})
263-
_create_mass_estimate_request = Patch::CreateMassEstimateRequest.new(create_mass_estimate_request)
263+
_create_mass_estimate_request = Patch::CreateMassEstimateRequest.new(create_mass_estimate_request)
264264
data, _status_code, _headers = create_mass_estimate_with_http_info(_create_mass_estimate_request, opts)
265265
data
266266
end
@@ -293,7 +293,7 @@ def create_mass_estimate_with_http_info(create_mass_estimate_request, opts = {})
293293
# HTTP header 'Content-Type'
294294
content_type = @api_client.select_header_content_type(['application/json'])
295295
if !content_type.nil?
296-
header_params['Content-Type'] = content_type
296+
header_params['Content-Type'] = content_type
297297
end
298298
header_params['Patch-Version'] = 2
299299
header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil?
@@ -334,7 +334,7 @@ def create_mass_estimate_with_http_info(create_mass_estimate_request, opts = {})
334334
# @option opts [Integer] :patch_version
335335
# @return [EstimateResponse]
336336
def create_rail_shipping_estimate(create_rail_shipping_estimate_request = {}, opts = {})
337-
_create_rail_shipping_estimate_request = Patch::CreateRailShippingEstimateRequest.new(create_rail_shipping_estimate_request)
337+
_create_rail_shipping_estimate_request = Patch::CreateRailShippingEstimateRequest.new(create_rail_shipping_estimate_request)
338338
data, _status_code, _headers = create_rail_shipping_estimate_with_http_info(_create_rail_shipping_estimate_request, opts)
339339
data
340340
end
@@ -367,7 +367,7 @@ def create_rail_shipping_estimate_with_http_info(create_rail_shipping_estimate_r
367367
# HTTP header 'Content-Type'
368368
content_type = @api_client.select_header_content_type(['application/json'])
369369
if !content_type.nil?
370-
header_params['Content-Type'] = content_type
370+
header_params['Content-Type'] = content_type
371371
end
372372
header_params['Patch-Version'] = 2
373373
header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil?
@@ -408,7 +408,7 @@ def create_rail_shipping_estimate_with_http_info(create_rail_shipping_estimate_r
408408
# @option opts [Integer] :patch_version
409409
# @return [EstimateResponse]
410410
def create_road_shipping_estimate(create_road_shipping_estimate_request = {}, opts = {})
411-
_create_road_shipping_estimate_request = Patch::CreateRoadShippingEstimateRequest.new(create_road_shipping_estimate_request)
411+
_create_road_shipping_estimate_request = Patch::CreateRoadShippingEstimateRequest.new(create_road_shipping_estimate_request)
412412
data, _status_code, _headers = create_road_shipping_estimate_with_http_info(_create_road_shipping_estimate_request, opts)
413413
data
414414
end
@@ -441,7 +441,7 @@ def create_road_shipping_estimate_with_http_info(create_road_shipping_estimate_r
441441
# HTTP header 'Content-Type'
442442
content_type = @api_client.select_header_content_type(['application/json'])
443443
if !content_type.nil?
444-
header_params['Content-Type'] = content_type
444+
header_params['Content-Type'] = content_type
445445
end
446446
header_params['Patch-Version'] = 2
447447
header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil?
@@ -482,7 +482,7 @@ def create_road_shipping_estimate_with_http_info(create_road_shipping_estimate_r
482482
# @option opts [Integer] :patch_version
483483
# @return [EstimateResponse]
484484
def create_sea_shipping_estimate(create_sea_shipping_estimate_request = {}, opts = {})
485-
_create_sea_shipping_estimate_request = Patch::CreateSeaShippingEstimateRequest.new(create_sea_shipping_estimate_request)
485+
_create_sea_shipping_estimate_request = Patch::CreateSeaShippingEstimateRequest.new(create_sea_shipping_estimate_request)
486486
data, _status_code, _headers = create_sea_shipping_estimate_with_http_info(_create_sea_shipping_estimate_request, opts)
487487
data
488488
end
@@ -515,7 +515,7 @@ def create_sea_shipping_estimate_with_http_info(create_sea_shipping_estimate_req
515515
# HTTP header 'Content-Type'
516516
content_type = @api_client.select_header_content_type(['application/json'])
517517
if !content_type.nil?
518-
header_params['Content-Type'] = content_type
518+
header_params['Content-Type'] = content_type
519519
end
520520
header_params['Patch-Version'] = 2
521521
header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil?
@@ -684,4 +684,4 @@ def retrieve_estimates_with_http_info(opts = {})
684684
return data, status_code, headers
685685
end
686686
end
687-
end
687+
end

lib/patch_ruby/api/order_line_items_api.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def initialize(api_client = ApiClient.default)
3333
# @option opts [Integer] :patch_version
3434
# @return [OrderLineItemResponse]
3535
def create_order_line_item(order_id, create_order_line_item_request = {}, opts = {})
36-
_create_order_line_item_request = Patch::CreateOrderLineItemRequest.new(create_order_line_item_request)
36+
_create_order_line_item_request = Patch::CreateOrderLineItemRequest.new(create_order_line_item_request)
3737
data, _status_code, _headers = create_order_line_item_with_http_info(order_id, _create_order_line_item_request, opts)
3838
data
3939
end
@@ -71,7 +71,7 @@ def create_order_line_item_with_http_info(order_id, create_order_line_item_reque
7171
# HTTP header 'Content-Type'
7272
content_type = @api_client.select_header_content_type(['application/json'])
7373
if !content_type.nil?
74-
header_params['Content-Type'] = content_type
74+
header_params['Content-Type'] = content_type
7575
end
7676
header_params['Patch-Version'] = 2
7777
header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil?
@@ -189,7 +189,7 @@ def delete_order_line_item_with_http_info(order_id, serial_number, opts = {})
189189
# @option opts [Integer] :patch_version
190190
# @return [OrderLineItemResponse]
191191
def update_order_line_item(order_id, serial_number, update_order_line_item_request = {}, opts = {})
192-
_update_order_line_item_request = Patch::UpdateOrderLineItemRequest.new(update_order_line_item_request)
192+
_update_order_line_item_request = Patch::UpdateOrderLineItemRequest.new(update_order_line_item_request)
193193
data, _status_code, _headers = update_order_line_item_with_http_info(order_id, serial_number, _update_order_line_item_request, opts)
194194
data
195195
end
@@ -232,7 +232,7 @@ def update_order_line_item_with_http_info(order_id, serial_number, update_order_
232232
# HTTP header 'Content-Type'
233233
content_type = @api_client.select_header_content_type(['application/json'])
234234
if !content_type.nil?
235-
header_params['Content-Type'] = content_type
235+
header_params['Content-Type'] = content_type
236236
end
237237
header_params['Patch-Version'] = 2
238238
header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil?
@@ -266,4 +266,4 @@ def update_order_line_item_with_http_info(order_id, serial_number, update_order_
266266
return data, status_code, headers
267267
end
268268
end
269-
end
269+
end

lib/patch_ruby/api/orders_api.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def cancel_order_with_http_info(id, opts = {})
104104
# @option opts [Integer] :patch_version
105105
# @return [OrderResponse]
106106
def create_order(create_order_request = {}, opts = {})
107-
_create_order_request = Patch::CreateOrderRequest.new(create_order_request)
107+
_create_order_request = Patch::CreateOrderRequest.new(create_order_request)
108108
data, _status_code, _headers = create_order_with_http_info(_create_order_request, opts)
109109
data
110110
end
@@ -137,7 +137,7 @@ def create_order_with_http_info(create_order_request, opts = {})
137137
# HTTP header 'Content-Type'
138138
content_type = @api_client.select_header_content_type(['application/json'])
139139
if !content_type.nil?
140-
header_params['Content-Type'] = content_type
140+
header_params['Content-Type'] = content_type
141141
end
142142
header_params['Patch-Version'] = 2
143143
header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil?
@@ -282,7 +282,7 @@ def place_order_with_http_info(id, opts = {})
282282
# HTTP header 'Content-Type'
283283
content_type = @api_client.select_header_content_type(['application/json'])
284284
if !content_type.nil?
285-
header_params['Content-Type'] = content_type
285+
header_params['Content-Type'] = content_type
286286
end
287287
header_params['Patch-Version'] = 2
288288
header_params[:'Patch-Version'] = opts[:'patch_version'] if !opts[:'patch_version'].nil?
@@ -460,4 +460,4 @@ def retrieve_orders_with_http_info(opts = {})
460460
return data, status_code, headers
461461
end
462462
end
463-
end
463+
end

lib/patch_ruby/api/projects_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,4 +174,4 @@ def retrieve_projects_with_http_info(opts = {})
174174
return data, status_code, headers
175175
end
176176
end
177-
end
177+
end

lib/patch_ruby/api/technology_types_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ def retrieve_technology_types_with_http_info(opts = {})
8686
return data, status_code, headers
8787
end
8888
end
89-
end
89+
end

lib/patch_ruby/configuration.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,7 @@ def server_settings
242242
end
243243

244244
def operation_server_settings
245-
{
246-
}
245+
{}
247246
end
248247

249248
# Returns URL based on server settings
@@ -279,6 +278,5 @@ def server_url(index, variables = {}, servers = nil)
279278

280279
url
281280
end
282-
283281
end
284282
end

lib/patch_ruby/models/create_air_shipping_estimate_request.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,5 @@ def _to_hash(value)
370370
value
371371
end
372372
end
373-
374373
end
375374
end

lib/patch_ruby/models/create_bitcoin_estimate_request.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,5 @@ def _to_hash(value)
267267
value
268268
end
269269
end
270-
271270
end
272271
end

lib/patch_ruby/models/create_flight_estimate_request.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,5 @@ def _to_hash(value)
321321
value
322322
end
323323
end
324-
325324
end
326325
end

lib/patch_ruby/models/create_mass_estimate_request.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,5 @@ def _to_hash(value)
278278
value
279279
end
280280
end
281-
282281
end
283282
end

lib/patch_ruby/models/create_order_line_item_request.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,5 @@ def _to_hash(value)
439439
value
440440
end
441441
end
442-
443442
end
444443
end

lib/patch_ruby/models/create_order_request.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,5 @@ def _to_hash(value)
481481
value
482482
end
483483
end
484-
485484
end
486485
end

lib/patch_ruby/models/create_rail_shipping_estimate_request.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,5 @@ def _to_hash(value)
400400
value
401401
end
402402
end
403-
404403
end
405404
end

lib/patch_ruby/models/create_road_shipping_estimate_request.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,5 @@ def _to_hash(value)
513513
value
514514
end
515515
end
516-
517516
end
518517
end

lib/patch_ruby/models/create_sea_shipping_estimate_request.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,5 @@ def _to_hash(value)
457457
value
458458
end
459459
end
460-
461460
end
462461
end

0 commit comments

Comments
 (0)