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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a6ddf5da1efbd7a25f9c061e1dc47923411cd7c4
4
- data.tar.gz: a641840f2f76bde8e9469d2f2603515d342aac56
3
+ metadata.gz: 78e942b16448c6c2cda74357a3611417424b4174
4
+ data.tar.gz: 21a11867d73d77ccae4a8af88793576d8e82e22a
5
5
  SHA512:
6
- metadata.gz: e107c6834e23d3834532c0aaa5d3e70eaef925b7ddc2148919d635f0dccca08d16415b0a94a69b28f0895ec77eeb2b01637c3dd7ace4a493fbf87967a2ecc641
7
- data.tar.gz: 6363e679a8503ebdfa65adf86448bbfc6f0d9a8096b623d3763f8961dcbd75117aab26e96d1250527ab559782cd41a881016570a6a9721e83ff018493843757c
6
+ metadata.gz: da405a0cb34f085f91bce8974dcee58ad457d6b19c8bafd5540bdc4338a3368fe93b6a76559bd9f10bfa8040583eecf0686baa74d09aa69102949df93764a7b3
7
+ data.tar.gz: 5b2e13e3cb0020fe346eaa5a924b5e231835e97bb1451d9981998efca629063bcc754ff3c0da970a77def3bb45891a2aa09874a5609903980f3cad634941f62c
@@ -1,3 +1,3 @@
1
1
  module StripeLocal
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
data/lib/stripe_local.rb CHANGED
@@ -51,11 +51,11 @@ module StripeLocal
51
51
  end
52
52
 
53
53
  def customer
54
- @customer ||= StripeLocal::Customer.find_by( model_id: id )
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.present? && self.customer.respond_to?( method )
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.present? && self.customer.respond_to?( method ) || super
66
+ self.customer && self.customer.respond_to?( method ) || super
67
67
  end
68
68
 
69
69
  end
@@ -20722,3 +20722,114 @@ Migrating to LoadStripeTables (20131122063517)
20722
20722
  SQL (1.5ms) INSERT 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" [["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
   (0.4ms) COMMIT
20724
20724
  StripeLocal::LineItem Load (0.6ms) SELECT "stripe_local_line_items".* FROM "stripe_local_line_items" WHERE "stripe_local_line_items"."invoice_id" = $1 [["invoice_id", "in_2blahblahagain"]]
