Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.10.0] - 2021-08-27

### Added

- Adds custom User-Agent header

## [1.9.0] - 2021-08-17

### Added
Expand Down
3 changes: 1 addition & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ gemspec
group :development, :test do
gem 'rake', '~> 13.0.1'
gem 'pry-byebug'
gem 'rubocop'
gem 'factory_bot'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is factorybot a dependency of another gem? I see it's removed here but still in the lock file

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It gets added via the gemspec file (interestingly the template does not manage the Gemfile directly)

gem 'rubocop', '~> 0.66.0'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still in the lockfile thanks to the gemspec file.

end
45 changes: 20 additions & 25 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,47 +1,45 @@
PATH
remote: .
specs:
patch_ruby (1.9.0)
json (~> 2.1, >= 2.1.0)
patch_ruby (1.10.0)
typhoeus (~> 1.0, >= 1.0.1)

GEM
remote: https://rubygems.org/
specs:
activesupport (6.1.1)
activesupport (6.1.4.1)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
ast (2.4.1)
ast (2.4.2)
byebug (11.1.3)
coderay (1.1.3)
concurrent-ruby (1.1.7)
concurrent-ruby (1.1.9)
diff-lcs (1.4.3)
ethon (0.14.0)
ffi (>= 1.15.0)
factory_bot (6.1.0)
factory_bot (6.2.0)
activesupport (>= 5.0.0)
ffi (1.15.3)
i18n (1.8.7)
i18n (1.8.10)
concurrent-ruby (~> 1.0)
json (2.5.1)
jaro_winkler (1.5.4)
method_source (1.0.0)
minitest (5.14.3)
parallel (1.19.2)
parser (2.7.1.4)
minitest (5.14.4)
parallel (1.20.1)
parser (3.0.2.0)
ast (~> 2.4.1)
pry (0.13.1)
coderay (~> 1.1)
method_source (~> 1.0)
pry-byebug (3.9.0)
byebug (~> 11.0)
pry (~> 0.13.0)
psych (4.0.1)
rainbow (3.0.0)
rake (13.0.1)
regexp_parser (1.7.1)
rexml (3.2.4)
rspec (3.9.0)
rspec-core (~> 3.9.0)
rspec-expectations (~> 3.9.0)
Expand All @@ -55,35 +53,32 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-support (3.9.3)
rubocop (0.88.0)
rubocop (0.66.0)
jaro_winkler (~> 1.5.1)
parallel (~> 1.10)
parser (>= 2.7.1.1)
parser (>= 2.5, != 2.5.1.1)
psych (>= 3.1.0)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.7)
rexml
rubocop-ast (>= 0.1.0, < 1.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 2.0)
rubocop-ast (0.3.0)
parser (>= 2.7.1.4)
ruby-progressbar (1.10.1)
unicode-display_width (>= 1.4.0, < 1.6)
ruby-progressbar (1.11.0)
typhoeus (1.4.0)
ethon (>= 0.9.0)
tzinfo (2.0.4)
concurrent-ruby (~> 1.0)
unicode-display_width (1.7.0)
unicode-display_width (1.5.0)
zeitwerk (2.4.2)

PLATFORMS
ruby

DEPENDENCIES
factory_bot
factory_bot (~> 6.2)
patch_ruby!
pry-byebug
rake (~> 13.0.1)
rspec (~> 3.6, >= 3.6.0)
rubocop
rubocop (~> 0.66.0)

BUNDLED WITH
2.2.14
2 changes: 1 addition & 1 deletion lib/patch_ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 4.3.1
OpenAPI Generator version: 5.2.1

=end

Expand Down
58 changes: 33 additions & 25 deletions lib/patch_ruby/api/estimates_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 4.3.1
OpenAPI Generator version: 5.2.1

=end

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

# http body (model)
post_body = opts[:body] || @api_client.object_to_http_body(create_bitcoin_estimate_request)
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_bitcoin_estimate_request)

# return_type
return_type = opts[:return_type] || 'EstimateResponse'
return_type = opts[:debug_return_type] || 'EstimateResponse'

# auth_names
auth_names = opts[:auth_names] || ['bearer_auth']
auth_names = opts[:debug_auth_names] || ['bearer_auth']

