Skip to content

Commit 91fb163

Browse files
authored
Merge pull request #6 from patch-technology/bs/formatter
Formatter
2 parents 6dcd210 + 14b34b3 commit 91fb163

Some content is hidden

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

49 files changed

+299
-377
lines changed

.rubocop.yml

-148
This file was deleted.

Gemfile

+1-1
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'
99
end

Gemfile.lock

+13-10
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
patch_ruby (1.0.0.pre)
4+
patch_ruby (1.0.0)
55
json (~> 2.1, >= 2.1.0)
66
typhoeus (~> 1.0, >= 1.0.1)
77

@@ -15,7 +15,6 @@ GEM
1515
ethon (0.12.0)
1616
ffi (>= 1.3.0)
1717
ffi (1.13.1)
18-
jaro_winkler (1.5.4)
1918
json (2.3.1)
2019
method_source (1.0.0)
2120
parallel (1.19.2)
@@ -27,9 +26,10 @@ GEM
2726
pry-byebug (3.9.0)
2827
byebug (~> 11.0)
2928
pry (~> 0.13.0)
30-
psych (3.1.0)
3129
rainbow (3.0.0)
3230
rake (13.0.1)
31+
regexp_parser (1.7.1)
32+
rexml (3.2.4)
3333
rspec (3.9.0)
3434
rspec-core (~> 3.9.0)
3535
rspec-expectations (~> 3.9.0)
@@ -43,18 +43,21 @@ GEM
4343
diff-lcs (>= 1.2.0, < 2.0)
4444
rspec-support (~> 3.9.0)
4545
rspec-support (3.9.3)
46-
rubocop (0.66.0)
47-
jaro_winkler (~> 1.5.1)
46+
rubocop (0.88.0)
4847
parallel (~> 1.10)
49-
parser (>= 2.5, != 2.5.1.1)
50-
psych (>= 3.1.0)
48+
parser (>= 2.7.1.1)
5149
rainbow (>= 2.2.2, < 4.0)
50+
regexp_parser (>= 1.7)
51+
rexml
52+
rubocop-ast (>= 0.1.0, < 1.0)
5253
ruby-progressbar (~> 1.7)
53-
unicode-display_width (>= 1.4.0, < 1.6)
54+
unicode-display_width (>= 1.4.0, < 2.0)
55+
rubocop-ast (0.3.0)
56+
parser (>= 2.7.1.4)
5457
ruby-progressbar (1.10.1)
5558
typhoeus (1.4.0)
5659
ethon (>= 0.9.0)
57-
unicode-display_width (1.5.0)
60+
unicode-display_width (1.7.0)
5861

5962
PLATFORMS
6063
ruby
@@ -64,7 +67,7 @@ DEPENDENCIES
6467
pry-byebug
6568
rake (~> 13.0.1)
6669
rspec (~> 3.6, >= 3.6.0)
67-
rubocop (~> 0.66.0)
70+
rubocop
6871

6972
BUNDLED WITH
7073
2.1.4

lib/patch_ruby/api/estimates_api.rb

+21-18
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ class EstimatesApi
2525
def initialize(api_client = ApiClient.default)
2626
@api_client = api_client
2727
end
28+
2829
# Create an estimate based on mass of CO2
29-
# Creates an estimate for the mass of CO2 to be compensated. An order in the `draft` state will also be created, linked to the estimate.
30-
# @param create_mass_estimate_request [CreateMassEstimateRequest]
30+
# Creates an estimate for the mass of CO2 to be compensated. An order in the `draft` state will also be created, linked to the estimate.
31+
# @param create_mass_estimate_request [CreateMassEstimateRequest]
3132
# @param [Hash] opts the optional parameters
3233
# @return [EstimateResponse]
3334
def create_mass_estimate(create_mass_estimate_request, opts = {})
@@ -36,8 +37,8 @@ def create_mass_estimate(create_mass_estimate_request, opts = {})
3637
end
3738

3839
# Create an estimate based on mass of CO2
39-
# Creates an estimate for the mass of CO2 to be compensated. An order in the &#x60;draft&#x60; state will also be created, linked to the estimate.
40-
# @param create_mass_estimate_request [CreateMassEstimateRequest]
40+
# Creates an estimate for the mass of CO2 to be compensated. An order in the &#x60;draft&#x60; state will also be created, linked to the estimate.
41+
# @param create_mass_estimate_request [CreateMassEstimateRequest]
4142
# @param [Hash] opts the optional parameters
4243
# @return [Array<(EstimateResponse, Integer, Hash)>] EstimateResponse data, response status code and response headers
4344
def create_mass_estimate_with_http_info(create_mass_estimate_request, opts = {})
@@ -48,6 +49,7 @@ def create_mass_estimate_with_http_info(create_mass_estimate_request, opts = {})
4849
if @api_client.config.client_side_validation && create_mass_estimate_request.nil?
4950
fail ArgumentError, "Missing the required parameter 'create_mass_estimate_request' when calling EstimatesApi.create_mass_estimate"
5051
end
52+
5153
# resource path
5254
local_var_path = '/v1/estimates/mass'
5355