20725
+  (0.8ms) ALTER 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
20726
+  (1.0ms) select table_name from information_schema.views where table_schema = 'dummy_test'
20727
+  (25.8ms) TRUNCATE 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;
20728
+  (0.9ms) 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
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
20730
+  (0.1ms) BEGIN
20731
+ SQL (4.2ms) 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: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
+  (0.3ms) COMMIT
20733
+  (0.1ms) BEGIN
20734
+ SQL (0.8ms) 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
+  (0.3ms) COMMIT
20736
+  (0.1ms) BEGIN
20737
+ SQL (0.3ms) 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]]
20738
+  (0.3ms) COMMIT
20739
+  (0.1ms) BEGIN
20740
+ SQL (0.3ms) 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
+  (0.3ms) COMMIT
20742
+  (0.1ms) BEGIN
20743
+ SQL (0.2ms) 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]]
20744
+  (0.2ms) COMMIT
20745
+  (0.2ms) SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
20746
+  (0.1ms) BEGIN
20747
+ SQL (0.3ms) 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]]
20748
+  (0.3ms) COMMIT
20749
+  (0.1ms) BEGIN
20750
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
20752
+  (0.1ms) BEGIN
20753
+ SQL (0.3ms) 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]]
20754
+  (0.2ms) COMMIT
20755
+  (0.0ms) BEGIN
20756
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
20758
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
20759
+ StripeLocal::Balance Load (0.3ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
20760
+ StripeLocal::Balance Load (0.2ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
20761
+ SQL (0.4ms) UPDATE "stripe_local_balances" SET "updated_at" = '2013-12-01 15:59:42.992960' WHERE "stripe_local_balances"."id" = 8
20762
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
20763
+ StripeLocal::Balance Load (0.2ms) SELECT "stripe_local_balances".* FROM "stripe_local_balances" ORDER BY "stripe_local_balances"."id" DESC LIMIT 1
20764
+  (0.1ms) BEGIN
20765
+ SQL (0.3ms) 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]]
20766
+  (0.3ms) COMMIT
20767
+  (0.1ms) BEGIN
20768
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
20770
+  (0.1ms) SELECT "stripe_local_balances"."available" FROM "stripe_local_balances"
20771
+  (0.1ms) BEGIN
20772
+ SQL (0.3ms) 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
+  (0.2ms) COMMIT
20774
+  (0.1ms) BEGIN
20775
+ SQL (0.3ms) 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]]
20776
+  (0.2ms) COMMIT
20777
+  (0.2ms) SELECT "stripe_local_balances"."pending" FROM "stripe_local_balances"
20778
+  (0.1ms) BEGIN
20779
+ SQL (0.8ms) 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]]
20780
+  (0.3ms) COMMIT
20781
+  (0.1ms) BEGIN
20782
+ SQL (0.2ms) 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
+  (0.3ms) COMMIT
20784
+  (0.2ms) SELECT COUNT(*) FROM "stripe_local_balances"
20785
+  (0.1ms) BEGIN
20786
+ SQL (0.2ms) 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
+  (0.2ms) COMMIT
20788
+  (0.1ms) SELECT COUNT(*) FROM "stripe_local_balances"
20789
+  (0.2ms) BEGIN
20790
+ SQL (1.2ms) 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
+  (0.4ms) COMMIT
20792
+  (0.2ms) BEGIN
20793
+ SQL (1.3ms) INSERT 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" [["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
+  (0.3ms) COMMIT
20795
+  (0.2ms) BEGIN
20796
+ SQL (1.4ms) 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
+  (0.3ms) COMMIT
20798
+  (0.2ms) BEGIN
20799
+ SQL (1.1ms) INSERT 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" [["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
+  (0.4ms) COMMIT
20801
+ StripeLocal::LineItem Load (0.7ms) SELECT "stripe_local_line_items".* FROM "stripe_local_line_items" WHERE "stripe_local_line_items"."invoice_id" = $1 [["invoice_id", "in_2blahblahagain"]]
20802
+ StripeLocal::Plan Load (0.3ms) SELECT "stripe_local_plans".* FROM "stripe_local_plans" WHERE "stripe_local_plans"."id" = 'New_Plan' LIMIT 1
20803
+  (0.1ms) BEGIN
20804
+ SQL (0.7ms) 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
+  (0.2ms) COMMIT
20806
+  (0.1ms) BEGIN
20807
+ SQL (1.2ms) INSERT 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" [["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
+  (0.3ms) COMMIT
20809
+  (0.2ms) BEGIN
20810
+ SQL (1.2ms) 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
+  (0.4ms) COMMIT
20812
+ StripeLocal::Customer Load (0.4ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
20813
+  (0.1ms) BEGIN
20814
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
20815
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
20816
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
20817
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
20818
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
20819
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
20820
+ StripeLocal::Customer Load (0.1ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
20821
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" IS NULL LIMIT 1
20822
+ SQL (0.7ms) 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
+  (0.3ms) COMMIT
20824
+ StripeLocal::Customer Load (0.2ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
20825
+  (0.1ms) BEGIN
20826
+ SQL (0.4ms) 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
+  (0.3ms) COMMIT
20828
+  (0.1ms) BEGIN
20829
+ SQL (0.4ms) INSERT 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" [["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
+  (0.3ms) COMMIT
20831
+  (0.1ms) BEGIN
20832
+ SQL (1.3ms) 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
+  (0.3ms) COMMIT
20834
+ StripeLocal::Customer Load (0.4ms) SELECT "stripe_local_customers".* FROM "stripe_local_customers" WHERE "stripe_local_customers"."model_id" = 1 LIMIT 1
20835
+ StripeLocal::Subscription Load (0.7ms) SELECT "stripe_local_subscriptions".* FROM "stripe_local_subscriptions" WHERE "stripe_local_subscriptions"."customer_id" = $1 ORDER BY "stripe_local_subscriptions"."id" ASC LIMIT 1 [["customer_id", "cus_123"]]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe_local
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Cohen