plaid_rails 0.2.3 → 0.3.0

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.
@@ -33,7 +33,8 @@ module PlaidRails
33
33
 
34
34
  # Never trust parameters from the scary internet, only allow the white list through.
35
35
  def account_params
36
- params.require(:account).permit(:token,:access_token, :type,:name,:owner_id,:owner_type,account_ids:[])
36
+ params.require(:account).permit(:token,:access_token, :type,:name,
37
+ :owner_id,:owner_type, :transactions_start_date, account_ids:[])
37
38
  end
38
39
  end
39
40
  end
@@ -19,6 +19,7 @@ module PlaidRails
19
19
  owner_type: account_params["owner_type"],
20
20
  available_balance: account.available_balance,
21
21
  current_balance: account.current_balance,
22
+ transactions_start_date: account_params["transactions_start_date"],
22
23
  plaid_id: id
23
24
  ) unless PlaidRails::Account.exists?(plaid_id: id)
24
25
  end
@@ -7,6 +7,7 @@
7
7
  <%= hidden_field_tag "account[type]", params["type"] %>
8
8
  <%= hidden_field_tag "account[owner_id]", params["owner_id"] %>
9
9
  <%= hidden_field_tag "account[owner_type]", params["owner_type"] %>
10
+ <%= label_tag "start_date" %> <%= date_field_tag "account[transactions_start_date]" %>
10
11
  <% @accounts.each_with_index do |account,index| %>
11
12
  <%= check_box_tag "account[account_ids][]", account.id,nil,{id: "account_account_ids_#{index}"}%>
12
13
  <label for="account_account_ids_<%=index%>"> <%= "#{account.meta["name"]} - #{account.meta["number"]}"%></label><br/>
@@ -0,0 +1,5 @@
1
+ class AddTransactionsStartDateToAccounts < ActiveRecord::Migration
2
+ def change
3
+ add_column :plaid_rails_accounts, :transactions_start_date, :date
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module PlaidRails
2
- VERSION = "0.2.3"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20160215155024) do
14
+ ActiveRecord::Schema.define(version: 20160323141534) do
15
15
 
16
16
  create_table "plaid_rails_accounts", force: true do |t|
17
17
  t.string "access_token"
@@ -24,11 +24,12 @@ ActiveRecord::Schema.define(version: 20160215155024) do
24
24
  t.string "owner_type"
25
25
  t.integer "owner_id"
26
26
  t.datetime "last_sync"
27
- t.decimal "current_balance", precision: 10, scale: 2
28
- t.decimal "available_balance", precision: 10, scale: 2
27
+ t.decimal "current_balance", precision: 10, scale: 2
28
+ t.decimal "available_balance", precision: 10, scale: 2
29
29
  t.string "error"
30
30
  t.datetime "created_at"
31
31
  t.datetime "updated_at"
32
+ t.date "transactions_start_date"
32
33
  end
33
34
 
34
35
  add_index "plaid_rails_accounts", ["access_token"], name: "index_plaid_rails_accounts_on_access_token"
Binary file
@@ -2291,3 +2291,470 @@ Processing by PlaidRails::AccountsController#destroy as HTML
2291
2291
   (0.0ms) RELEASE SAVEPOINT active_record_1
2292
2292
  Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.6ms)
2293
2293
   (0.7ms) rollback transaction
