stripe 5.31.0 → 5.32.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/VERSION +1 -1
  4. data/lib/stripe/version.rb +1 -1
  5. data/stripe.gemspec +9 -2
  6. metadata +3 -195
  7. data/.editorconfig +0 -10
  8. data/.gitattributes +0 -4
  9. data/.github/ISSUE_TEMPLATE.md +0 -5
  10. data/.github/workflows/ci.yml +0 -34
  11. data/.gitignore +0 -8
  12. data/.rubocop.yml +0 -81
  13. data/.rubocop_todo.yml +0 -33
  14. data/.travis.yml +0 -38
  15. data/.vscode/extensions.json +0 -7
  16. data/.vscode/settings.json +0 -8
  17. data/test/openapi/README.md +0 -9
  18. data/test/stripe/account_link_test.rb +0 -18
  19. data/test/stripe/account_test.rb +0 -412
  20. data/test/stripe/alipay_account_test.rb +0 -37
  21. data/test/stripe/api_operations_test.rb +0 -80
  22. data/test/stripe/api_resource_test.rb +0 -646
  23. data/test/stripe/apple_pay_domain_test.rb +0 -46
  24. data/test/stripe/application_fee_refund_test.rb +0 -37
  25. data/test/stripe/application_fee_test.rb +0 -58
  26. data/test/stripe/balance_test.rb +0 -13
  27. data/test/stripe/balance_transaction_test.rb +0 -20
  28. data/test/stripe/bank_account_test.rb +0 -36
  29. data/test/stripe/billing_portal/configuration_test.rb +0 -37
  30. data/test/stripe/billing_portal/session_test.rb +0 -18
  31. data/test/stripe/capability_test.rb +0 -45
  32. data/test/stripe/charge_test.rb +0 -64
  33. data/test/stripe/checkout/session_test.rb +0 -53
  34. data/test/stripe/connection_manager_test.rb +0 -210
  35. data/test/stripe/country_spec_test.rb +0 -20
  36. data/test/stripe/coupon_test.rb +0 -61
  37. data/test/stripe/credit_note_test.rb +0 -90
  38. data/test/stripe/customer_balance_transaction_test.rb +0 -37
  39. data/test/stripe/customer_card_test.rb +0 -48
  40. data/test/stripe/customer_test.rb +0 -226
  41. data/test/stripe/dispute_test.rb +0 -51
  42. data/test/stripe/ephemeral_key_test.rb +0 -93
  43. data/test/stripe/errors_test.rb +0 -53
  44. data/test/stripe/exchange_rate_test.rb +0 -20
  45. data/test/stripe/file_link_test.rb +0 -41
  46. data/test/stripe/file_test.rb +0 -87
  47. data/test/stripe/instrumentation_test.rb +0 -74
  48. data/test/stripe/invoice_item_test.rb +0 -66
  49. data/test/stripe/invoice_line_item_test.rb +0 -8
  50. data/test/stripe/invoice_test.rb +0 -229
  51. data/test/stripe/issuing/authorization_test.rb +0 -72
  52. data/test/stripe/issuing/card_test.rb +0 -74
  53. data/test/stripe/issuing/cardholder_test.rb +0 -53
  54. data/test/stripe/issuing/dispute_test.rb +0 -54
  55. data/test/stripe/issuing/transaction_test.rb +0 -48
  56. data/test/stripe/list_object_test.rb +0 -202
  57. data/test/stripe/login_link_test.rb +0 -37
  58. data/test/stripe/mandate_test.rb +0 -14
  59. data/test/stripe/multipart_encoder_test.rb +0 -130
  60. data/test/stripe/oauth_test.rb +0 -149
  61. data/test/stripe/order_return_test.rb +0 -21
  62. data/test/stripe/order_test.rb +0 -82
  63. data/test/stripe/payment_intent_test.rb +0 -107
  64. data/test/stripe/payment_method_test.rb +0 -84
  65. data/test/stripe/payout_test.rb +0 -72
  66. data/test/stripe/person_test.rb +0 -46
  67. data/test/stripe/plan_test.rb +0 -98
  68. data/test/stripe/price_test.rb +0 -48
  69. data/test/stripe/product_test.rb +0 -58
  70. data/test/stripe/promotion_code_test.rb +0 -42
  71. data/test/stripe/radar/early_fraud_warning_test.rb +0 -22
  72. data/test/stripe/radar/value_list_item_test.rb +0 -48
  73. data/test/stripe/radar/value_list_test.rb +0 -61
  74. data/test/stripe/recipient_test.rb +0 -62
  75. data/test/stripe/refund_test.rb +0 -39
  76. data/test/stripe/reporting/report_run_test.rb +0 -33
  77. data/test/stripe/reporting/report_type_test.rb +0 -22
  78. data/test/stripe/reversal_test.rb +0 -43
  79. data/test/stripe/review_test.rb +0 -27
  80. data/test/stripe/setup_attempt_test.rb +0 -16
  81. data/test/stripe/setup_intent_test.rb +0 -84
  82. data/test/stripe/sigma/scheduled_query_run_test.rb +0 -22
  83. data/test/stripe/sku_test.rb +0 -60
  84. data/test/stripe/source_test.rb +0 -119
  85. data/test/stripe/stripe_client_test.rb +0 -1456
  86. data/test/stripe/stripe_configuration_test.rb +0 -159
  87. data/test/stripe/stripe_object_test.rb +0 -510
  88. data/test/stripe/stripe_response_test.rb +0 -95
  89. data/test/stripe/subscription_item_test.rb +0 -84
  90. data/test/stripe/subscription_schedule_test.rb +0 -82
  91. data/test/stripe/subscription_test.rb +0 -80
  92. data/test/stripe/tax_id_test.rb +0 -31
  93. data/test/stripe/tax_rate_test.rb +0 -43
  94. data/test/stripe/terminal/connection_token_test.rb +0 -16
  95. data/test/stripe/terminal/location_test.rb +0 -68
  96. data/test/stripe/terminal/reader_test.rb +0 -62
  97. data/test/stripe/three_d_secure_test.rb +0 -23
  98. data/test/stripe/topup_test.rb +0 -62
  99. data/test/stripe/transfer_test.rb +0 -88
  100. data/test/stripe/usage_record_summary_test.rb +0 -29
  101. data/test/stripe/util_test.rb +0 -402
  102. data/test/stripe/webhook_endpoint_test.rb +0 -59
  103. data/test/stripe/webhook_test.rb +0 -135
  104. data/test/stripe_mock.rb +0 -78
  105. data/test/stripe_test.rb +0 -137
  106. data/test/test_data.rb +0 -61
  107. data/test/test_helper.rb +0 -74
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7e821f192b447738c35b91b15911de51e0cd138c0e999230747c43e04a1b97c7
4
- data.tar.gz: ba43636f6bf6e95dfed2daa8078f22d81a4dca5b056dacf12bc979925c6a7786
3
+ metadata.gz: e600b7741930b12c7ffaa1b6cfdcf6a540d5d57f8955a2c0be38a37d6f5ff556
4
+ data.tar.gz: dfd0a97aff35a0e38a4818a1c239da46b3d47d741cf1fb3c7608d7d5c7c182b9
5
5
  SHA512:
