stripe-ruby-mock 3.0.1 → 3.1.0.rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.travis.yml +2 -5
- data/CHANGELOG.md +28 -15
- data/Gemfile +1 -0
- data/lib/stripe_mock.rb +4 -0
- data/lib/stripe_mock/api/client.rb +1 -1
- data/lib/stripe_mock/api/instance.rb +1 -1
- data/lib/stripe_mock/api/webhooks.rb +2 -0
- data/lib/stripe_mock/client.rb +2 -1
- data/lib/stripe_mock/data.rb +127 -25
- data/lib/stripe_mock/data/list.rb +31 -6
- data/lib/stripe_mock/instance.rb +7 -2
- data/lib/stripe_mock/request_handlers/account_links.rb +15 -0
- data/lib/stripe_mock/request_handlers/charges.rb +6 -4
- data/lib/stripe_mock/request_handlers/checkout_session.rb +16 -0
- data/lib/stripe_mock/request_handlers/customers.rb +22 -13
- data/lib/stripe_mock/request_handlers/ephemeral_key.rb +1 -1
- data/lib/stripe_mock/request_handlers/express_login_links.rb +15 -0
- data/lib/stripe_mock/request_handlers/helpers/subscription_helpers.rb +12 -7
- data/lib/stripe_mock/request_handlers/invoices.rb +4 -3
- data/lib/stripe_mock/request_handlers/payment_methods.rb +8 -5
- data/lib/stripe_mock/request_handlers/prices.rb +44 -0
- data/lib/stripe_mock/request_handlers/sources.rb +12 -6
- data/lib/stripe_mock/request_handlers/subscriptions.rb +29 -19
- data/lib/stripe_mock/request_handlers/tokens.rb +6 -4
- data/lib/stripe_mock/request_handlers/validators/param_validators.rb +32 -0
- data/lib/stripe_mock/test_strategies/base.rb +26 -0
- data/lib/stripe_mock/version.rb +1 -1
- data/lib/stripe_mock/webhook_fixtures/balance.available.json +6 -0
- data/lib/stripe_mock/webhook_fixtures/payment_intent.payment_failed.json +186 -0
- data/lib/stripe_mock/webhook_fixtures/payment_intent.succeeded.json +164 -0
- data/spec/instance_spec.rb +4 -6
- data/spec/list_spec.rb +23 -0
- data/spec/server_spec.rb +4 -2
- data/spec/shared_stripe_examples/account_link_examples.rb +16 -0
- data/spec/shared_stripe_examples/balance_examples.rb +6 -0
- data/spec/shared_stripe_examples/card_token_examples.rb +17 -21
- data/spec/shared_stripe_examples/checkout_examples.rb +20 -1
- data/spec/shared_stripe_examples/customer_examples.rb +11 -13
- data/spec/shared_stripe_examples/express_login_link_examples.rb +12 -0
- data/spec/shared_stripe_examples/invoice_examples.rb +8 -8
- data/spec/shared_stripe_examples/payment_method_examples.rb +332 -68
- data/spec/shared_stripe_examples/price_examples.rb +183 -0
- data/spec/shared_stripe_examples/subscription_examples.rb +115 -8
- data/spec/spec_helper.rb +4 -0
- data/spec/stripe_mock_spec.rb +2 -2
- data/spec/support/stripe_examples.rb +5 -1
- data/stripe-ruby-mock.gemspec +6 -1
- metadata +25 -11
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stripe-ruby-mock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.1.0.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gilbert
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: stripe
|
@@ -142,18 +142,21 @@ files:
|
|
142
142
|
- lib/stripe_mock/errors/unstarted_state_error.rb
|
143
143
|
- lib/stripe_mock/errors/unsupported_request_error.rb
|
144
144
|
- lib/stripe_mock/instance.rb
|
145
|
+
- lib/stripe_mock/request_handlers/account_links.rb
|
145
146
|
- lib/stripe_mock/request_handlers/accounts.rb
|
146
147
|
- lib/stripe_mock/request_handlers/balance.rb
|
147
148
|
- lib/stripe_mock/request_handlers/balance_transactions.rb
|
148
149
|
- lib/stripe_mock/request_handlers/cards.rb
|
149
150
|
- lib/stripe_mock/request_handlers/charges.rb
|
150
151
|
- lib/stripe_mock/request_handlers/checkout.rb
|
152
|
+
- lib/stripe_mock/request_handlers/checkout_session.rb
|
151
153
|
- lib/stripe_mock/request_handlers/country_spec.rb
|
152
154
|
- lib/stripe_mock/request_handlers/coupons.rb
|
153
155
|
- lib/stripe_mock/request_handlers/customers.rb
|
154
156
|
- lib/stripe_mock/request_handlers/disputes.rb
|
155
157
|
- lib/stripe_mock/request_handlers/ephemeral_key.rb
|
156
158
|
- lib/stripe_mock/request_handlers/events.rb
|
159
|
+
- lib/stripe_mock/request_handlers/express_login_links.rb
|
157
160
|
- lib/stripe_mock/request_handlers/external_accounts.rb
|
158
161
|
- lib/stripe_mock/request_handlers/helpers/bank_account_helpers.rb
|
159
162
|
- lib/stripe_mock/request_handlers/helpers/card_helpers.rb
|
@@ -169,6 +172,7 @@ files:
|
|
169
172
|
- lib/stripe_mock/request_handlers/payment_methods.rb
|
170
173
|
- lib/stripe_mock/request_handlers/payouts.rb
|
171
174
|
- lib/stripe_mock/request_handlers/plans.rb
|
175
|
+
- lib/stripe_mock/request_handlers/prices.rb
|
172
176
|
- lib/stripe_mock/request_handlers/products.rb
|
173
177
|
- lib/stripe_mock/request_handlers/recipients.rb
|
174
178
|
- lib/stripe_mock/request_handlers/refunds.rb
|
@@ -223,6 +227,8 @@ files:
|
|
223
227
|
- lib/stripe_mock/webhook_fixtures/invoiceitem.created.json
|
224
228
|
- lib/stripe_mock/webhook_fixtures/invoiceitem.deleted.json
|
225
229
|
- lib/stripe_mock/webhook_fixtures/invoiceitem.updated.json
|
230
|
+
- lib/stripe_mock/webhook_fixtures/payment_intent.payment_failed.json
|
231
|
+
- lib/stripe_mock/webhook_fixtures/payment_intent.succeeded.json
|
226
232
|
- lib/stripe_mock/webhook_fixtures/plan.created.json
|
227
233
|
- lib/stripe_mock/webhook_fixtures/plan.deleted.json
|
228
234
|
- lib/stripe_mock/webhook_fixtures/plan.updated.json
|
@@ -247,6 +253,7 @@ files:
|
|
247
253
|
- spec/readme_spec.rb
|
248
254
|
- spec/server_spec.rb
|
249
255
|
- spec/shared_stripe_examples/account_examples.rb
|
256
|
+
- spec/shared_stripe_examples/account_link_examples.rb
|
250
257
|
- spec/shared_stripe_examples/balance_examples.rb
|
251
258
|
- spec/shared_stripe_examples/balance_transaction_examples.rb
|
252
259
|
- spec/shared_stripe_examples/bank_examples.rb
|
@@ -261,6 +268,7 @@ files:
|
|
261
268
|
- spec/shared_stripe_examples/dispute_examples.rb
|
262
269
|
- spec/shared_stripe_examples/ephemeral_key_examples.rb
|
263
270
|
- spec/shared_stripe_examples/error_mock_examples.rb
|
271
|
+
- spec/shared_stripe_examples/express_login_link_examples.rb
|
264
272
|
- spec/shared_stripe_examples/external_account_examples.rb
|
265
273
|
- spec/shared_stripe_examples/extra_features_examples.rb
|
266
274
|
- spec/shared_stripe_examples/invoice_examples.rb
|
@@ -269,6 +277,7 @@ files:
|
|
269
277
|
- spec/shared_stripe_examples/payment_method_examples.rb
|
270
278
|
- spec/shared_stripe_examples/payout_examples.rb
|
271
279
|
- spec/shared_stripe_examples/plan_examples.rb
|
280
|
+
- spec/shared_stripe_examples/price_examples.rb
|
272
281
|
- spec/shared_stripe_examples/product_examples.rb
|
273
282
|
- spec/shared_stripe_examples/recipient_examples.rb
|
274
283
|
- spec/shared_stripe_examples/refund_examples.rb
|
@@ -285,11 +294,14 @@ files:
|
|
285
294
|
- spec/support/stripe_examples.rb
|
286
295
|
- spec/util_spec.rb
|
287
296
|
- stripe-ruby-mock.gemspec
|
288
|
-
homepage: https://github.com/
|
297
|
+
homepage: https://github.com/stripe-ruby-mock/stripe-ruby-mock
|
289
298
|
licenses:
|
290
299
|
- MIT
|
291
|
-
metadata:
|
292
|
-
|
300
|
+
metadata:
|
301
|
+
bug_tracker_uri: https://github.com/stripe-ruby-mock/stripe-ruby-mock/issues
|
302
|
+
changelog_uri: https://github.com/stripe-ruby-mock/stripe-ruby-mock/blob/master/CHANGELOG.md
|
303
|
+
source_code_uri: https://github.com/stripe-ruby-mock/stripe-ruby-mock
|
304
|
+
post_install_message:
|
293
305
|
rdoc_options: []
|
294
306
|
require_paths:
|
295
307
|
- lib
|
@@ -300,13 +312,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
300
312
|
version: '0'
|
301
313
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
302
314
|
requirements:
|
303
|
-
- - "
|
315
|
+
- - ">"
|
304
316
|
- !ruby/object:Gem::Version
|
305
|
-
version:
|
317
|
+
version: 1.3.1
|
306
318
|
requirements: []
|
307
|
-
|
308
|
-
|
309
|
-
signing_key:
|
319
|
+
rubygems_version: 3.0.9
|
320
|
+
signing_key:
|
310
321
|
specification_version: 4
|
311
322
|
summary: TDD with stripe
|
312
323
|
test_files:
|
@@ -323,6 +334,7 @@ test_files:
|
|
323
334
|
- spec/readme_spec.rb
|
324
335
|
- spec/server_spec.rb
|
325
336
|
- spec/shared_stripe_examples/account_examples.rb
|
337
|
+
- spec/shared_stripe_examples/account_link_examples.rb
|
326
338
|
- spec/shared_stripe_examples/balance_examples.rb
|
327
339
|
- spec/shared_stripe_examples/balance_transaction_examples.rb
|
328
340
|
- spec/shared_stripe_examples/bank_examples.rb
|
@@ -337,6 +349,7 @@ test_files:
|
|
337
349
|
- spec/shared_stripe_examples/dispute_examples.rb
|
338
350
|
- spec/shared_stripe_examples/ephemeral_key_examples.rb
|
339
351
|
- spec/shared_stripe_examples/error_mock_examples.rb
|
352
|
+
- spec/shared_stripe_examples/express_login_link_examples.rb
|
340
353
|
- spec/shared_stripe_examples/external_account_examples.rb
|
341
354
|
- spec/shared_stripe_examples/extra_features_examples.rb
|
342
355
|
- spec/shared_stripe_examples/invoice_examples.rb
|
@@ -345,6 +358,7 @@ test_files:
|
|
345
358
|
- spec/shared_stripe_examples/payment_method_examples.rb
|
346
359
|
- spec/shared_stripe_examples/payout_examples.rb
|
347
360
|
- spec/shared_stripe_examples/plan_examples.rb
|
361
|
+
- spec/shared_stripe_examples/price_examples.rb
|
348
362
|
- spec/shared_stripe_examples/product_examples.rb
|
349
363
|
- spec/shared_stripe_examples/recipient_examples.rb
|
350
364
|
- spec/shared_stripe_examples/refund_examples.rb
|