2294
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
2295
+  (1.3ms) CREATE TABLE "plaid_rails_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "access_token" varchar(255), "token" varchar(255), "plaid_type" varchar(255), "name" varchar(255), "bank_name" varchar(255), "number" integer, "plaid_id" varchar(255), "owner_type" varchar(255), "owner_id" integer, "last_sync" datetime, "current_balance" decimal(10,2), "available_balance" decimal(10,2), "error" varchar(255), "created_at" datetime, "updated_at" datetime) 
2296
+  (0.2ms) select sqlite_version(*)
2297
+  (0.9ms) CREATE INDEX "index_plaid_rails_accounts_on_access_token" ON "plaid_rails_accounts" ("access_token")
2298
+  (0.1ms) SELECT sql
2299
+ FROM sqlite_master
2300
+ WHERE name='index_plaid_rails_accounts_on_access_token' AND type='index'
2301
+ UNION ALL
2302
+ SELECT sql
2303
+ FROM sqlite_temp_master
2304
+ WHERE name='index_plaid_rails_accounts_on_access_token' AND type='index'
2305
+
2306
+  (0.7ms) CREATE INDEX "index_plaid_rails_accounts_on_owner_id" ON "plaid_rails_accounts" ("owner_id")
2307
+  (0.1ms) SELECT sql
2308
+ FROM sqlite_master
2309
+ WHERE name='index_plaid_rails_accounts_on_owner_id' AND type='index'
2310
+ UNION ALL
2311
+ SELECT sql
2312
+ FROM sqlite_temp_master
2313
+ WHERE name='index_plaid_rails_accounts_on_owner_id' AND type='index'
2314
+
2315
+  (0.1ms)  SELECT sql
2316
+ FROM sqlite_master
2317
+ WHERE name='index_plaid_rails_accounts_on_access_token' AND type='index'
2318
+ UNION ALL
2319
+ SELECT sql
2320
+ FROM sqlite_temp_master
2321
+ WHERE name='index_plaid_rails_accounts_on_access_token' AND type='index'
2322
+ 
2323
+  (0.7ms) CREATE INDEX "index_plaid_rails_accounts_on_plaid_id" ON "plaid_rails_accounts" ("plaid_id")
2324
+  (0.8ms) CREATE TABLE "plaid_rails_webhooks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" integer, "message" varchar(255), "access_token" varchar(255), "params" text, "created_at" datetime, "updated_at" datetime) 
2325
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
2326
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2327
+  (0.1ms) SELECT version FROM "schema_migrations"
2328
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160215155024')
2329
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2330
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2331
+ Migrating to CreatePlaidRailsWebhooks (20160214150149)
2332
+  (0.1ms) begin transaction
2333
+  (0.2ms) CREATE TABLE "plaid_rails_webhooks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" integer, "message" varchar(255), "access_token" varchar(255), "params" text, "created_at" datetime, "updated_at" datetime) 
2334
+ SQLite3::SQLException: table "plaid_rails_webhooks" already exists: CREATE TABLE "plaid_rails_webhooks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" integer, "message" varchar(255), "access_token" varchar(255), "params" text, "created_at" datetime, "updated_at" datetime)
2335
+  (0.1ms) rollback transaction
2336
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2337
+  (1.2ms) CREATE TABLE "plaid_rails_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "access_token" varchar(255), "token" varchar(255), "plaid_type" varchar(255), "name" varchar(255), "bank_name" varchar(255), "number" integer, "plaid_id" varchar(255), "owner_type" varchar(255), "owner_id" integer, "last_sync" datetime, "current_balance" decimal(10,2), "available_balance" decimal(10,2), "error" varchar(255), "created_at" datetime, "updated_at" datetime) 
2338
+  (0.2ms) select sqlite_version(*)
2339
+  (0.9ms) CREATE INDEX "index_plaid_rails_accounts_on_access_token" ON "plaid_rails_accounts" ("access_token")
2340
+  (0.1ms) SELECT sql
2341
+ FROM sqlite_master
2342
+ WHERE name='index_plaid_rails_accounts_on_access_token' AND type='index'
2343
+ UNION ALL
2344
+ SELECT sql
2345
+ FROM sqlite_temp_master
2346
+ WHERE name='index_plaid_rails_accounts_on_access_token' AND type='index'
2347
+
2348
+  (0.7ms) CREATE INDEX "index_plaid_rails_accounts_on_owner_id" ON "plaid_rails_accounts" ("owner_id")
2349
+  (0.1ms) SELECT sql
2350
+ FROM sqlite_master
2351
+ WHERE name='index_plaid_rails_accounts_on_owner_id' AND type='index'
2352
+ UNION ALL
2353
+ SELECT sql
2354
+ FROM sqlite_temp_master
2355
+ WHERE name='index_plaid_rails_accounts_on_owner_id' AND type='index'
2356
+
2357
+  (0.1ms)  SELECT sql
2358
+ FROM sqlite_master
2359
+ WHERE name='index_plaid_rails_accounts_on_access_token' AND type='index'
2360
+ UNION ALL
2361
+ SELECT sql
2362
+ FROM sqlite_temp_master
2363
+ WHERE name='index_plaid_rails_accounts_on_access_token' AND type='index'
2364
+ 
2365
+  (0.7ms) CREATE INDEX "index_plaid_rails_accounts_on_plaid_id" ON "plaid_rails_accounts" ("plaid_id")
2366
+  (0.7ms) CREATE TABLE "plaid_rails_webhooks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" integer, "message" varchar(255), "access_token" varchar(255), "params" text, "created_at" datetime, "updated_at" datetime) 
2367
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
2368
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2369
+  (0.1ms) SELECT version FROM "schema_migrations"
2370
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160215155024')
2371
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2372
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2373
+ Migrating to CreatePlaidRailsWebhooks (20160214150149)
2374
+  (0.1ms) begin transaction
2375
+  (0.3ms) CREATE TABLE "plaid_rails_webhooks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" integer, "message" varchar(255), "access_token" varchar(255), "params" text, "created_at" datetime, "updated_at" datetime) 
2376
+ SQLite3::SQLException: table "plaid_rails_webhooks" already exists: CREATE TABLE "plaid_rails_webhooks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" integer, "message" varchar(255), "access_token" varchar(255), "params" text, "created_at" datetime, "updated_at" datetime)
2377
+  (0.1ms) rollback transaction
2378
+  (2.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2379
+  (0.2ms) select sqlite_version(*)
2380
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2381
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2382
+ Migrating to CreatePlaidRailsWebhooks (20160214150149)
2383
+  (0.1ms) begin transaction
2384
+  (0.4ms) CREATE TABLE "plaid_rails_webhooks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" integer, "message" varchar(255), "access_token" varchar(255), "params" text, "created_at" datetime, "updated_at" datetime)
2385
+ SQL (2.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160214150149"]]
2386
+  (0.7ms) commit transaction
2387
+ Migrating to CreatePlaidRailsAccounts (20160215155024)
2388
+  (0.1ms) begin transaction
2389
+  (0.5ms) CREATE TABLE "plaid_rails_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "access_token" varchar(255), "token" varchar(255), "plaid_type" varchar(255), "name" varchar(255), "bank_name" varchar(255), "number" integer, "plaid_id" varchar(255), "owner_type" varchar(255), "owner_id" integer, "last_sync" datetime, "current_balance" decimal(10,2), "available_balance" decimal(10,2), "error" varchar(255), "created_at" datetime, "updated_at" datetime)
2390
+  (0.1ms) CREATE INDEX "index_plaid_rails_accounts_on_access_token" ON "plaid_rails_accounts" ("access_token")
2391
+  (0.1ms) SELECT sql
2392
+ FROM sqlite_master
2393
+ WHERE name='index_plaid_rails_accounts_on_access_token' AND type='index'
2394
+ UNION ALL
2395
+ SELECT sql
2396
+ FROM sqlite_temp_master
2397
+ WHERE name='index_plaid_rails_accounts_on_access_token' AND type='index'
2398
+
2399
+  (0.1ms) CREATE INDEX "index_plaid_rails_accounts_on_owner_id" ON "plaid_rails_accounts" ("owner_id")
2400
+  (0.1ms) SELECT sql
2401
+ FROM sqlite_master
2402
+ WHERE name='index_plaid_rails_accounts_on_owner_id' AND type='index'
2403
+ UNION ALL
2404
+ SELECT sql
2405
+ FROM sqlite_temp_master
2406
+ WHERE name='index_plaid_rails_accounts_on_owner_id' AND type='index'
2407
+
2408
+  (0.1ms)  SELECT sql
2409
+ FROM sqlite_master
2410
+ WHERE name='index_plaid_rails_accounts_on_access_token' AND type='index'
2411
+ UNION ALL
2412
+ SELECT sql
2413
+ FROM sqlite_temp_master
2414
+ WHERE name='index_plaid_rails_accounts_on_access_token' AND type='index'
2415
+ 
2416
+  (0.1ms) CREATE INDEX "index_plaid_rails_accounts_on_plaid_id" ON "plaid_rails_accounts" ("plaid_id")
2417
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160215155024"]]
2418
+  (0.9ms) commit transaction
2419
+ Migrating to AddTransactionsStartDateToAccounts (20160323141534)
2420
+  (0.1ms) begin transaction
2421
+  (0.4ms) ALTER TABLE "plaid_rails_accounts" ADD "transactions_start_date" date
2422
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160323141534"]]
2423
+  (0.8ms) commit transaction
2424
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2425
+  (0.3ms) SELECT sql
2426
+ FROM sqlite_master
2427
+ WHERE name='index_plaid_rails_accounts_on_plaid_id' AND type='index'
2428
+ UNION ALL
2429
+ SELECT sql
2430
+ FROM sqlite_temp_master
2431
+ WHERE name='index_plaid_rails_accounts_on_plaid_id' AND type='index'
2432
+
2433
+  (0.1ms)  SELECT sql
2434
+ FROM sqlite_master
2435
+ WHERE name='index_plaid_rails_accounts_on_owner_id' AND type='index'
2436
+ UNION ALL
2437
+ SELECT sql
2438
+ FROM sqlite_temp_master
2439
+ WHERE name='index_plaid_rails_accounts_on_owner_id' AND type='index'
2440
+ 
2441
+  (0.1ms) SELECT sql
2442
+ FROM sqlite_master
2443
+ WHERE name='index_plaid_rails_accounts_on_access_token' AND type='index'
2444
+ UNION ALL
2445
+ SELECT sql
2446
+ FROM sqlite_temp_master
2447
+ WHERE name='index_plaid_rails_accounts_on_access_token' AND type='index'
2448
+
2449
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
2450
+  (0.1ms) begin transaction
2451
+  (0.1ms) rollback transaction
2452
+  (0.1ms) begin transaction
2453
+  (0.1ms) rollback transaction
2454
+  (0.4ms) begin transaction
2455
+  (0.1ms) rollback transaction
2456
+  (0.1ms) begin transaction
2457
+  (0.1ms) SAVEPOINT active_record_1
2458
+ SQL (3.8ms) INSERT INTO "plaid_rails_webhooks" ("access_token", "code", "created_at", "message", "updated_at") VALUES (?, ?, ?, ?, ?) [["access_token", "123abc"], ["code", 0], ["created_at", "2016-03-24 15:00:33.895836"], ["message", "hello"], ["updated_at", "2016-03-24 15:00:33.895836"]]
2459
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2460
+  (0.3ms) rollback transaction
2461
+  (0.1ms) begin transaction
2462
+ PlaidRails::Account Exists (0.2ms) SELECT 1 AS one FROM "plaid_rails_accounts" WHERE "plaid_rails_accounts"."plaid_id" = 'QPO8Jo8vdDHMepg41PBwckXm4KdK1yUdmXOwK' LIMIT 1
2463
+  (0.1ms) SAVEPOINT active_record_1
2464
+ SQL (0.6ms) INSERT INTO "plaid_rails_accounts" ("access_token", "available_balance", "bank_name", "created_at", "current_balance", "name", "number", "owner_id", "owner_type", "plaid_id", "plaid_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["access_token", "test_wells"], ["available_balance", 1203.42], ["bank_name", "Wells Fargo"], ["created_at", "2016-03-24 15:00:36.507386"], ["current_balance", 1274.93], ["name", "Plaid Savings"], ["number", 9606], ["owner_id", 1], ["owner_type", "User"], ["plaid_id", "QPO8Jo8vdDHMepg41PBwckXm4KdK1yUdmXOwK"], ["plaid_type", "wells"], ["token", "test,wells,connected"], ["updated_at", "2016-03-24 15:00:36.507386"]]
2465
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2466
+ PlaidRails::Account Exists (0.2ms) SELECT 1 AS one FROM "plaid_rails_accounts" WHERE "plaid_rails_accounts"."plaid_id" = 'nban4wnPKEtnmEpaKzbYFYQvA7D7pnCaeDBMy' LIMIT 1
2467
+  (0.1ms) SAVEPOINT active_record_1
2468
+ SQL (1.8ms) INSERT INTO "plaid_rails_accounts" ("access_token", "available_balance", "bank_name", "created_at", "current_balance", "name", "number", "owner_id", "owner_type", "plaid_id", "plaid_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["access_token", "test_wells"], ["available_balance", 1081.78], ["bank_name", "Wells Fargo"], ["created_at", "2016-03-24 15:00:37.171384"], ["current_balance", 1253.32], ["name", "Plaid Checking"], ["number", 1702], ["owner_id", 1], ["owner_type", "User"], ["plaid_id", "nban4wnPKEtnmEpaKzbYFYQvA7D7pnCaeDBMy"], ["plaid_type", "wells"], ["token", "test,wells,connected"], ["updated_at", "2016-03-24 15:00:37.171384"]]
2469
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2470
+ PlaidRails::Account Exists (0.2ms) SELECT 1 AS one FROM "plaid_rails_accounts" WHERE "plaid_rails_accounts"."plaid_id" = 'XARE85EJqKsjxLp6XR8ocg8VakrkXpTXmRdOo' LIMIT 1
2471
+  (0.1ms) SAVEPOINT active_record_1
2472
+ SQL (0.2ms) INSERT INTO "plaid_rails_accounts" ("access_token", "available_balance", "bank_name", "created_at", "current_balance", "name", "number", "owner_id", "owner_type", "plaid_id", "plaid_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["access_token", "test_wells"], ["available_balance", 7205.23], ["bank_name", "Wells Fargo"], ["created_at", "2016-03-24 15:00:37.882759"], ["current_balance", 7255.23], ["name", "Plaid Premier Checking"], ["number", 5204], ["owner_id", 1], ["owner_type", "User"], ["plaid_id", "XARE85EJqKsjxLp6XR8ocg8VakrkXpTXmRdOo"], ["plaid_type", "wells"], ["token", "test,wells,connected"], ["updated_at", "2016-03-24 15:00:37.882759"]]
2473
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2474
+ PlaidRails::Account Exists (0.2ms) SELECT 1 AS one FROM "plaid_rails_accounts" WHERE "plaid_rails_accounts"."plaid_id" = 'pJPM4LMBNQFrOwp0jqEyTwyxJQrQbgU6kq37k' LIMIT 1
2475
+  (0.1ms) SAVEPOINT active_record_1
2476
+ SQL (0.2ms) INSERT INTO "plaid_rails_accounts" ("access_token", "available_balance", "bank_name", "created_at", "current_balance", "name", "number", "owner_id", "owner_type", "plaid_id", "plaid_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["access_token", "test_wells"], ["available_balance", 9930.0], ["bank_name", "Wells Fargo"], ["created_at", "2016-03-24 15:00:38.665591"], ["current_balance", 2275.58], ["name", "Plaid Credit Card"], ["number", 3002], ["owner_id", 1], ["owner_type", "User"], ["plaid_id", "pJPM4LMBNQFrOwp0jqEyTwyxJQrQbgU6kq37k"], ["plaid_type", "wells"], ["token", "test,wells,connected"], ["updated_at", "2016-03-24 15:00:38.665591"]]
2477
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2478
+  (0.1ms) SELECT COUNT(*) FROM "plaid_rails_accounts" WHERE "plaid_rails_accounts"."owner_id" = 1 AND "plaid_rails_accounts"."owner_type" = 'User'
2479
+  (0.8ms) rollback transaction
2480
+  (0.1ms) begin transaction
2481
+  (0.1ms) rollback transaction
2482
+  (0.1ms) begin transaction
2483
+  (0.1ms) rollback transaction
2484
+  (0.1ms) begin transaction
2485
+  (0.0ms) rollback transaction
2486
+  (0.0ms) begin transaction
2487
+  (0.1ms) rollback transaction
2488
+  (0.0ms) begin transaction
2489
+  (0.1ms) rollback transaction
2490
+  (0.1ms) begin transaction
2491
+ Processing by PlaidRails::AccountsController#create as HTML
2492
+ Parameters: {"account"=>{"access_token"=>"test_wells", "account_ids"=>["QPO8Jo8vdDHMepg41PBwckXm4KdK1yUdmXOwK", "nban4wnPKEtnmEpaKzbYFYQvA7D7pnCaeDBMy", "XARE85EJqKsjxLp6XR8ocg8VakrkXpTXmRdOo", "pJPM4LMBNQFrOwp0jqEyTwyxJQrQbgU6kq37k"], "name"=>"Wells Fargo", "type"=>"wells", "owner_id"=>"1", "owner_type"=>"User", "token"=>"test,wells,connected"}}
2493
+ PlaidRails::Account Exists (0.2ms) SELECT 1 AS one FROM "plaid_rails_accounts" WHERE "plaid_rails_accounts"."plaid_id" = 'QPO8Jo8vdDHMepg41PBwckXm4KdK1yUdmXOwK' LIMIT 1
2494
+  (0.1ms) SAVEPOINT active_record_1
2495
+ SQL (0.6ms) INSERT INTO "plaid_rails_accounts" ("access_token", "available_balance", "bank_name", "created_at", "current_balance", "name", "number", "owner_id", "owner_type", "plaid_id", "plaid_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["access_token", "test_wells"], ["available_balance", 1203.42], ["bank_name", "Wells Fargo"], ["created_at", "2016-03-24 15:00:39.719883"], ["current_balance", 1274.93], ["name", "Plaid Savings"], ["number", 9606], ["owner_id", 1], ["owner_type", "User"], ["plaid_id", "QPO8Jo8vdDHMepg41PBwckXm4KdK1yUdmXOwK"], ["plaid_type", "wells"], ["token", "test,wells,connected"], ["updated_at", "2016-03-24 15:00:39.719883"]]
2496
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2497
+ PlaidRails::Account Exists (0.2ms) SELECT 1 AS one FROM "plaid_rails_accounts" WHERE "plaid_rails_accounts"."plaid_id" = 'nban4wnPKEtnmEpaKzbYFYQvA7D7pnCaeDBMy' LIMIT 1
2498
+  (0.1ms) SAVEPOINT active_record_1
2499
+ SQL (0.5ms) INSERT INTO "plaid_rails_accounts" ("access_token", "available_balance", "bank_name", "created_at", "current_balance", "name", "number", "owner_id", "owner_type", "plaid_id", "plaid_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["access_token", "test_wells"], ["available_balance", 1081.78], ["bank_name", "Wells Fargo"], ["created_at", "2016-03-24 15:00:40.363923"], ["current_balance", 1253.32], ["name", "Plaid Checking"], ["number", 1702], ["owner_id", 1], ["owner_type", "User"], ["plaid_id", "nban4wnPKEtnmEpaKzbYFYQvA7D7pnCaeDBMy"], ["plaid_type", "wells"], ["token", "test,wells,connected"], ["updated_at", "2016-03-24 15:00:40.363923"]]
2500
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2501
+ PlaidRails::Account Exists (0.2ms) SELECT 1 AS one FROM "plaid_rails_accounts" WHERE "plaid_rails_accounts"."plaid_id" = 'XARE85EJqKsjxLp6XR8ocg8VakrkXpTXmRdOo' LIMIT 1
2502
+  (0.2ms) SAVEPOINT active_record_1
2503
+ SQL (0.2ms) INSERT INTO "plaid_rails_accounts" ("access_token", "available_balance", "bank_name", "created_at", "current_balance", "name", "number", "owner_id", "owner_type", "plaid_id", "plaid_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["access_token", "test_wells"], ["available_balance", 7205.23], ["bank_name", "Wells Fargo"], ["created_at", "2016-03-24 15:00:41.016897"], ["current_balance", 7255.23], ["name", "Plaid Premier Checking"], ["number", 5204], ["owner_id", 1], ["owner_type", "User"], ["plaid_id", "XARE85EJqKsjxLp6XR8ocg8VakrkXpTXmRdOo"], ["plaid_type", "wells"], ["token", "test,wells,connected"], ["updated_at", "2016-03-24 15:00:41.016897"]]
2504
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2505
+ PlaidRails::Account Exists (0.2ms) SELECT 1 AS one FROM "plaid_rails_accounts" WHERE "plaid_rails_accounts"."plaid_id" = 'pJPM4LMBNQFrOwp0jqEyTwyxJQrQbgU6kq37k' LIMIT 1
2506
+  (0.1ms) SAVEPOINT active_record_1
2507
+ SQL (0.2ms) INSERT INTO "plaid_rails_accounts" ("access_token", "available_balance", "bank_name", "created_at", "current_balance", "name", "number", "owner_id", "owner_type", "plaid_id", "plaid_type", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["access_token", "test_wells"], ["available_balance", 9930.0], ["bank_name", "Wells Fargo"], ["created_at", "2016-03-24 15:00:41.718416"], ["current_balance", 2275.58], ["name", "Plaid Credit Card"], ["number", 3002], ["owner_id", 1], ["owner_type", "User"], ["plaid_id", "pJPM4LMBNQFrOwp0jqEyTwyxJQrQbgU6kq37k"], ["plaid_type", "wells"], ["token", "test,wells,connected"], ["updated_at", "2016-03-24 15:00:41.718416"]]
2508
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2509
+ Rendered /Users/cwilhelm/NetBeansProjects/plaid_rails/app/views/plaid_rails/accounts/create.html.erb within layouts/plaid_rails/application (0.4ms)
2510
+ Completed 200 OK in 2731ms (Views: 88.0ms | ActiveRecord: 2.9ms)
2511
+  (0.2ms) SELECT COUNT(*) FROM "plaid_rails_accounts" WHERE "plaid_rails_accounts"."owner_id" = 1 AND "plaid_rails_accounts"."owner_type" = 'User'
2512
+ PlaidRails::Account Load (0.2ms) SELECT "plaid_rails_accounts".* FROM "plaid_rails_accounts" WHERE "plaid_rails_accounts"."owner_id" = 1 AND "plaid_rails_accounts"."owner_type" = 'User' ORDER BY "plaid_rails_accounts"."id" ASC LIMIT 1
2513
+  (0.7ms) rollback transaction
2514
+  (0.1ms) begin transaction
2515
+  (0.1ms) SAVEPOINT active_record_1
2516
+ SQL (0.5ms) INSERT INTO "plaid_rails_accounts" ("access_token", "bank_name", "created_at", "name", "owner_id", "owner_type", "plaid_id", "plaid_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["access_token", "test_wells"], ["bank_name", "Wells Fargo"], ["created_at", "2016-03-24 15:00:41.818509"], ["name", "Wells Fargo Credit Card"], ["owner_id", 1], ["owner_type", "User"], ["plaid_id", "nban4wnPKEtnmEpaKzbYFYQvA7D7pnCaeDBMy"], ["plaid_type", "wells"], ["updated_at", "2016-03-24 15:00:41.818509"]]
2517
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2518
+ Processing by PlaidRails::AccountsController#destroy as HTML
2519
+ Parameters: {"id"=>"1"}
2520
+ PlaidRails::Account Load (0.1ms) SELECT "plaid_rails_accounts".* FROM "plaid_rails_accounts" WHERE "plaid_rails_accounts"."id" = ? LIMIT 1 [["id", 1]]
2521
+  (0.0ms) SAVEPOINT active_record_1
2522
+ SQL (0.5ms) DELETE FROM "plaid_rails_accounts" WHERE "plaid_rails_accounts"."id" = ? [["id", 1]]
2523
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2524
+ Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.7ms)
2525
+  (0.7ms) rollback transaction
2526
+  (0.1ms) begin transaction
2527
+ Processing by PlaidRails::AccountsController#new as HTML
2528
+ Parameters: {"account"=>{"access_token"=>"test_wells", "name"=>"Wells Fargo", "type"=>"wells", "owner_id"=>"1", "owner_type"=>"User"}}
2529
+ Completed 200 OK in 390ms (Views: 2.5ms | ActiveRecord: 0.0ms)
2530
+  (0.1ms) rollback transaction
2531
+  (0.1ms) begin transaction
2532
+ Processing by PlaidRails::AccountsController#index as HTML
2533
+ Parameters: {"account"=>{"owner_id"=>"1"}}
2534
+ Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms)
2535
+  (0.1ms) SAVEPOINT active_record_1
2536
+ SQL (0.5ms) INSERT INTO "plaid_rails_accounts" ("access_token", "bank_name", "created_at", "name", "owner_id", "owner_type", "plaid_id", "plaid_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["access_token", "test_wells"], ["bank_name", "Wells Fargo"], ["created_at", "2016-03-24 15:00:42.229284"], ["name", "Wells Fargo Credit Card"], ["owner_id", 1], ["owner_type", "User"], ["plaid_id", "nban4wnPKEtnmEpaKzbYFYQvA7D7pnCaeDBMy"], ["plaid_type", "wells"], ["updated_at", "2016-03-24 15:00:42.229284"]]
2537
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2538
+ PlaidRails::Account Load (0.1ms) SELECT "plaid_rails_accounts".* FROM "plaid_rails_accounts" WHERE "plaid_rails_accounts"."owner_id" = 1
2539
+  (2.2ms) rollback transaction
2540
+  (0.1ms) begin transaction
2541
+ Processing by PlaidRails::LinkController#authenticate as HTML
2542
+ Error: unauthorized product
2543
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/plaid-1.7.1/lib/plaid/connection.rb:83:in `parse_response'
2544
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/plaid-1.7.1/lib/plaid/connection.rb:17:in `post'
2545
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/plaid-1.7.1/lib/plaid.rb:44:in `exchange_token'
2546
+ /Users/cwilhelm/NetBeansProjects/plaid_rails/app/controllers/plaid_rails/link_controller.rb:8:in `authenticate'
2547
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
2548
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/abstract_controller/base.rb:189:in `process_action'
2549
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/action_controller/metal/rendering.rb:10:in `process_action'
2550
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
2551
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/activesupport-4.1.14.1/lib/active_support/callbacks.rb:82:in `run_callbacks'
2552
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/abstract_controller/callbacks.rb:19:in `process_action'
2553
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/action_controller/metal/rescue.rb:29:in `process_action'
2554
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
2555
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/activesupport-4.1.14.1/lib/active_support/notifications.rb:159:in `block in instrument'
2556
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/activesupport-4.1.14.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2557
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/activesupport-4.1.14.1/lib/active_support/notifications.rb:159:in `instrument'
2558
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
2559
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
2560
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/activerecord-4.1.14.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
2561
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/abstract_controller/base.rb:136:in `process'
2562
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionview-4.1.14.1/lib/action_view/rendering.rb:30:in `process'
2563
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/action_controller/test_case.rb:595:in `process'
2564
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/action_controller/test_case.rb:64:in `process'
2565
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/action_controller/test_case.rb:501:in `post'
2566
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/shoulda-matchers-2.8.0/lib/shoulda/matchers/action_controller/strong_parameters_matcher.rb:193:in `block in matches?'
2567
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/shoulda-matchers-2.8.0/lib/shoulda/matchers/doublespeak/world.rb:12:in `with_doubles_activated'
2568
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/1.9.1/forwardable.rb:201:in `with_doubles_activated'
2569
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/shoulda-matchers-2.8.0/lib/shoulda/matchers/action_controller/strong_parameters_matcher.rb:192:in `matches?'
2570
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-expectations-2.99.2/lib/rspec/expectations/handler.rb:24:in `handle_matcher'
2571
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/memoized_helpers.rb:77:in `should'
2572
+ /Users/cwilhelm/NetBeansProjects/plaid_rails/spec/controllers/plaid_rails/link_controller_spec.rb:32:in `block (2 levels) in <module:PlaidRails>'
2573
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_exec'
2574
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_eval_with_args'
2575
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example.rb:116:in `block in run'
2576
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-rails-2.99.0/lib/rspec/rails/example/controller_example_group.rb:183:in `call'
2577
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-rails-2.99.0/lib/rspec/rails/example/controller_example_group.rb:183:in `block (2 levels) in <module:ControllerExampleGroup>'
2578
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_exec'
2579
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_eval_with_args'
2580
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example.rb:241:in `instance_eval_with_args'
2581
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/hooks.rb:106:in `block (2 levels) in run'
2582
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example.rb:178:in `call'
2583
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example.rb:178:in `run'
2584
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-rails-2.99.0/lib/rspec/rails/adapters.rb:69:in `block (2 levels) in <module:MinitestLifecycleAdapter>'
2585
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_exec'
2586
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_eval_with_args'
2587
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example.rb:241:in `instance_eval_with_args'
2588
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/hooks.rb:106:in `block (2 levels) in run'
2589
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/hooks.rb:104:in `call'
2590
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/hooks.rb:104:in `run'
2591
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/hooks.rb:446:in `run_hook'
2592
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example_group.rb:463:in `run_around_each_hooks'
2593
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example.rb:250:in `with_around_each_hooks'
2594
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example.rb:113:in `run'
2595
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example_group.rb:515:in `block in run_examples'
2596
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example_group.rb:511:in `map'
2597
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example_group.rb:511:in `run_examples'
2598
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example_group.rb:496:in `run'
2599
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb:24:in `block (2 levels) in run'
2600
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb:24:in `map'
2601
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb:24:in `block in run'
2602
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/reporter.rb:58:in `report'
2603
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb:21:in `run'
2604
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb:103:in `run'
2605
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb:17:in `block in autorun'
2606
+ Completed 500 Internal Server Error in 365ms (Views: 5.6ms | ActiveRecord: 0.0ms)
2607
+  (0.1ms) rollback transaction
2608
+  (0.1ms) begin transaction
2609
+ Processing by PlaidRails::LinkController#authenticate as JS
2610
+ Parameters: {"public_token"=>"badtoken", "name"=>"Wells Fargo", "type"=>"wells", "owner_id"=>"1", "owner_type"=>"User"}
2611
+ Error: unauthorized product
2612
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/plaid-1.7.1/lib/plaid/connection.rb:83:in `parse_response'
2613
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/plaid-1.7.1/lib/plaid/connection.rb:17:in `post'
2614
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/plaid-1.7.1/lib/plaid.rb:44:in `exchange_token'
2615
+ /Users/cwilhelm/NetBeansProjects/plaid_rails/app/controllers/plaid_rails/link_controller.rb:8:in `authenticate'
2616
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
2617
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/abstract_controller/base.rb:189:in `process_action'
2618
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/action_controller/metal/rendering.rb:10:in `process_action'
2619
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
2620
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/activesupport-4.1.14.1/lib/active_support/callbacks.rb:82:in `run_callbacks'
2621
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/abstract_controller/callbacks.rb:19:in `process_action'
2622
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/action_controller/metal/rescue.rb:29:in `process_action'
2623
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
2624
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/activesupport-4.1.14.1/lib/active_support/notifications.rb:159:in `block in instrument'
2625
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/activesupport-4.1.14.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2626
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/activesupport-4.1.14.1/lib/active_support/notifications.rb:159:in `instrument'
2627
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
2628
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
2629
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/activerecord-4.1.14.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
2630
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/abstract_controller/base.rb:136:in `process'
2631
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionview-4.1.14.1/lib/action_view/rendering.rb:30:in `process'
2632
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/action_controller/test_case.rb:595:in `process'
2633
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/action_controller/test_case.rb:64:in `process'
2634
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/action_controller/test_case.rb:501:in `post'
2635
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/action_controller/test_case.rb:531:in `xml_http_request'
2636
+ /Users/cwilhelm/NetBeansProjects/plaid_rails/spec/controllers/plaid_rails/link_controller_spec.rb:15:in `block (2 levels) in <module:PlaidRails>'
2637
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_exec'
2638
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_eval_with_args'
2639
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example.rb:116:in `block in run'
2640
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-rails-2.99.0/lib/rspec/rails/example/controller_example_group.rb:183:in `call'
2641
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-rails-2.99.0/lib/rspec/rails/example/controller_example_group.rb:183:in `block (2 levels) in <module:ControllerExampleGroup>'
2642
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_exec'
2643
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_eval_with_args'
2644
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example.rb:241:in `instance_eval_with_args'
2645
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/hooks.rb:106:in `block (2 levels) in run'
2646
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example.rb:178:in `call'
2647
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example.rb:178:in `run'
2648
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-rails-2.99.0/lib/rspec/rails/adapters.rb:69:in `block (2 levels) in <module:MinitestLifecycleAdapter>'
2649
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_exec'
2650
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_eval_with_args'
2651
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example.rb:241:in `instance_eval_with_args'
2652
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/hooks.rb:106:in `block (2 levels) in run'
2653
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/hooks.rb:104:in `call'
2654
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/hooks.rb:104:in `run'
2655
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/hooks.rb:446:in `run_hook'
2656
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example_group.rb:463:in `run_around_each_hooks'
2657
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example.rb:250:in `with_around_each_hooks'
2658
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example.rb:113:in `run'
2659
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example_group.rb:515:in `block in run_examples'
2660
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example_group.rb:511:in `map'
2661
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example_group.rb:511:in `run_examples'
2662
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example_group.rb:496:in `run'
2663
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb:24:in `block (2 levels) in run'
2664
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb:24:in `map'
2665
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb:24:in `block in run'
2666
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/reporter.rb:58:in `report'
2667
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb:21:in `run'
2668
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb:103:in `run'
2669
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb:17:in `block in autorun'
2670
+ Completed 500 Internal Server Error in 439ms (Views: 0.6ms | ActiveRecord: 0.0ms)
2671
+  (0.1ms) rollback transaction
2672
+  (0.1ms) begin transaction
2673
+ Processing by PlaidRails::LinkController#update as HTML
2674
+ Error: unauthorized product
2675
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/plaid-1.7.1/lib/plaid/connection.rb:83:in `parse_response'
2676
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/plaid-1.7.1/lib/plaid/connection.rb:17:in `post'
2677
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/plaid-1.7.1/lib/plaid.rb:44:in `exchange_token'
2678
+ /Users/cwilhelm/NetBeansProjects/plaid_rails/app/controllers/plaid_rails/link_controller.rb:21:in `update'
2679
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
2680
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/abstract_controller/base.rb:189:in `process_action'
2681
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/action_controller/metal/rendering.rb:10:in `process_action'
2682
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
2683
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/activesupport-4.1.14.1/lib/active_support/callbacks.rb:82:in `run_callbacks'
2684
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/abstract_controller/callbacks.rb:19:in `process_action'
2685
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/action_controller/metal/rescue.rb:29:in `process_action'
2686
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
2687
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/activesupport-4.1.14.1/lib/active_support/notifications.rb:159:in `block in instrument'
2688
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/activesupport-4.1.14.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2689
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/activesupport-4.1.14.1/lib/active_support/notifications.rb:159:in `instrument'
2690
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
2691
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
2692
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/activerecord-4.1.14.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
2693
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/abstract_controller/base.rb:136:in `process'
2694
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionview-4.1.14.1/lib/action_view/rendering.rb:30:in `process'
2695
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/action_controller/test_case.rb:595:in `process'
2696
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/action_controller/test_case.rb:64:in `process'
2697
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/actionpack-4.1.14.1/lib/action_controller/test_case.rb:501:in `post'
2698
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/shoulda-matchers-2.8.0/lib/shoulda/matchers/action_controller/strong_parameters_matcher.rb:193:in `block in matches?'
2699
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/shoulda-matchers-2.8.0/lib/shoulda/matchers/doublespeak/world.rb:12:in `with_doubles_activated'
2700
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/1.9.1/forwardable.rb:201:in `with_doubles_activated'
2701
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/shoulda-matchers-2.8.0/lib/shoulda/matchers/action_controller/strong_parameters_matcher.rb:192:in `matches?'
2702
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-expectations-2.99.2/lib/rspec/expectations/handler.rb:24:in `handle_matcher'
2703
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/memoized_helpers.rb:77:in `should'
2704
+ /Users/cwilhelm/NetBeansProjects/plaid_rails/spec/controllers/plaid_rails/link_controller_spec.rb:35:in `block (2 levels) in <module:PlaidRails>'
2705
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_exec'
2706
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_eval_with_args'
2707
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example.rb:116:in `block in run'
2708
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-rails-2.99.0/lib/rspec/rails/example/controller_example_group.rb:183:in `call'
2709
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-rails-2.99.0/lib/rspec/rails/example/controller_example_group.rb:183:in `block (2 levels) in <module:ControllerExampleGroup>'
2710
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_exec'
2711
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_eval_with_args'
2712
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example.rb:241:in `instance_eval_with_args'
2713
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/hooks.rb:106:in `block (2 levels) in run'
2714
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example.rb:178:in `call'
2715
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example.rb:178:in `run'
2716
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-rails-2.99.0/lib/rspec/rails/adapters.rb:69:in `block (2 levels) in <module:MinitestLifecycleAdapter>'
2717
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_exec'
2718
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_eval_with_args'
2719
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example.rb:241:in `instance_eval_with_args'
2720
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/hooks.rb:106:in `block (2 levels) in run'
2721
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/hooks.rb:104:in `call'
2722
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/hooks.rb:104:in `run'
2723
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/hooks.rb:446:in `run_hook'
2724
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example_group.rb:463:in `run_around_each_hooks'
2725
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example.rb:250:in `with_around_each_hooks'
2726
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example.rb:113:in `run'
2727
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example_group.rb:515:in `block in run_examples'
2728
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example_group.rb:511:in `map'
2729
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example_group.rb:511:in `run_examples'
2730
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/example_group.rb:496:in `run'
2731
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb:24:in `block (2 levels) in run'
2732
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb:24:in `map'
2733
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb:24:in `block in run'
2734
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/reporter.rb:58:in `report'
2735
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb:21:in `run'
2736
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb:103:in `run'
2737
+ /Users/cwilhelm/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb:17:in `block in autorun'
2738
+ Completed 500 Internal Server Error in 349ms (Views: 0.6ms | ActiveRecord: 0.0ms)
2739
+  (0.1ms) rollback transaction
2740
+  (0.1ms) begin transaction
2741
+  (0.1ms) SAVEPOINT active_record_1
2742
+ SQL (0.5ms) INSERT INTO "plaid_rails_accounts" ("access_token", "bank_name", "created_at", "name", "owner_id", "owner_type", "plaid_id", "plaid_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["access_token", "test_wells"], ["bank_name", "Wells Fargo"], ["created_at", "2016-03-24 15:00:43.402646"], ["name", "Wells Fargo Credit Card"], ["owner_id", 1], ["owner_type", "User"], ["plaid_id", "nban4wnPKEtnmEpaKzbYFYQvA7D7pnCaeDBMy"], ["plaid_type", "wells"], ["updated_at", "2016-03-24 15:00:43.402646"]]
2743
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2744
+ Processing by PlaidRails::LinkController#update as JS
2745
+ Parameters: {"public_token"=>"test,wells,connected", "name"=>"Wells Fargo", "type"=>"wells", "owner_id"=>"1", "owner_type"=>"User"}
2746
+ PlaidRails::Account Load (0.2ms) SELECT "plaid_rails_accounts".* FROM "plaid_rails_accounts" WHERE "plaid_rails_accounts"."owner_type" = 'User' AND "plaid_rails_accounts"."owner_id" = 1
2747
+  (0.0ms) SAVEPOINT active_record_1
2748
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2749
+ Completed 200 OK in 356ms (Views: 9.2ms | ActiveRecord: 0.3ms)
2750
+  (2.2ms) rollback transaction
2751
+  (0.1ms) begin transaction
2752
+ Processing by PlaidRails::LinkController#authenticate as JS
2753
+ Parameters: {"public_token"=>"test,wells,connected", "name"=>"Wells Fargo", "type"=>"wells", "owner_id"=>"1", "owner_type"=>"User"}
2754
+ Completed 200 OK in 358ms (Views: 9.9ms | ActiveRecord: 0.0ms)
2755
+  (0.1ms) rollback transaction
2756
+  (0.1ms) begin transaction
2757
+ Processing by PlaidRails::WebhooksController#create as HTML
2758
+ Parameters: {"webhook"=>{"code"=>"0", "message"=>"hello", "access_token"=>"test_wells"}}
2759
+ Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms)
2760
+  (0.1ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plaid_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-03-23 00:00:00.000000000 Z
12
+ date: 2016-03-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -186,6 +186,7 @@ files:
186
186
  - config/routes.rb
187
187
  - db/migrate/20160214150149_create_plaid_rails_webhooks.rb
188
188
  - db/migrate/20160215155024_create_plaid_rails_accounts.rb
189
+ - db/migrate/20160323141534_add_transactions_start_date_to_accounts.rb
189
190
  - db/test.sqlite3
190
191
  - lib/generators/plaid_rails/install_generator.rb
191
192
  - lib/generators/plaid_rails/templates/initializer.rb