stripe_local 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stripe_local/version.rb +1 -1
- data/lib/stripe_local.rb +3 -3
- data/spec/dummy/log/test.log +111 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78e942b16448c6c2cda74357a3611417424b4174
|
4
|
+
data.tar.gz: 21a11867d73d77ccae4a8af88793576d8e82e22a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da405a0cb34f085f91bce8974dcee58ad457d6b19c8bafd5540bdc4338a3368fe93b6a76559bd9f10bfa8040583eecf0686baa74d09aa69102949df93764a7b3
|
7
|
+
data.tar.gz: 5b2e13e3cb0020fe346eaa5a924b5e231835e97bb1451d9981998efca629063bcc754ff3c0da970a77def3bb45891a2aa09874a5609903980f3cad634941f62c
|
data/lib/stripe_local/version.rb
CHANGED
data/lib/stripe_local.rb
CHANGED
@@ -51,11 +51,11 @@ module StripeLocal
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def customer
|
54
|
-
|
54
|
+
StripeLocal::Customer.find_by( model_id: id )
|
55
55
|
end
|
56
56
|
|
57
57
|
def method_missing method, *args, &block
|
58
|
-
if self.customer
|
58
|
+
if self.customer && self.customer.respond_to?( method )
|
59
59
|
self.customer.send method, *args, &block
|
60
60
|
else
|
61
61
|
super
|
@@ -63,7 +63,7 @@ module StripeLocal
|
|
63
63
|
end
|
64
64
|
|
65
65
|
def respond_to_missing? method, include_private = false
|
66
|
-
self.customer
|
66
|
+
self.customer && self.customer.respond_to?( method ) || super
|
67
67
|
end
|
68
68
|
|
69
69
|
end
|
data/spec/dummy/log/test.log
CHANGED
@@ -20722,3 +20722,114 @@ Migrating to LoadStripeTables (20131122063517)
|
|
20722
20722
|
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "stripe_local_invoices" ("amount_due", "attempt_count", "attempted", "charge_id", "closed", "created_at", "customer_id", "date", "discount", "ending_balance", "id", "paid", "period_end", "period_start", "starting_balance", "subtotal", "total", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18) RETURNING "id"[0m [["amount_due", 9900], ["attempt_count", 0], ["attempted", true], ["charge_id", "ch_blahblahblah"], ["closed", true], ["created_at", Sat, 30 Nov 2013 09:48:15 CST -06:00], ["customer_id", "cus_1A3zUmx7NpUgrT"], ["date", Tue, 07 May 2013 18:23:47 CDT -05:00], ["discount", nil], ["ending_balance", 0], ["id", "in_2blahblahagain"], ["paid", true], ["period_end", Tue, 07 May 2013 18:23:47 CDT -05:00], ["period_start", Tue, 07 May 2013 18:23:47 CDT -05:00], ["starting_balance", 0], ["subtotal", 9900], ["total", 9900], ["updated_at", Sat, 30 Nov 2013 09:48:15 CST -06:00]]
|
20723
20723
|
[1m[35m (0.4ms)[0m COMMIT
|
20724
20724
|
[1m[36mStripeLocal::LineItem Load (0.6ms)[0m [1mSELECT "stripe_local_line_items".* FROM "stripe_local_line_items" WHERE "stripe_local_line_items"."invoice_id" = $1[0m [["invoice_id", "in_2blahblahagain"]]
|
20725
|
+
[1m[36m (0.8ms)[0m [1mALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_discounts" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_transfers" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_cards" DISABLE TRIGGER ALL;ALTER TABLE "clients" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_customers" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_subscriptions" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_invoices" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_plans" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_line_items" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_charges" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_coupons" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_transactions" DISABLE TRIGGER ALL;ALTER TABLE "stripe_local_balances" DISABLE TRIGGER ALL[0m
|
20726
|
+
[1m[35m (1.0ms)[0m select table_name from information_schema.views where table_schema = 'dummy_test'
|
20727
|
+
[1m[36m (25.8ms)[0m [1mTRUNCATE TABLE "stripe_local_discounts", "stripe_local_transfers", "stripe_local_cards", "clients", "stripe_local_customers", "stripe_local_subscriptions", "stripe_local_invoices", "stripe_local_plans", "stripe_local_line_items", "stripe_local_charges", "stripe_local_coupons", "stripe_local_transactions", "stripe_local_balances" RESTART IDENTITY CASCADE;[0m
|
20728
|
+
[1m[35m (0.9ms)[0m ALTER TABLE "stripe_local_discounts" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_cards" ENABLE TRIGGER ALL;ALTER TABLE "clients" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_customers" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_transfers" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_subscriptions" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_invoices" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_plans" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_line_items" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_charges" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_coupons" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_transactions" ENABLE TRIGGER ALL;ALTER TABLE "stripe_local_balances" ENABLE TRIGGER ALL
|
20729
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
20730
|
+
[1m[35m (0.1ms)[0m BEGIN
|
20731
|
+
[1m[36mSQL (4.2ms)[0m [1mINSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "id", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"[0m [["brand", "Visa"], ["created_at", Sat, 30 Nov 2013 09:59:42 CST -06:00], ["customer_id", "cus_2J7PZ8ncCbR10Z"], ["cvc_check", "pass"], ["exp_month", 1], ["exp_year", 2014], ["id", "cc_2J7Pscoh4jvFjJ"], ["last4", "4242"], ["name", "Connor Tumbleson"], ["updated_at", Sat, 30 Nov 2013 09:59:42 CST -06:00]]
|
20732
|
+
[1m[35m (0.3ms)[0m COMMIT
|
20733
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
20734
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 30 Nov 2013 09:59:42 CST -06:00], ["pending", 29900], ["updated_at", Sat, 30 Nov 2013 09:59:42 CST -06:00]]
|
20735
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
20736
|
+
[1m[35m (0.1ms)[0m BEGIN
|
20737
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 30 Nov 2013 09:59:42 CST -06:00], ["pending", 19900], ["updated_at", Sat, 30 Nov 2013 09:59:42 CST -06:00]]
|
20738
|
+
[1m[35m (0.3ms)[0m COMMIT
|
20739
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
20740
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 30 Nov 2013 09:59:42 CST -06:00], ["pending", 29900], ["updated_at", Sat, 30 Nov 2013 09:59:42 CST -06:00]]
|
20741
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
20742
|
+
[1m[35m (0.1ms)[0m BEGIN
|
20743
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 30 Nov 2013 09:59:42 CST -06:00], ["pending", 19900], ["updated_at", Sat, 30 Nov 2013 09:59:42 CST -06:00]]
|
20744
|
+
[1m[35m (0.2ms)[0m COMMIT
|
20745
|
+
[1m[36m (0.2ms)[0m [1mSELECT "stripe_local_balances"."available" FROM "stripe_local_balances"[0m
|
20746
|
+
[1m[35m (0.1ms)[0m BEGIN
|
20747
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 30 Nov 2013 09:59:42 CST -06:00], ["pending", 29900], ["updated_at", Sat, 30 Nov 2013 09:59:42 CST -06:00]]
|
20748
|
+
[1m[35m (0.3ms)[0m COMMIT
|
20749
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
20750
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 30 Nov 2013 09:59:42 CST -06:00], ["pending", 19900], ["updated_at", Sat, 30 Nov 2013 09:59:42 CST -06:00]]
|
20751
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
20752
|
+
[1m[35m (0.1ms)[0m BEGIN
|
20753
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 30 Nov 2013 09:59:42 CST -06:00], ["pending", 29900], ["updated_at", Sat, 30 Nov 2013 09:59:42 CST -06:00]]
|
20754
|
+
[1m[35m (0.2ms)[0m COMMIT
|
20755
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
20756
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 30 Nov 2013 09:59:42 CST -06:00], ["pending", 19900], ["updated_at", Sat, 30 Nov 2013 09:59:42 CST -06:00]]
|
20757
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
20758
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "stripe_local_balances"
|
20759
|
+
[1m[36mStripeLocal::Balance Load (0.3ms)[0m [1mSELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1[0m
|
20760
|
+
[1m[35mStripeLocal::Balance Load (0.2ms)[0m SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
|
20761
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "stripe_local_balances" SET "updated_at" = '2013-12-01 15:59:42.992960' WHERE "stripe_local_balances"."id" = 8[0m
|
20762
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "stripe_local_balances"
|
20763
|
+
[1m[36mStripeLocal::Balance Load (0.2ms)[0m [1mSELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1[0m
|
20764
|
+
[1m[35m (0.1ms)[0m BEGIN
|
20765
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 30 Nov 2013 09:59:42 CST -06:00], ["pending", 29900], ["updated_at", Sat, 30 Nov 2013 09:59:42 CST -06:00]]
|
20766
|
+
[1m[35m (0.3ms)[0m COMMIT
|
20767
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
20768
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 30 Nov 2013 09:59:42 CST -06:00], ["pending", 19900], ["updated_at", Sat, 30 Nov 2013 09:59:42 CST -06:00]]
|
20769
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
20770
|
+
[1m[35m (0.1ms)[0m SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
|
20771
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
20772
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 9900], ["created_at", Sat, 30 Nov 2013 09:59:43 CST -06:00], ["pending", 29900], ["updated_at", Sat, 30 Nov 2013 09:59:43 CST -06:00]]
|
20773
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
20774
|
+
[1m[35m (0.1ms)[0m BEGIN
|
20775
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 19900], ["created_at", Sat, 30 Nov 2013 09:59:43 CST -06:00], ["pending", 19900], ["updated_at", Sat, 30 Nov 2013 09:59:43 CST -06:00]]
|
20776
|
+
[1m[35m (0.2ms)[0m COMMIT
|
20777
|
+
[1m[36m (0.2ms)[0m [1mSELECT "stripe_local_balances"."pending" FROM "stripe_local_balances"[0m
|
20778
|
+
[1m[35m (0.1ms)[0m BEGIN
|
20779
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["available", 9900], ["created_at", Sat, 30 Nov 2013 09:59:43 CST -06:00], ["pending", 29900], ["updated_at", Sat, 30 Nov 2013 09:59:43 CST -06:00]]
|
20780
|
+
[1m[35m (0.3ms)[0m COMMIT
|
20781
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
20782
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 19900], ["created_at", Sat, 30 Nov 2013 09:59:43 CST -06:00], ["pending", 19900], ["updated_at", Sat, 30 Nov 2013 09:59:43 CST -06:00]]
|
20783
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
20784
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "stripe_local_balances"
|
20785
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
20786
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "stripe_local_balances" ("available", "created_at", "pending", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["available", 39800], ["created_at", Sat, 30 Nov 2013 09:59:43 CST -06:00], ["pending", 0], ["updated_at", Sat, 30 Nov 2013 09:59:43 CST -06:00]]
|
20787
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
20788
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "stripe_local_balances"
|
20789
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
20790
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "stripe_local_transactions" ("amount", "available_on", "created", "created_at", "description", "fee", "id", "net", "source_id", "source_type", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["amount", -100], ["available_on", Mon, 07 Oct 2013 05:01:01 CDT -05:00], ["created", Mon, 30 Sep 2013 05:01:01 CDT -05:00], ["created_at", Sat, 30 Nov 2013 09:59:43 CST -06:00], ["description", "a dollar for Don Atello"], ["fee", 25], ["id", "txn_2fOGkiBkDgpObU"], ["net", -125], ["source_id", "tr_2fOGfKABdHu3uf"], ["source_type", "transfer"], ["status", "available"], ["updated_at", Sat, 30 Nov 2013 09:59:43 CST -06:00]]
|
20791
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
20792
|
+
[1m[35m (0.2ms)[0m BEGIN
|
20793
|
+
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "stripe_local_transfers" ("amount", "created_at", "date", "description", "id", "status", "transaction_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["amount", 100], ["created_at", Sat, 30 Nov 2013 09:59:43 CST -06:00], ["date", Mon, 30 Sep 2013 05:01:01 CDT -05:00], ["description", "a dollar for Don Atello"], ["id", "tr_2fOGfKABdHu3uf"], ["status", "paid"], ["transaction_id", "txn_2fOGkiBkDgpObU"], ["updated_at", Sat, 30 Nov 2013 09:59:43 CST -06:00]]
|
20794
|
+
[1m[35m (0.3ms)[0m COMMIT
|
20795
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
20796
|
+
[1m[35mSQL (1.4ms)[0m INSERT INTO "stripe_local_line_items" ("amount", "created_at", "id", "invoice_id", "period_end", "period_start", "plan_id", "proration", "quantity", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["amount", 9900], ["created_at", Sat, 30 Nov 2013 09:59:43 CST -06:00], ["id", "su_1bfTBoL3o7blah"], ["invoice_id", "in_2blahblahagain"], ["period_end", Thu, 06 Jun 2013 18:23:47 CDT -05:00], ["period_start", Tue, 07 May 2013 18:23:47 CDT -05:00], ["plan_id", "HR99"], ["proration", false], ["quantity", 1], ["updated_at", Sat, 30 Nov 2013 09:59:43 CST -06:00]]
|
20797
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
20798
|
+
[1m[35m (0.2ms)[0m BEGIN
|
20799
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "stripe_local_invoices" ("amount_due", "attempt_count", "attempted", "charge_id", "closed", "created_at", "customer_id", "date", "discount", "ending_balance", "id", "paid", "period_end", "period_start", "starting_balance", "subtotal", "total", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18) RETURNING "id"[0m [["amount_due", 9900], ["attempt_count", 0], ["attempted", true], ["charge_id", "ch_blahblahblah"], ["closed", true], ["created_at", Sat, 30 Nov 2013 09:59:43 CST -06:00], ["customer_id", "cus_1A3zUmx7NpUgrT"], ["date", Tue, 07 May 2013 18:23:47 CDT -05:00], ["discount", nil], ["ending_balance", 0], ["id", "in_2blahblahagain"], ["paid", true], ["period_end", Tue, 07 May 2013 18:23:47 CDT -05:00], ["period_start", Tue, 07 May 2013 18:23:47 CDT -05:00], ["starting_balance", 0], ["subtotal", 9900], ["total", 9900], ["updated_at", Sat, 30 Nov 2013 09:59:43 CST -06:00]]
|
20800
|
+
[1m[35m (0.4ms)[0m COMMIT
|
20801
|
+
[1m[36mStripeLocal::LineItem Load (0.7ms)[0m [1mSELECT "stripe_local_line_items".* FROM "stripe_local_line_items" WHERE "stripe_local_line_items"."invoice_id" = $1[0m [["invoice_id", "in_2blahblahagain"]]
|
20802
|
+
[1m[35mStripeLocal::Plan Load (0.3ms)[0m SELECT "stripe_local_plans".* FROM "stripe_local_plans" WHERE "stripe_local_plans"."id" = 'New_Plan' LIMIT 1
|
20803
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
20804
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "stripe_local_plans" ("amount", "created_at", "id", "interval", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["amount", 2999], ["created_at", Sat, 30 Nov 2013 09:59:43 CST -06:00], ["id", "New_Plan"], ["interval", "month"], ["name", "New Plan"], ["updated_at", Sat, 30 Nov 2013 09:59:43 CST -06:00]]
|
20805
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
20806
|
+
[1m[35m (0.1ms)[0m BEGIN
|
20807
|
+
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "stripe_local_subscriptions" ("created_at", "current_period_end", "current_period_start", "customer_id", "plan_id", "start", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["created_at", Sat, 30 Nov 2013 09:59:43 CST -06:00], ["current_period_end", Wed, 11 Dec 2013 15:32:46 CST -06:00], ["current_period_start", Mon, 11 Nov 2013 15:32:46 CST -06:00], ["customer_id", "cus_2vIuZmAfWK89Yk"], ["plan_id", "HR99"], ["start", Mon, 11 Nov 2013 15:32:46 CST -06:00], ["status", "active"], ["updated_at", Sat, 30 Nov 2013 09:59:43 CST -06:00]]
|
20808
|
+
[1m[35m (0.3ms)[0m COMMIT
|
20809
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
20810
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "stripe_local_charges" ("amount", "card_id", "created", "created_at", "customer_id", "id", "invoice_id", "paid", "transaction_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["amount", 9900], ["card_id", "cc_1eX7GyRo6wivEf"], ["created", Thu, 01 Aug 2013 18:08:14 CDT -05:00], ["created_at", Sat, 30 Nov 2013 09:59:43 CST -06:00], ["customer_id", "cus_1eX7onie2gq8m1"], ["id", "ch_2wiSyZQkZw8F50"], ["invoice_id", "in_2whTLSkV2ItHAv"], ["paid", true], ["transaction_id", "txn_2wiSFq1N6BTZTQ"], ["updated_at", Sat, 30 Nov 2013 09:59:43 CST -06:00]]
|
20811
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
20812
|
+
[1m[35mStripeLocal::Customer Load (0.4ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
20813
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
20814
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
20815
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
20816
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
20817
|
+
[1m[36mStripeLocal::Customer Load (0.1ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
20818
|
+
[1m[35mStripeLocal::Customer Load (0.1ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
20819
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
20820
|
+
[1m[35mStripeLocal::Customer Load (0.1ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
|
20821
|
+
[1m[36mStripeLocal::Customer Load (0.2ms)[0m [1mSELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1[0m
|
20822
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "clients" ("created_at", "email", "name", "password", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 30 Nov 2013 09:59:43 CST -06:00], ["email", "test@test.com"], ["name", "Test Case"], ["password", "password"], ["updated_at", Sat, 30 Nov 2013 09:59:43 CST -06:00]]
|
20823
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
20824
|
+
[1m[35mStripeLocal::Customer Load (0.2ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
|
20825
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
20826
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "stripe_local_cards" ("brand", "created_at", "customer_id", "cvc_check", "exp_month", "exp_year", "id", "last4", "name", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["brand", "Visa"], ["created_at", Sat, 30 Nov 2013 09:59:43 CST -06:00], ["customer_id", "cus_123"], ["cvc_check", "pass"], ["exp_month", 8], ["exp_year", 2014], ["id", "card_102Y2J1Cmf55uWiejglofO7j"], ["last4", "4242"], ["name", "Test Case"], ["updated_at", Sat, 30 Nov 2013 09:59:43 CST -06:00]]
|
20827
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
20828
|
+
[1m[35m (0.1ms)[0m BEGIN
|
20829
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "stripe_local_subscriptions" ("created_at", "current_period_end", "current_period_start", "customer_id", "plan_id", "start", "status", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["created_at", Sat, 30 Nov 2013 09:59:43 CST -06:00], ["current_period_end", Thu, 10 Oct 2013 13:52:04 CDT -05:00], ["current_period_start", Tue, 10 Sep 2013 13:52:04 CDT -05:00], ["customer_id", "cus_123"], ["plan_id", "GIN100"], ["start", Tue, 10 Sep 2013 13:52:04 CDT -05:00], ["status", "active"], ["updated_at", Sat, 30 Nov 2013 09:59:43 CST -06:00]]
|
20830
|
+
[1m[35m (0.3ms)[0m COMMIT
|
20831
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
20832
|
+
[1m[35mSQL (1.3ms)[0m INSERT INTO "stripe_local_customers" ("account_balance", "created_at", "default_card", "delinquent", "description", "email", "id", "model_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["account_balance", 0], ["created_at", Sat, 30 Nov 2013 09:59:43 CST -06:00], ["default_card", "card_102Y2J1Cmf55uWiejglofO7j"], ["delinquent", false], ["description", "On September 10th, Test signed up for CA50."], ["email", "test@test.com"], ["id", "cus_123"], ["model_id", 1], ["updated_at", Sat, 30 Nov 2013 09:59:43 CST -06:00]]
|
20833
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
20834
|
+
[1m[35mStripeLocal::Customer Load (0.4ms)[0m SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
|
20835
|
+
[1m[36mStripeLocal::Subscription Load (0.7ms)[0m [1mSELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" WHERE "stripe_local_subscriptions"."customer_id" = $1 ORDER BY "stripe_local_subscriptions"."id" ASC LIMIT 1[0m [["customer_id", "cus_123"]]
|