stripe_invoice 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eaffd686fa6c9c5dd2cb4e11cde6b468a55b4e88
4
- data.tar.gz: ecc0615876caf9309adcf1f886313201795c3f0a
3
+ metadata.gz: ffc19b8dad445d1409da490d7236a4a952235d0f
4
+ data.tar.gz: 665d2326261d6d83a0cf70b87f1ee62b3f173522
5
5
  SHA512:
6
- metadata.gz: 8d5495ebba9a0baba0193803890623ff0889bfabfb6bc88255df318d62e1975eef20acff5eb2352b46739096e2c0758e39f812e6c4a3fe629f880b125434d4e3
7
- data.tar.gz: f06c4a011698ca01c8d3aba3cebe0032359399e6d61966089ca5681612613ee8d3ee18d469bc547b7e33eea64ee753881c1558b16d049dc775675d46b5ef302a
6
+ metadata.gz: f8f6fce8a8aa19d1d43aba835e7c524c45ca78fab0eed9f674d4320605ddf93a3f0a706b059d12b0c3f9958109afddb6c27a36b19d11f50500e94bd1e0d969b6
7
+ data.tar.gz: d1c9fe7a714a921a4ae54f85187dd8cb47b1cd5b94d40cfa9e797042c0144ebff7d3dc2668ee7c83891a67c738e935970b052faf9987e3bb0ab1da0a279f5391
@@ -102,6 +102,7 @@ module StripeInvoice
102
102
  # instead we also try to match the email address/owner_id that was send to stripe
103
103
  # when the account was created
104
104
  stripe_customer = Stripe::Customer.retrieve stripe_charge.customer
105
+ return nil if stripe_customer.deleted? # yes, that can happen :-(
105
106
  owner_id = stripe_customer.description.to_i
106
107
  Koudoku.owner_class.find(owner_id)
107
108
 
@@ -1,3 +1,3 @@
1
1
  module StripeInvoice
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe_invoice
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christoph Engelhardt