stripe-ruby-mock 2.5.1 → 2.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/stripe_mock/request_handlers/subscriptions.rb +2 -2
- data/lib/stripe_mock/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87b7b9bf58b67006fc280c125219f07faea77268
|
4
|
+
data.tar.gz: aa24705b3dcf69d0aacdac60f53e7e66a218939a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84ed5f9ecccbff291acb4aa5b3ce65470867c2fbf876cf336001cac17893429f5ba97f4b7d2bf16c27d56036094f9a0cf60dabc8d048ea80f06be9bedf19a187
|
7
|
+
data.tar.gz: 26babda5f4790e6495339cab1ae83fb999b22073f6edb435baa4d4d7ae965db33744cc1f8946f33213ec4c085e8113d7f191ddae33906a9f5b41113fb2a977be
|
data/README.md
CHANGED
@@ -99,7 +99,7 @@ module StripeMock
|
|
99
99
|
customer = assert_existence :customer, customer_id, customers[customer_id]
|
100
100
|
|
101
101
|
if plan && customer
|
102
|
-
unless customer[:currency] == plan[:currency]
|
102
|
+
unless customer[:currency].to_s == plan[:currency].to_s
|
103
103
|
raise Stripe::InvalidRequestError.new('lol', 'currency', http_status: 400)
|
104
104
|
end
|
105
105
|
end
|
@@ -110,7 +110,7 @@ module StripeMock
|
|
110
110
|
customer[:default_source] = new_card[:id]
|
111
111
|
end
|
112
112
|
|
113
|
-
allowed_params = %w(customer application_fee_percent coupon items metadata plan quantity source tax_percent trial_end trial_period_days current_period_start created)
|
113
|
+
allowed_params = %w(customer application_fee_percent coupon items metadata plan quantity source tax_percent trial_end trial_period_days current_period_start created prorate)
|
114
114
|
unknown_params = params.keys - allowed_params.map(&:to_sym)
|
115
115
|
if unknown_params.length > 0
|
116
116
|
raise Stripe::InvalidRequestError.new("Received unknown parameter: #{unknown_params.join}", unknown_params.first.to_s, http_status: 400)
|
data/lib/stripe_mock/version.rb
CHANGED
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: 2.5.
|
4
|
+
version: 2.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gilbert
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: stripe
|