new_options = opts.merge(
:operation => :"EstimatesApi.create_bitcoin_estimate",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
Expand Down Expand Up @@ -134,15 +135,16 @@ def create_ethereum_estimate_with_http_info(create_ethereum_estimate_request, op
form_params = opts[:form_params] || {}

# http body (model)
post_body = opts[:body] || @api_client.object_to_http_body(create_ethereum_estimate_request)
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_ethereum_estimate_request)

# return_type
return_type = opts[:return_type] || 'EstimateResponse'
return_type = opts[:debug_return_type] || 'EstimateResponse'

# auth_names
auth_names = opts[:auth_names] || ['bearer_auth']
auth_names = opts[:debug_auth_names] || ['bearer_auth']

new_options = opts.merge(
:operation => :"EstimatesApi.create_ethereum_estimate",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
Expand Down Expand Up @@ -198,15 +200,16 @@ def create_flight_estimate_with_http_info(create_flight_estimate_request, opts =
form_params = opts[:form_params] || {}

# http body (model)
post_body = opts[:body] || @api_client.object_to_http_body(create_flight_estimate_request)
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_flight_estimate_request)

# return_type
return_type = opts[:return_type] || 'EstimateResponse'
return_type = opts[:debug_return_type] || 'EstimateResponse'

# auth_names
auth_names = opts[:auth_names] || ['bearer_auth']
auth_names = opts[:debug_auth_names] || ['bearer_auth']

new_options = opts.merge(
:operation => :"EstimatesApi.create_flight_estimate",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
Expand Down Expand Up @@ -262,15 +265,16 @@ def create_mass_estimate_with_http_info(create_mass_estimate_request, opts = {})
form_params = opts[:form_params] || {}

# http body (model)
post_body = opts[:body] || @api_client.object_to_http_body(create_mass_estimate_request)
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_mass_estimate_request)

# return_type
return_type = opts[:return_type] || 'EstimateResponse'
return_type = opts[:debug_return_type] || 'EstimateResponse'

# auth_names
auth_names = opts[:auth_names] || ['bearer_auth']
auth_names = opts[:debug_auth_names] || ['bearer_auth']

new_options = opts.merge(
:operation => :"EstimatesApi.create_mass_estimate",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
Expand Down Expand Up @@ -326,15 +330,16 @@ def create_shipping_estimate_with_http_info(create_shipping_estimate_request, op
form_params = opts[:form_params] || {}

# http body (model)
post_body = opts[:body] || @api_client.object_to_http_body(create_shipping_estimate_request)
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_shipping_estimate_request)

# return_type
return_type = opts[:return_type] || 'EstimateResponse'
return_type = opts[:debug_return_type] || 'EstimateResponse'

# auth_names
auth_names = opts[:auth_names] || ['bearer_auth']
auth_names = opts[:debug_auth_names] || ['bearer_auth']

new_options = opts.merge(
:operation => :"EstimatesApi.create_shipping_estimate",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
Expand Down Expand Up @@ -390,15 +395,16 @@ def create_vehicle_estimate_with_http_info(create_vehicle_estimate_request, opts
form_params = opts[:form_params] || {}

# http body (model)
post_body = opts[:body] || @api_client.object_to_http_body(create_vehicle_estimate_request)
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_vehicle_estimate_request)

# return_type
return_type = opts[:return_type] || 'EstimateResponse'
return_type = opts[:debug_return_type] || 'EstimateResponse'

# auth_names
auth_names = opts[:auth_names] || ['bearer_auth']
auth_names = opts[:debug_auth_names] || ['bearer_auth']

new_options = opts.merge(
:operation => :"EstimatesApi.create_vehicle_estimate",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
Expand Down Expand Up @@ -452,15 +458,16 @@ def retrieve_estimate_with_http_info(id, opts = {})
form_params = opts[:form_params] || {}

# http body (model)
post_body = opts[:body]
post_body = opts[:debug_body]

# return_type
return_type = opts[:return_type] || 'EstimateResponse'
return_type = opts[:debug_return_type] || 'EstimateResponse'

# auth_names
auth_names = opts[:auth_names] || ['bearer_auth']
auth_names = opts[:debug_auth_names] || ['bearer_auth']

new_options = opts.merge(
:operation => :"EstimatesApi.retrieve_estimate",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
Expand Down Expand Up @@ -511,15 +518,16 @@ def retrieve_estimates_with_http_info(opts = {})
form_params = opts[:form_params] || {}

# http body (model)
post_body = opts[:body]
post_body = opts[:debug_body]

# return_type
return_type = opts[:return_type] || 'EstimateListResponse'
return_type = opts[:debug_return_type] || 'EstimateListResponse'

# auth_names
auth_names = opts[:auth_names] || ['bearer_auth']
auth_names = opts[:debug_auth_names] || ['bearer_auth']

new_options = opts.merge(
:operation => :"EstimatesApi.retrieve_estimates",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
Expand Down
Loading