stripe-ruby-mock 2.5.1 → 2.5.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 27d9481d4fc8140fc2d42f733fc529fbb7a121cf
4
- data.tar.gz: a8eeabea5e8b7d9181f597b9968e6e98b8fba4ed
3
+ metadata.gz: 87b7b9bf58b67006fc280c125219f07faea77268
4
+ data.tar.gz: aa24705b3dcf69d0aacdac60f53e7e66a218939a
5
5
  SHA512:
6
- metadata.gz: b089c35e1b06284105b79baa151a5c61ebf54ec1e405406e3d0f827964c9e30f6e33b02a92dfc11ee83ec4a0e71a8a7fa35448c9a859476481bbbff2f60d15a1
7
- data.tar.gz: e913cc264d89d765911c9de0066cc57a819f5235b3a2fb4d6266f7dd5561669e3ebe45e12faa5be8e12a74cc4a67ed51ca6adc2064bdcc02b1394dc5cf298899
6
+ metadata.gz: 84ed5f9ecccbff291acb4aa5b3ce65470867c2fbf876cf336001cac17893429f5ba97f4b7d2bf16c27d56036094f9a0cf60dabc8d048ea80f06be9bedf19a187
7
+ data.tar.gz: 26babda5f4790e6495339cab1ae83fb999b22073f6edb435baa4d4d7ae965db33744cc1f8946f33213ec4c085e8113d7f191ddae33906a9f5b41113fb2a977be
data/README.md CHANGED
@@ -12,7 +12,7 @@ This gem has unexpectedly grown in popularity and I've gotten pretty busy, so I'
12
12
 
13
13
  In your gemfile:
14
14
 
15
- gem 'stripe-ruby-mock', '~> 2.5.1', :require => 'stripe_mock'
15
+ gem 'stripe-ruby-mock', '~> 2.5.2', :require => 'stripe_mock'
16
16
 
17
17
  ## Features
18
18
 
@@ -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)
@@ -1,4 +1,4 @@
1
1
  module StripeMock
2
2
  # stripe-ruby-mock version
3
- VERSION = "2.5.1"
3
+ VERSION = "2.5.2"
4
4
  end
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.1
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-01-24 00:00:00.000000000 Z
11
+ date: 2018-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: stripe