stripe 5.31.0 → 5.32.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/VERSION +1 -1
- data/lib/stripe/version.rb +1 -1
- data/stripe.gemspec +9 -2
- metadata +3 -195
- data/.editorconfig +0 -10
- data/.gitattributes +0 -4
- data/.github/ISSUE_TEMPLATE.md +0 -5
- data/.github/workflows/ci.yml +0 -34
- data/.gitignore +0 -8
- data/.rubocop.yml +0 -81
- data/.rubocop_todo.yml +0 -33
- data/.travis.yml +0 -38
- data/.vscode/extensions.json +0 -7
- data/.vscode/settings.json +0 -8
- data/test/openapi/README.md +0 -9
- data/test/stripe/account_link_test.rb +0 -18
- data/test/stripe/account_test.rb +0 -412
- data/test/stripe/alipay_account_test.rb +0 -37
- data/test/stripe/api_operations_test.rb +0 -80
- data/test/stripe/api_resource_test.rb +0 -646
- data/test/stripe/apple_pay_domain_test.rb +0 -46
- data/test/stripe/application_fee_refund_test.rb +0 -37
- data/test/stripe/application_fee_test.rb +0 -58
- data/test/stripe/balance_test.rb +0 -13
- data/test/stripe/balance_transaction_test.rb +0 -20
- data/test/stripe/bank_account_test.rb +0 -36
- data/test/stripe/billing_portal/configuration_test.rb +0 -37
- data/test/stripe/billing_portal/session_test.rb +0 -18
- data/test/stripe/capability_test.rb +0 -45
- data/test/stripe/charge_test.rb +0 -64
- data/test/stripe/checkout/session_test.rb +0 -53
- data/test/stripe/connection_manager_test.rb +0 -210
- data/test/stripe/country_spec_test.rb +0 -20
- data/test/stripe/coupon_test.rb +0 -61
- data/test/stripe/credit_note_test.rb +0 -90
- data/test/stripe/customer_balance_transaction_test.rb +0 -37
- data/test/stripe/customer_card_test.rb +0 -48
- data/test/stripe/customer_test.rb +0 -226
- data/test/stripe/dispute_test.rb +0 -51
- data/test/stripe/ephemeral_key_test.rb +0 -93
- data/test/stripe/errors_test.rb +0 -53
- data/test/stripe/exchange_rate_test.rb +0 -20
- data/test/stripe/file_link_test.rb +0 -41
- data/test/stripe/file_test.rb +0 -87
- data/test/stripe/instrumentation_test.rb +0 -74
- data/test/stripe/invoice_item_test.rb +0 -66
- data/test/stripe/invoice_line_item_test.rb +0 -8
- data/test/stripe/invoice_test.rb +0 -229
- data/test/stripe/issuing/authorization_test.rb +0 -72
- data/test/stripe/issuing/card_test.rb +0 -74
- data/test/stripe/issuing/cardholder_test.rb +0 -53
- data/test/stripe/issuing/dispute_test.rb +0 -54
- data/test/stripe/issuing/transaction_test.rb +0 -48
- data/test/stripe/list_object_test.rb +0 -202
- data/test/stripe/login_link_test.rb +0 -37
- data/test/stripe/mandate_test.rb +0 -14
- data/test/stripe/multipart_encoder_test.rb +0 -130
- data/test/stripe/oauth_test.rb +0 -149
- data/test/stripe/order_return_test.rb +0 -21
- data/test/stripe/order_test.rb +0 -82
- data/test/stripe/payment_intent_test.rb +0 -107
- data/test/stripe/payment_method_test.rb +0 -84
- data/test/stripe/payout_test.rb +0 -72
- data/test/stripe/person_test.rb +0 -46
- data/test/stripe/plan_test.rb +0 -98
- data/test/stripe/price_test.rb +0 -48
- data/test/stripe/product_test.rb +0 -58
- data/test/stripe/promotion_code_test.rb +0 -42
- data/test/stripe/radar/early_fraud_warning_test.rb +0 -22
- data/test/stripe/radar/value_list_item_test.rb +0 -48
- data/test/stripe/radar/value_list_test.rb +0 -61
- data/test/stripe/recipient_test.rb +0 -62
- data/test/stripe/refund_test.rb +0 -39
- data/test/stripe/reporting/report_run_test.rb +0 -33
- data/test/stripe/reporting/report_type_test.rb +0 -22
- data/test/stripe/reversal_test.rb +0 -43
- data/test/stripe/review_test.rb +0 -27
- data/test/stripe/setup_attempt_test.rb +0 -16
- data/test/stripe/setup_intent_test.rb +0 -84
- data/test/stripe/sigma/scheduled_query_run_test.rb +0 -22
- data/test/stripe/sku_test.rb +0 -60
- data/test/stripe/source_test.rb +0 -119
- data/test/stripe/stripe_client_test.rb +0 -1456
- data/test/stripe/stripe_configuration_test.rb +0 -159
- data/test/stripe/stripe_object_test.rb +0 -510
- data/test/stripe/stripe_response_test.rb +0 -95
- data/test/stripe/subscription_item_test.rb +0 -84
- data/test/stripe/subscription_schedule_test.rb +0 -82
- data/test/stripe/subscription_test.rb +0 -80
- data/test/stripe/tax_id_test.rb +0 -31
- data/test/stripe/tax_rate_test.rb +0 -43
- data/test/stripe/terminal/connection_token_test.rb +0 -16
- data/test/stripe/terminal/location_test.rb +0 -68
- data/test/stripe/terminal/reader_test.rb +0 -62
- data/test/stripe/three_d_secure_test.rb +0 -23
- data/test/stripe/topup_test.rb +0 -62
- data/test/stripe/transfer_test.rb +0 -88
- data/test/stripe/usage_record_summary_test.rb +0 -29
- data/test/stripe/util_test.rb +0 -402
- data/test/stripe/webhook_endpoint_test.rb +0 -59
- data/test/stripe/webhook_test.rb +0 -135
- data/test/stripe_mock.rb +0 -78
- data/test/stripe_test.rb +0 -137
- data/test/test_data.rb +0 -61
- data/test/test_helper.rb +0 -74
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e600b7741930b12c7ffaa1b6cfdcf6a540d5d57f8955a2c0be38a37d6f5ff556
|
4
|
+
data.tar.gz: dfd0a97aff35a0e38a4818a1c239da46b3d47d741cf1fb3c7608d7d5c7c182b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fe07169d17aa534beffca79063fdc9c48ebebc48176aed097220a183c0d305d696b97bba255f6c3633755e92c96bbbacb5cb1865c66c99754ca28c4f23e7c84
|
7
|
+
data.tar.gz: 9b06b7398144207f98d74bb270777fdf5b8a54f454c776891d95401cae9a86edd487aeebfe44d1b38744ff17e3f8d952b34415308241597f3351720936791504
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 5.32.0 - 2021-04-05
|
4
|
+
* [#973](https://github.com/stripe/stripe-ruby/pull/973) Reduce packed gem size
|
5
|
+
|
3
6
|
## 5.31.0 - 2021-04-02
|
4
7
|
* [#968](https://github.com/stripe/stripe-ruby/pull/968) Allow StripeClient to be configured per instance
|
5
8
|
* [#971](https://github.com/stripe/stripe-ruby/pull/971) On config change, only clear connection managers for changed config
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
5.
|
1
|
+
5.32.0
|
data/lib/stripe/version.rb
CHANGED
data/stripe.gemspec
CHANGED
@@ -26,8 +26,15 @@ Gem::Specification.new do |s|
|
|
26
26
|
"source_code_uri" => "https://github.com/stripe/stripe-ruby",
|
27
27
|
}
|
28
28
|
|
29
|
-
|
30
|
-
|
29
|
+
ignored = Regexp.union(
|
30
|
+
%r{\A\.editorconfig},
|
31
|
+
%r{\A\.git},
|
32
|
+
%r{\A\.rubocop},
|
33
|
+
%r{\A\.travis.yml},
|
34
|
+
%r{\A\.vscode},
|
35
|
+
%r{\Atest/}
|
36
|
+
)
|
37
|
+
s.files = `git ls-files`.split("\n").reject { |f| ignored.match?(f) }
|
31
38
|
s.executables = `git ls-files -- bin/*`.split("\n")
|
32
39
|
.map { |f| ::File.basename(f) }
|
33
40
|
s.require_paths = ["lib"]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stripe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.32.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Stripe is the easiest way to accept payments online. See https://stripe.com
|
14
14
|
for details.
|
@@ -18,16 +18,6 @@ executables:
|
|
18
18
|
extensions: []
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
|
-
- ".editorconfig"
|
22
|
-
- ".gitattributes"
|
23
|
-
- ".github/ISSUE_TEMPLATE.md"
|
24
|
-
- ".github/workflows/ci.yml"
|
25
|
-
- ".gitignore"
|
26
|
-
- ".rubocop.yml"
|
27
|
-
- ".rubocop_todo.yml"
|
28
|
-
- ".travis.yml"
|
29
|
-
- ".vscode/extensions.json"
|
30
|
-
- ".vscode/settings.json"
|
31
21
|
- CHANGELOG.md
|
32
22
|
- CODE_OF_CONDUCT.md
|
33
23
|
- CONTRIBUTORS
|
@@ -148,97 +138,6 @@ files:
|
|
148
138
|
- lib/stripe/version.rb
|
149
139
|
- lib/stripe/webhook.rb
|
150
140
|
- stripe.gemspec
|
151
|
-
- test/openapi/README.md
|
152
|
-
- test/stripe/account_link_test.rb
|
153
|
-
- test/stripe/account_test.rb
|
154
|
-
- test/stripe/alipay_account_test.rb
|
155
|
-
- test/stripe/api_operations_test.rb
|
156
|
-
- test/stripe/api_resource_test.rb
|
157
|
-
- test/stripe/apple_pay_domain_test.rb
|
158
|
-
- test/stripe/application_fee_refund_test.rb
|
159
|
-
- test/stripe/application_fee_test.rb
|
160
|
-
- test/stripe/balance_test.rb
|
161
|
-
- test/stripe/balance_transaction_test.rb
|
162
|
-
- test/stripe/bank_account_test.rb
|
163
|
-
- test/stripe/billing_portal/configuration_test.rb
|
164
|
-
- test/stripe/billing_portal/session_test.rb
|
165
|
-
- test/stripe/capability_test.rb
|
166
|
-
- test/stripe/charge_test.rb
|
167
|
-
- test/stripe/checkout/session_test.rb
|
168
|
-
- test/stripe/connection_manager_test.rb
|
169
|
-
- test/stripe/country_spec_test.rb
|
170
|
-
- test/stripe/coupon_test.rb
|
171
|
-
- test/stripe/credit_note_test.rb
|
172
|
-
- test/stripe/customer_balance_transaction_test.rb
|
173
|
-
- test/stripe/customer_card_test.rb
|
174
|
-
- test/stripe/customer_test.rb
|
175
|
-
- test/stripe/dispute_test.rb
|
176
|
-
- test/stripe/ephemeral_key_test.rb
|
177
|
-
- test/stripe/errors_test.rb
|
178
|
-
- test/stripe/exchange_rate_test.rb
|
179
|
-
- test/stripe/file_link_test.rb
|
180
|
-
- test/stripe/file_test.rb
|
181
|
-
- test/stripe/instrumentation_test.rb
|
182
|
-
- test/stripe/invoice_item_test.rb
|
183
|
-
- test/stripe/invoice_line_item_test.rb
|
184
|
-
- test/stripe/invoice_test.rb
|
185
|
-
- test/stripe/issuing/authorization_test.rb
|
186
|
-
- test/stripe/issuing/card_test.rb
|
187
|
-
- test/stripe/issuing/cardholder_test.rb
|
188
|
-
- test/stripe/issuing/dispute_test.rb
|
189
|
-
- test/stripe/issuing/transaction_test.rb
|
190
|
-
- test/stripe/list_object_test.rb
|
191
|
-
- test/stripe/login_link_test.rb
|
192
|
-
- test/stripe/mandate_test.rb
|
193
|
-
- test/stripe/multipart_encoder_test.rb
|
194
|
-
- test/stripe/oauth_test.rb
|
195
|
-
- test/stripe/order_return_test.rb
|
196
|
-
- test/stripe/order_test.rb
|
197
|
-
- test/stripe/payment_intent_test.rb
|
198
|
-
- test/stripe/payment_method_test.rb
|
199
|
-
- test/stripe/payout_test.rb
|
200
|
-
- test/stripe/person_test.rb
|
201
|
-
- test/stripe/plan_test.rb
|
202
|
-
- test/stripe/price_test.rb
|
203
|
-
- test/stripe/product_test.rb
|
204
|
-
- test/stripe/promotion_code_test.rb
|
205
|
-
- test/stripe/radar/early_fraud_warning_test.rb
|
206
|
-
- test/stripe/radar/value_list_item_test.rb
|
207
|
-
- test/stripe/radar/value_list_test.rb
|
208
|
-
- test/stripe/recipient_test.rb
|
209
|
-
- test/stripe/refund_test.rb
|
210
|
-
- test/stripe/reporting/report_run_test.rb
|
211
|
-
- test/stripe/reporting/report_type_test.rb
|
212
|
-
- test/stripe/reversal_test.rb
|
213
|
-
- test/stripe/review_test.rb
|
214
|
-
- test/stripe/setup_attempt_test.rb
|
215
|
-
- test/stripe/setup_intent_test.rb
|
216
|
-
- test/stripe/sigma/scheduled_query_run_test.rb
|
217
|
-
- test/stripe/sku_test.rb
|
218
|
-
- test/stripe/source_test.rb
|
219
|
-
- test/stripe/stripe_client_test.rb
|
220
|
-
- test/stripe/stripe_configuration_test.rb
|
221
|
-
- test/stripe/stripe_object_test.rb
|
222
|
-
- test/stripe/stripe_response_test.rb
|
223
|
-
- test/stripe/subscription_item_test.rb
|
224
|
-
- test/stripe/subscription_schedule_test.rb
|
225
|
-
- test/stripe/subscription_test.rb
|
226
|
-
- test/stripe/tax_id_test.rb
|
227
|
-
- test/stripe/tax_rate_test.rb
|
228
|
-
- test/stripe/terminal/connection_token_test.rb
|
229
|
-
- test/stripe/terminal/location_test.rb
|
230
|
-
- test/stripe/terminal/reader_test.rb
|
231
|
-
- test/stripe/three_d_secure_test.rb
|
232
|
-
- test/stripe/topup_test.rb
|
233
|
-
- test/stripe/transfer_test.rb
|
234
|
-
- test/stripe/usage_record_summary_test.rb
|
235
|
-
- test/stripe/util_test.rb
|
236
|
-
- test/stripe/webhook_endpoint_test.rb
|
237
|
-
- test/stripe/webhook_test.rb
|
238
|
-
- test/stripe_mock.rb
|
239
|
-
- test/stripe_test.rb
|
240
|
-
- test/test_data.rb
|
241
|
-
- test/test_helper.rb
|
242
141
|
homepage: https://stripe.com/docs/api/ruby
|
243
142
|
licenses:
|
244
143
|
- MIT
|
@@ -268,95 +167,4 @@ rubygems_version: 3.1.2
|
|
268
167
|
signing_key:
|
269
168
|
specification_version: 4
|
270
169
|
summary: Ruby bindings for the Stripe API
|
271
|
-
test_files:
|
272
|
-
- test/openapi/README.md
|
273
|
-
- test/stripe/account_link_test.rb
|
274
|
-
- test/stripe/account_test.rb
|
275
|
-
- test/stripe/alipay_account_test.rb
|
276
|
-
- test/stripe/api_operations_test.rb
|
277
|
-
- test/stripe/api_resource_test.rb
|
278
|
-
- test/stripe/apple_pay_domain_test.rb
|
279
|
-
- test/stripe/application_fee_refund_test.rb
|
280
|
-
- test/stripe/application_fee_test.rb
|
281
|
-
- test/stripe/balance_test.rb
|
282
|
-
- test/stripe/balance_transaction_test.rb
|
283
|
-
- test/stripe/bank_account_test.rb
|
284
|
-
- test/stripe/billing_portal/configuration_test.rb
|
285
|
-
- test/stripe/billing_portal/session_test.rb
|
286
|
-
- test/stripe/capability_test.rb
|
287
|
-
- test/stripe/charge_test.rb
|
288
|
-
- test/stripe/checkout/session_test.rb
|
289
|
-
- test/stripe/connection_manager_test.rb
|
290
|
-
- test/stripe/country_spec_test.rb
|
291
|
-
- test/stripe/coupon_test.rb
|
292
|
-
- test/stripe/credit_note_test.rb
|
293
|
-
- test/stripe/customer_balance_transaction_test.rb
|
294
|
-
- test/stripe/customer_card_test.rb
|
295
|
-
- test/stripe/customer_test.rb
|
296
|
-
- test/stripe/dispute_test.rb
|
297
|
-
- test/stripe/ephemeral_key_test.rb
|
298
|
-
- test/stripe/errors_test.rb
|
299
|
-
- test/stripe/exchange_rate_test.rb
|
300
|
-
- test/stripe/file_link_test.rb
|
301
|
-
- test/stripe/file_test.rb
|
302
|
-
- test/stripe/instrumentation_test.rb
|
303
|
-
- test/stripe/invoice_item_test.rb
|
304
|
-
- test/stripe/invoice_line_item_test.rb
|
305
|
-
- test/stripe/invoice_test.rb
|
306
|
-
- test/stripe/issuing/authorization_test.rb
|
307
|
-
- test/stripe/issuing/card_test.rb
|
308
|
-
- test/stripe/issuing/cardholder_test.rb
|
309
|
-
- test/stripe/issuing/dispute_test.rb
|
310
|
-
- test/stripe/issuing/transaction_test.rb
|
311
|
-
- test/stripe/list_object_test.rb
|
312
|
-
- test/stripe/login_link_test.rb
|
313
|
-
- test/stripe/mandate_test.rb
|
314
|
-
- test/stripe/multipart_encoder_test.rb
|
315
|
-
- test/stripe/oauth_test.rb
|
316
|
-
- test/stripe/order_return_test.rb
|
317
|
-
- test/stripe/order_test.rb
|
318
|
-
- test/stripe/payment_intent_test.rb
|
319
|
-
- test/stripe/payment_method_test.rb
|
320
|
-
- test/stripe/payout_test.rb
|
321
|
-
- test/stripe/person_test.rb
|
322
|
-
- test/stripe/plan_test.rb
|
323
|
-
- test/stripe/price_test.rb
|
324
|
-
- test/stripe/product_test.rb
|
325
|
-
- test/stripe/promotion_code_test.rb
|
326
|
-
- test/stripe/radar/early_fraud_warning_test.rb
|
327
|
-
- test/stripe/radar/value_list_item_test.rb
|
328
|
-
- test/stripe/radar/value_list_test.rb
|
329
|
-
- test/stripe/recipient_test.rb
|
330
|
-
- test/stripe/refund_test.rb
|
331
|
-
- test/stripe/reporting/report_run_test.rb
|
332
|
-
- test/stripe/reporting/report_type_test.rb
|
333
|
-
- test/stripe/reversal_test.rb
|
334
|
-
- test/stripe/review_test.rb
|
335
|
-
- test/stripe/setup_attempt_test.rb
|
336
|
-
- test/stripe/setup_intent_test.rb
|
337
|
-
- test/stripe/sigma/scheduled_query_run_test.rb
|
338
|
-
- test/stripe/sku_test.rb
|
339
|
-
- test/stripe/source_test.rb
|
340
|
-
- test/stripe/stripe_client_test.rb
|
341
|
-
- test/stripe/stripe_configuration_test.rb
|
342
|
-
- test/stripe/stripe_object_test.rb
|
343
|
-
- test/stripe/stripe_response_test.rb
|
344
|
-
- test/stripe/subscription_item_test.rb
|
345
|
-
- test/stripe/subscription_schedule_test.rb
|
346
|
-
- test/stripe/subscription_test.rb
|
347
|
-
- test/stripe/tax_id_test.rb
|
348
|
-
- test/stripe/tax_rate_test.rb
|
349
|
-
- test/stripe/terminal/connection_token_test.rb
|
350
|
-
- test/stripe/terminal/location_test.rb
|
351
|
-
- test/stripe/terminal/reader_test.rb
|
352
|
-
- test/stripe/three_d_secure_test.rb
|
353
|
-
- test/stripe/topup_test.rb
|
354
|
-
- test/stripe/transfer_test.rb
|
355
|
-
- test/stripe/usage_record_summary_test.rb
|
356
|
-
- test/stripe/util_test.rb
|
357
|
-
- test/stripe/webhook_endpoint_test.rb
|
358
|
-
- test/stripe/webhook_test.rb
|
359
|
-
- test/stripe_mock.rb
|
360
|
-
- test/stripe_test.rb
|
361
|
-
- test/test_data.rb
|
362
|
-
- test/test_helper.rb
|
170
|
+
test_files: []
|
data/.editorconfig
DELETED
data/.gitattributes
DELETED
data/.github/ISSUE_TEMPLATE.md
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
Please only file issues here that you believe represent actual bugs or feature requests for the Stripe Ruby library.
|
2
|
-
|
3
|
-
If you're having general trouble with your Stripe integration, please reach out to support using the form at https://support.stripe.com/ (preferred) or via email to support@stripe.com.
|
4
|
-
|
5
|
-
If you are reporting a bug, please include your Ruby version and the version of the Stripe Ruby library you're using, as well as any other details that may be helpful in reproducing the problem.
|
data/.github/workflows/ci.yml
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
on:
|
2
|
-
push:
|
3
|
-
branches: [ master ]
|
4
|
-
pull_request:
|
5
|
-
branches: [ master ]
|
6
|
-
|
7
|
-
jobs:
|
8
|
-
lint:
|
9
|
-
runs-on: ubuntu-latest
|
10
|
-
|
11
|
-
steps:
|
12
|
-
- uses: actions/checkout@v2
|
13
|
-
- name: Set up Ruby
|
14
|
-
uses: ruby/setup-ruby@v1
|
15
|
-
with:
|
16
|
-
ruby-version: 2.7
|
17
|
-
- name: rubocop
|
18
|
-
run: bundle install && bundle exec rake rubocop
|
19
|
-
|
20
|
-
test:
|
21
|
-
runs-on: ubuntu-latest
|
22
|
-
strategy:
|
23
|
-
matrix:
|
24
|
-
ruby-version: [2.3, 2.4, 2.5, 2.6, 2.7, 3.0, jruby-9.2.16.0]
|
25
|
-
steps:
|
26
|
-
- uses: actions/checkout@v2
|
27
|
-
- name: Set up Ruby
|
28
|
-
uses: ruby/setup-ruby@v1
|
29
|
-
with:
|
30
|
-
ruby-version: ${{ matrix.ruby-version }}
|
31
|
-
- name: Start stripe-mock
|
32
|
-
run: docker run -d -p 12111-12112:12111-12112 stripemock/stripe-mock && sleep 5
|
33
|
-
- name: test
|
34
|
-
run: bundle install && bundle exec rake test
|
data/.gitignore
DELETED
data/.rubocop.yml
DELETED
@@ -1,81 +0,0 @@
|
|
1
|
-
inherit_from: .rubocop_todo.yml
|
2
|
-
|
3
|
-
AllCops:
|
4
|
-
DisplayCopNames: true
|
5
|
-
TargetRubyVersion: 2.3
|
6
|
-
|
7
|
-
Exclude:
|
8
|
-
# brandur: Exclude ephmeral script-like files that I use to try and
|
9
|
-
# reproduce problems with the library. If you know of a better way of doing
|
10
|
-
# this (e.g. exclude files not tracked by Git), feel free to change it.
|
11
|
-
- "example_*"
|
12
|
-
|
13
|
-
Layout/CaseIndentation:
|
14
|
-
EnforcedStyle: end
|
15
|
-
|
16
|
-
Layout/FirstArrayElementIndentation:
|
17
|
-
EnforcedStyle: consistent
|
18
|
-
|
19
|
-
Layout/FirstHashElementIndentation:
|
20
|
-
EnforcedStyle: consistent
|
21
|
-
|
22
|
-
# This can be re-enabled once we're 2.3+ only and can use the squiggly heredoc
|
23
|
-
# operator. Prior to that, Rubocop recommended bringing in a library like
|
24
|
-
# ActiveSupport to get heredoc indentation, which is just terrible.
|
25
|
-
Layout/HeredocIndentation:
|
26
|
-
Enabled: false
|
27
|
-
|
28
|
-
Layout/LineLength:
|
29
|
-
Exclude:
|
30
|
-
- "lib/stripe/object_types.rb"
|
31
|
-
- "lib/stripe/resources/**/*.rb"
|
32
|
-
- "test/**/*.rb"
|
33
|
-
|
34
|
-
Metrics/BlockLength:
|
35
|
-
Max: 40
|
36
|
-
Exclude:
|
37
|
-
# `context` in tests are blocks and get quite large, so exclude the test
|
38
|
-
# directory from having to adhere to this rule.
|
39
|
-
- "test/**/*.rb"
|
40
|
-
|
41
|
-
Metrics/ClassLength:
|
42
|
-
Exclude:
|
43
|
-
# Test classes get quite large, so exclude the test directory from having
|
44
|
-
# to adhere to this rule.
|
45
|
-
- "test/**/*.rb"
|
46
|
-
|
47
|
-
Metrics/MethodLength:
|
48
|
-
# There's ~2 long methods in `StripeClient` and one in `NestedResource`. If
|
49
|
-
# we want to truncate those a little, we could move this to be closer to ~30
|
50
|
-
# (but the default of 10 is probably too short).
|
51
|
-
Max: 55
|
52
|
-
|
53
|
-
Metrics/ModuleLength:
|
54
|
-
Enabled: false
|
55
|
-
|
56
|
-
Style/AccessModifierDeclarations:
|
57
|
-
EnforcedStyle: inline
|
58
|
-
|
59
|
-
Style/FrozenStringLiteralComment:
|
60
|
-
EnforcedStyle: always
|
61
|
-
|
62
|
-
Style/HashEachMethods:
|
63
|
-
Enabled: true
|
64
|
-
|
65
|
-
Style/HashTransformKeys:
|
66
|
-
Enabled: true
|
67
|
-
|
68
|
-
Style/HashTransformValues:
|
69
|
-
Enabled: true
|
70
|
-
|
71
|
-
Style/NumericPredicate:
|
72
|
-
Enabled: false
|
73
|
-
|
74
|
-
Style/StringLiterals:
|
75
|
-
EnforcedStyle: double_quotes
|
76
|
-
|
77
|
-
Style/TrailingCommaInArrayLiteral:
|
78
|
-
EnforcedStyleForMultiline: consistent_comma
|
79
|
-
|
80
|
-
Style/TrailingCommaInHashLiteral:
|
81
|
-
EnforcedStyleForMultiline: consistent_comma
|
data/.rubocop_todo.yml
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config`
|
3
|
-
# on 2019-07-30 09:56:31 +0800 using RuboCop version 0.73.0.
|
4
|
-
# The point is for the user to remove these configuration records
|
5
|
-
# one by one as the offenses are removed from the code base.
|
6
|
-
# Note that changes in the inspected code, or installation of new
|
7
|
-
# versions of RuboCop, may require this file to be generated again.
|
8
|
-
|
9
|
-
# Offense count: 23
|
10
|
-
Metrics/AbcSize:
|
11
|
-
Max: 51
|
12
|
-
|
13
|
-
# Offense count: 12
|
14
|
-
# Configuration parameters: CountComments.
|
15
|
-
Metrics/ClassLength:
|
16
|
-
Max: 694
|
17
|
-
|
18
|
-
# Offense count: 12
|
19
|
-
Metrics/CyclomaticComplexity:
|
20
|
-
Max: 15
|
21
|
-
|
22
|
-
# Offense count: 6
|
23
|
-
# Configuration parameters: CountKeywordArgs.
|
24
|
-
Metrics/ParameterLists:
|
25
|
-
Max: 7
|
26
|
-
|
27
|
-
# Offense count: 8
|
28
|
-
Metrics/PerceivedComplexity:
|
29
|
-
Max: 17
|
30
|
-
|
31
|
-
# Offense count: 86
|
32
|
-
Style/Documentation:
|
33
|
-
Enabled: false
|