stripe_invoice 0.4.0 → 0.4.1

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: 4885d32ab6190113c39fb30c8ab1ce99904b4603
4
- data.tar.gz: 204da69a615798863d6944c0001f14c2d5173feb
3
+ metadata.gz: 5847b25cb39ed67a3982233423427cc9255176f0
4
+ data.tar.gz: 195a936e7bbcd0cb063fa680db16d0015a99409a
5
5
  SHA512:
6
- metadata.gz: 3623c343b700cc7caf4636198504d1b2dfd5e216874a30efa30aadc1397644565a7476f2a152a8c34b69971681e2f20c62aba134f63b9d44fae540b6350ef055
7
- data.tar.gz: e7eef5100bf2191ed6708a750db875ec4304d892bb784888a51ba33d3c03e33231fb1b82093785448a704744ea2795c2b8bbeadce0d055f4f52729f062fb8d41
6
+ metadata.gz: 8874ad8fa24ea69f7168f4a5c8f52a49ef1ff2ea0d66047095450118830a474d4438703420ea6819e16a6d68cc8918f48120584a71cec338f2f7adb2b9e4b10c
7
+ data.tar.gz: 22b608ca46be7c0c08c007895de5851bf8235feaad501c65f6f2262d731cdaa727b36fa51ad1f8244f9a29142b19ada3d646f7e0916b7d5f6801420418a90136
@@ -33,7 +33,10 @@ module StripeInvoice
33
33
  def self.create_from_stripe(stripe_charge)
34
34
  charge = Charge.find_by_stripe_id(stripe_charge[:id])
35
35
 
36
- raise "won't build for unpaid charges" unless stripe_charge.paid
36
+ unless stripe_charge.paid
37
+ puts "ignoring unpaid charges"
38
+ return
39
+ end
37
40
  # for existing invoices just update and be done
38
41
  if charge.present?
39
42
  charge.update_attribute(:json, stripe_charge)
@@ -1,3 +1,3 @@
1
1
  module StripeInvoice
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.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: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christoph Engelhardt