stripe_invoice 1.1.4 → 1.1.5

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: efea574c7d1eb16dc2251d541d1256870fa03072
4
- data.tar.gz: d98ff4811686d1844eba5bf5f0dcc4162c92df44
3
+ metadata.gz: 4b09a840817baedaa4fd39853e1189841bc36a8b
4
+ data.tar.gz: 770976161c1b2797ba68c311436d618d1ebf5ed4
5
5
  SHA512:
6
- metadata.gz: f040d9380602841183791304a5f1ce90e9ca419a8415557d0e4da2a29cb85f8ec5a0b357f2a010ef0a12d230eb6714f1dfe1930bf4c4fe4099dac4e866bd7235
7
- data.tar.gz: 075bd1ee493d6497e0560db449b31e1d35f39ac3af0f1d50308a572e674c876f630dbd7e7633e0fa197b5dc1b3327d91667f69c0a472a4b7cae52f8d281c300f
6
+ metadata.gz: 7ae6a9f8f922a60845eac0e8dea0b57e181b0c52477ec5ef11a2a43618bb95581e7faeaa7ba9ddeb1da4b04ab433b663b38af429852900470e3fd591f6a95131
7
+ data.tar.gz: 9a6922a964b9758632cab3f51f95205a5b942a3798acbbc9fc472677abfc650ad8f7e920b716dc5a8d83b4bd493c1d2ea08d4c9fa1c1095848c35186e59d1cd8
@@ -95,8 +95,12 @@ module StripeInvoice
95
95
 
96
96
  # we found them directly, go for it.
97
97
  unless subscription.nil?
98
- puts "[#{self.class.name}##{__method__.to_s}] found owner directly for #{stripe_charge.id} - #{subscription.subscription_owner_email}"
99
- return subscription.subscription_owner
98
+ puts "[#{self.class.name}##{__method__.to_s}] found subscription for #{stripe_charge.id} - #{subscription}"
99
+
100
+ # for some reason that association may be dead
101
+ # so we only return if there is an actual value.
102
+ # else we'll try the other method
103
+ return subscription.subscription_owner if subscription.subscription_owner
100
104
  end
101
105
 
102
106
  # koudoku does have a nasty feature/bug in that it deletes the subscription
@@ -1,3 +1,3 @@
1
1
  module StripeInvoice
2
- VERSION = "1.1.4"
2
+ VERSION = "1.1.5"
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.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christoph Engelhardt