6
- metadata.gz: c9d7e86de7356f7e6a8a929304b330c7692686a31596af70e2ed91c5e15c024102ed9a32f9a81ec07ac585f12a6a853cd28acee37ea95523e1b8788d7041e130
7
- data.tar.gz: 7ac1ca50526e7dce9f45cd4179dc17f5965ce24f5702dc1605bd449f25f852827b8f24ba6dbb32983142f34037296cd8c0c28927da576915fbbc42e8022f8892
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.31.0
1
+ 5.32.0
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "5.31.0"
4
+ VERSION = "5.32.0"
5
5
  end
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
- s.files = `git ls-files`.split("\n")
30
- s.test_files = `git ls-files -- test/*`.split("\n")
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.31.0
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-02 00:00:00.000000000 Z
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
@@ -1,10 +0,0 @@
1
- # see http://editorconfig.org/
2
-
3
- root = true
4
-
5
- [*]
6
- indent_style = space
7
- indent_size = 2
8
- end_of_line = lf
9
- charset = utf-8
10
- insert_final_newline = true
data/.gitattributes DELETED
@@ -1,4 +0,0 @@
1
- # may be useful in hiding large schema changes in pull request diffs (but not
2
- # using it for now)
3
- spec/*.json binary
4
- spec/*.yaml binary
@@ -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.
@@ -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
@@ -1,8 +0,0 @@
1
- /stripe-*.gem
2
- /Gemfile.lock
3
- .rvmrc
4
- Gemfile.lock
5
- tags
6
- /.bundle/
7
- coverage/
8
- .idea/
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