@@ -65,10 +67,10 @@ def create_mass_estimate_with_http_info(create_mass_estimate_request, opts = {})
6567
form_params = opts[:form_params] || {}
6668

6769
# http body (model)
68-
post_body = opts[:body] || @api_client.object_to_http_body(create_mass_estimate_request)
70+
post_body = opts[:body] || @api_client.object_to_http_body(create_mass_estimate_request)
6971

7072
# return_type
71-
return_type = opts[:return_type] || 'EstimateResponse'
73+
return_type = opts[:return_type] || 'EstimateResponse'
7274

7375
# auth_names
7476
auth_names = opts[:auth_names] || ['bearer_auth']
@@ -90,8 +92,8 @@ def create_mass_estimate_with_http_info(create_mass_estimate_request, opts = {})
9092
end
9193

9294
# Retrieves an estimate
93-
# Retrieves a given estimate and its associated order. You can only retrieve estimates associated with the organization you are querying for.
94-
# @param id [String]
95+
# Retrieves a given estimate and its associated order. You can only retrieve estimates associated with the organization you are querying for.
96+
# @param id [String]
9597
# @param [Hash] opts the optional parameters
9698
# @return [EstimateResponse]
9799
def retrieve_estimate(id, opts = {})
@@ -100,8 +102,8 @@ def retrieve_estimate(id, opts = {})
100102
end
101103

102104
# Retrieves an estimate
103-
# Retrieves a given estimate and its associated order. You can only retrieve estimates associated with the organization you are querying for.
104-
# @param id [String]
105+
# Retrieves a given estimate and its associated order. You can only retrieve estimates associated with the organization you are querying for.
106+
# @param id [String]
105107
# @param [Hash] opts the optional parameters
106108
# @return [Array<(EstimateResponse, Integer, Hash)>] EstimateResponse data, response status code and response headers
107109
def retrieve_estimate_with_http_info(id, opts = {})
@@ -112,6 +114,7 @@ def retrieve_estimate_with_http_info(id, opts = {})
112114
if @api_client.config.client_side_validation && id.nil?
113115
fail ArgumentError, "Missing the required parameter 'id' when calling EstimatesApi.retrieve_estimate"
114116
end
117+
115118
# resource path
116119
local_var_path = '/v1/estimates/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
117120

@@ -127,10 +130,10 @@ def retrieve_estimate_with_http_info(id, opts = {})
127130
form_params = opts[:form_params] || {}
128131

129132
# http body (model)
130-
post_body = opts[:body]
133+
post_body = opts[:body]
131134

132135
# return_type
133-
return_type = opts[:return_type] || 'EstimateResponse'
136+
return_type = opts[:return_type] || 'EstimateResponse'
134137

135138
# auth_names
136139
auth_names = opts[:auth_names] || ['bearer_auth']
@@ -152,19 +155,19 @@ def retrieve_estimate_with_http_info(id, opts = {})
152155
end
153156

154157
# Retrieves a list of estimates
155-
# Retrieves a list of estimates and their associated orders. You can only retrieve estimates associated with the organization you are querying for.
158+
# Retrieves a list of estimates and their associated orders. You can only retrieve estimates associated with the organization you are querying for.
156159
# @param [Hash] opts the optional parameters
157-
# @option opts [Integer] :page
160+
# @option opts [Integer] :page
158161
# @return [EstimateListResponse]
159162
def retrieve_estimates(opts = {})
160163
data, _status_code, _headers = retrieve_estimates_with_http_info(opts)
161164
data
162165
end
163166

164167
# Retrieves a list of estimates
165-
# Retrieves a list of estimates and their associated orders. You can only retrieve estimates associated with the organization you are querying for.
168+
# Retrieves a list of estimates and their associated orders. You can only retrieve estimates associated with the organization you are querying for.
166169
# @param [Hash] opts the optional parameters
167-
# @option opts [Integer] :page
170+
# @option opts [Integer] :page
168171
# @return [Array<(EstimateListResponse, Integer, Hash)>] EstimateListResponse data, response status code and response headers
169172
def retrieve_estimates_with_http_info(opts = {})
170173
if @api_client.config.debugging
@@ -186,10 +189,10 @@ def retrieve_estimates_with_http_info(opts = {})
186189
form_params = opts[:form_params] || {}
187190

188191
# http body (model)
189-
post_body = opts[:body]
192+
post_body = opts[:body]
190193

191194
# return_type
192-
return_type = opts[:return_type] || 'EstimateListResponse'
195+
return_type = opts[:return_type] || 'EstimateListResponse'
193196

194197
# auth_names
195198
auth_names = opts[:auth_names] || ['bearer_auth']

0 commit comments

Comments
 (0)