qbo_rails 1.0.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.
Files changed (87) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +23 -0
  4. data/lib/generators/qbo_rails/install/install_generator.rb +32 -0
  5. data/lib/generators/qbo_rails/install/templates/config/qbo_rails.rb +17 -0
  6. data/lib/generators/qbo_rails/install/templates/db/migrate/create_qbo_errors.rb +12 -0
  7. data/lib/generators/qbo_rails/install/templates/models/qbo_error.rb +3 -0
  8. data/lib/generators/qbo_rails/install/usage.md +3 -0
  9. data/lib/qbo_rails.rb +106 -0
  10. data/lib/qbo_rails/error_handler.rb +4 -0
  11. data/lib/qbo_rails/version.rb +3 -0
  12. data/lib/tasks/qbo_rails_tasks.rake +4 -0
  13. data/spec/dummy/README.rdoc +28 -0
  14. data/spec/dummy/Rakefile +6 -0
  15. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  16. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  17. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  18. data/spec/dummy/app/controllers/settings_controller.rb +33 -0
  19. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  20. data/spec/dummy/app/models/account.rb +2 -0
  21. data/spec/dummy/app/models/customer.rb +2 -0
  22. data/spec/dummy/app/models/qbo_error.rb +3 -0
  23. data/spec/dummy/app/services/qbo_rails.rb +15 -0
  24. data/spec/dummy/app/services/qbo_rails/error_handler.rb +32 -0
  25. data/spec/dummy/app/views/layouts/application.html.erb +26 -0
  26. data/spec/dummy/app/views/settings/close_and_redirect.html.erb +14 -0
  27. data/spec/dummy/app/views/settings/index.html.erb +29 -0
  28. data/spec/dummy/bin/bundle +3 -0
  29. data/spec/dummy/bin/rails +8 -0
  30. data/spec/dummy/bin/rake +8 -0
  31. data/spec/dummy/bin/setup +29 -0
  32. data/spec/dummy/config.ru +4 -0
  33. data/spec/dummy/config/application.rb +41 -0
  34. data/spec/dummy/config/boot.rb +5 -0
  35. data/spec/dummy/config/database.yml +25 -0
  36. data/spec/dummy/config/environment.rb +5 -0
  37. data/spec/dummy/config/environments/development.rb +41 -0
  38. data/spec/dummy/config/environments/production.rb +79 -0
  39. data/spec/dummy/config/environments/test.rb +42 -0
  40. data/spec/dummy/config/initializers/assets.rb +11 -0
  41. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  42. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  43. data/spec/dummy/config/initializers/dotenv.rb +3 -0
  44. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  45. data/spec/dummy/config/initializers/inflections.rb +16 -0
  46. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  47. data/spec/dummy/config/initializers/qbo_rails.rb +17 -0
  48. data/spec/dummy/config/initializers/session_store.rb +3 -0
  49. data/spec/dummy/config/initializers/webmock.rb +2 -0
  50. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  51. data/spec/dummy/config/locales/en.yml +23 -0
  52. data/spec/dummy/config/routes.rb +5 -0
  53. data/spec/dummy/config/secrets.yml +22 -0
  54. data/spec/dummy/db/development.sqlite3 +0 -0
  55. data/spec/dummy/db/migrate/20150319132530_create_accounts.rb +12 -0
  56. data/spec/dummy/db/migrate/20150319132650_create_customers.rb +17 -0
  57. data/spec/dummy/db/migrate/20150328125013_add_qbo_id_to_customer.rb +5 -0
  58. data/spec/dummy/db/migrate/20150418134516_create_qbo_errors.rb +12 -0
  59. data/spec/dummy/db/production.sqlite3 +0 -0
  60. data/spec/dummy/db/schema.rb +50 -0
  61. data/spec/dummy/db/test.sqlite3 +0 -0
  62. data/spec/dummy/log/development.log +584 -0
  63. data/spec/dummy/log/production.log +0 -0
  64. data/spec/dummy/log/test.log +6502 -0
  65. data/spec/dummy/public/404.html +67 -0
  66. data/spec/dummy/public/422.html +67 -0
  67. data/spec/dummy/public/500.html +66 -0
  68. data/spec/dummy/public/favicon.ico +0 -0
  69. data/spec/dummy/tmp/cache/222/7E0/token +2 -0
  70. data/spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  71. data/spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  72. data/spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  73. data/spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  74. data/spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  75. data/spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  76. data/spec/factories/accounts.rb +8 -0
  77. data/spec/factories/customers.rb +15 -0
  78. data/spec/rails_helper.rb +92 -0
  79. data/spec/requests/qbo_rails_spec.rb +118 -0
  80. data/spec/spec_helper.rb +86 -0
  81. data/spec/vcr/qbo_rails/auth/forbidden.yml +119 -0
  82. data/spec/vcr/qbo_rails/customer/create.yml +75 -0
  83. data/spec/vcr/qbo_rails/customer/create_and_then_delete.yml +225 -0
  84. data/spec/vcr/qbo_rails/customer/delete.yml +167 -0
  85. data/spec/vcr/qbo_rails/customer/error_customer_in_use.yml +257 -0
  86. data/spec/vcr/qbo_rails/customer/update.yml +138 -0
  87. metadata +358 -0
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -0,0 +1,5 @@
1
+ Rails.application.routes.draw do
2
+ get '/oauth_start', to: 'settings#oauth_start'
3
+ get '/oauth_callback', to: 'settings#oauth_callback'
4
+ root to: 'settings#index'
5
+ end
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development: &default
14
+ secret_key_base: d5648cb5bb6cbe7d27fb5b748a635995b56ec6ad6e738cbb247c7b2b33af89580dec84a622e4e8150637070ffce04a1d76b6373ef559e6112fce509ecb775297
15
+ qbo_app_consumer_key: <%= ENV['QBO_RAILS_CONSUMER_KEY'] || '111111' %>
16
+ qbo_app_consumer_secret: <%= ENV['QBO_RAILS_CONSUMER_SECRET'] || '222222' %>
17
+ qbo_sandbox_access_token: <%= ENV['QBO_RAILS_ACCESS_TOKEN'] || '3333333' %>
18
+ qbo_sandbox_access_token_secret: <%= ENV['QBO_RAILS_ACCESS_TOKEN_SECRET'] || '444444' %>
19
+ qbo_sandbox_company_id: <%= ENV['QBO_RAILS_COMPANY_ID'] || '5555555' %>
20
+
21
+ test:
22
+ <<: *default
@@ -0,0 +1,12 @@
1
+ class CreateAccounts < ActiveRecord::Migration
2
+ def change
3
+ create_table :accounts do |t|
4
+ t.string :company_name
5
+ t.string :qb_token
6
+ t.string :qb_secret
7
+ t.string :qb_company_id
8
+
9
+ t.timestamps null: false
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,17 @@
1
+ class CreateCustomers < ActiveRecord::Migration
2
+ def change
3
+ create_table :customers do |t|
4
+ t.string :firstname
5
+ t.string :lastname
6
+ t.string :email
7
+ t.string :phone
8
+ t.string :mobile
9
+ t.string :address_1
10
+ t.string :city
11
+ t.string :state
12
+ t.string :zip
13
+
14
+ t.timestamps null: false
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,5 @@
1
+ class AddQboIdToCustomer < ActiveRecord::Migration
2
+ def change
3
+ add_column :customers, :qbo_id, :integer
4
+ end
5
+ end
@@ -0,0 +1,12 @@
1
+ class CreateQboErrors < ActiveRecord::Migration
2
+ def change
3
+ create_table :qbo_errors, force: true do |t|
4
+ t.string :message
5
+ t.text :body
6
+ t.string :resource_type, limit: 100
7
+ t.integer :resource_id
8
+ t.text :request_xml
9
+ t.timestamps :null => false
10
+ end
11
+ end
12
+ end
File without changes
@@ -0,0 +1,50 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20150418134516) do
15
+
16
+ create_table "accounts", force: :cascade do |t|
17
+ t.string "company_name"
18
+ t.string "qb_token"
19
+ t.string "qb_secret"
20
+ t.string "qb_company_id"
21
+ t.datetime "created_at", null: false
22
+ t.datetime "updated_at", null: false
23
+ end
24
+
25
+ create_table "customers", force: :cascade do |t|
26
+ t.string "firstname"
27
+ t.string "lastname"
28
+ t.string "email"
29
+ t.string "phone"
30
+ t.string "mobile"
31
+ t.string "address_1"
32
+ t.string "city"
33
+ t.string "state"
34
+ t.string "zip"
35
+ t.datetime "created_at", null: false
36
+ t.datetime "updated_at", null: false
37
+ t.integer "qbo_id"
38
+ end
39
+
40
+ create_table "qbo_errors", force: :cascade do |t|
41
+ t.string "message"
42
+ t.text "body"
43
+ t.string "resource_type", limit: 100
44
+ t.integer "resource_id"
45
+ t.text "request_xml"
46
+ t.datetime "created_at", null: false
47
+ t.datetime "updated_at", null: false
48
+ end
49
+
50
+ end
@@ -0,0 +1,584 @@
1
+  (1.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2
+  (0.1ms) select sqlite_version(*)
3
+  (3.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
+ Migrating to CreateAccounts (20150319132530)
6
+  (0.1ms) begin transaction
7
+  (0.5ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "company_name" varchar, "qb_token" varchar, "qb_secret" varchar, "qb_company_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
8
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150319132530"]]
9
+  (1.2ms) commit transaction
10
+ Migrating to CreateCustomers (20150319132650)
11
+  (0.1ms) begin transaction
12
+  (0.5ms) CREATE TABLE "customers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "firstname" varchar, "lastname" varchar, "email" varchar, "phone" varchar, "mobile" varchar, "address_1" varchar, "city" varchar, "state" varchar, "zip" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
13
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150319132650"]]
14
+  (1.0ms) commit transaction
15
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
16
+ Customer Load (1.9ms) SELECT "customers".* FROM "customers"
17
+ Customer Load (0.2ms) SELECT "customers".* FROM "customers" ORDER BY "customers"."id" ASC LIMIT 1
18
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
19
+ Migrating to AddQboIdToCustomer (20150328125013)
20
+  (0.1ms) begin transaction
21
+  (1.0ms) ALTER TABLE "customers" ADD "qbo_id" integer
22
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150328125013"]]
23
+  (1.0ms) commit transaction
24
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
25
+  (1.6ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "company_name" varchar, "qb_token" varchar, "qb_secret" varchar, "qb_company_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
26
+  (1.3ms) CREATE TABLE "customers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "firstname" varchar, "lastname" varchar, "email" varchar, "phone" varchar, "mobile" varchar, "address_1" varchar, "city" varchar, "state" varchar, "zip" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "qbo_id" integer)
27
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
28
+  (0.1ms) select sqlite_version(*)
29
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
30
+  (0.1ms) SELECT version FROM "schema_migrations"
31
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150328125013')
32
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150319132530')
33
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150319132650')
34
+ Account Load (1.7ms) SELECT "accounts".* FROM "accounts"
35
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
36
+ Migrating to CreateQboErrors (20150418124251)
37
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
38
+ Migrating to CreateQboErrors (20150418134516)
39
+  (0.1ms) begin transaction
40
+  (0.4ms) CREATE TABLE "qbo_errors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "message" varchar, "body" text, "resource_type" varchar(100), "resource_id" integer, "request_xml" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
41
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150418134516"]]
42
+  (1.0ms) commit transaction
43
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
44
+  (0.1ms) begin transaction
45
+ SQL (1.2ms) INSERT INTO "accounts" ("company_name", "qb_token", "qb_company_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["company_name", "Nelson Hockey Club"], ["qb_token", "qyprdYDw6JOa6Q4SAzRJTsYtLbutwBq3qxUMtFHfgw2Bal1H"], ["qb_company_id", "1292740145"], ["created_at", "2015-04-18 18:38:37.262503"], ["updated_at", "2015-04-18 18:38:37.262503"]]
46
+  (0.6ms) commit transaction
47
+  (0.1ms) begin transaction
48
+ SQL (0.5ms) INSERT INTO "accounts" ("company_name", "qb_token", "qb_company_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["company_name", "Nelson Hockey Club"], ["qb_token", "qyprdYDw6JOa6Q4SAzRJTsYtLbutwBq3qxUMtFHfgw2Bal1H"], ["qb_company_id", "1292740145"], ["created_at", "2015-04-18 18:40:39.809499"], ["updated_at", "2015-04-18 18:40:39.809499"]]
49
+  (1.0ms) commit transaction
50
+  (0.1ms) begin transaction
51
+ SQL (0.4ms) INSERT INTO "accounts" ("company_name", "qb_token", "qb_secret", "qb_company_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["company_name", "Nelson Hockey Club"], ["qb_token", "qyprdYDw6JOa6Q4SAzRJTsYtLbutwBq3qxUMtFHfgw2Bal1H"], ["qb_secret", "XjrMCpPakHMPpYIDsuNHvftutBO6UrjpgrL6Bmhb"], ["qb_company_id", "1292740145"], ["created_at", "2015-04-18 18:42:22.742626"], ["updated_at", "2015-04-18 18:42:22.742626"]]
52
+  (1.0ms) commit transaction
53
+  (0.1ms) begin transaction
54
+ SQL (1.2ms) INSERT INTO "accounts" ("company_name", "qb_token", "qb_secret", "qb_company_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["company_name", "Nelson Hockey Club"], ["qb_token", "qyprdYDw6JOa6Q4SAzRJTsYtLbutwBq3qxUMtFHfgw2Bal1H"], ["qb_secret", "XjrMCpPakHMPpYIDsuNHvftutBO6UrjpgrL6Bmhb"], ["qb_company_id", "1292740145"], ["created_at", "2015-04-18 18:47:15.822606"], ["updated_at", "2015-04-18 18:47:15.822606"]]
55
+  (0.6ms) commit transaction
56
+
57
+
58
+ Started GET "/" for ::1 at 2015-07-28 07:55:51 -0400
59
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
60
+
61
+ AbstractController::ActionNotFound (The action 'index' could not be found for SettingsController):
62
+ actionpack (4.2.1) lib/abstract_controller/base.rb:132:in `process'
63
+ actionview (4.2.1) lib/action_view/rendering.rb:30:in `process'
64
+ actionpack (4.2.1) lib/action_controller/metal.rb:196:in `dispatch'
65
+ actionpack (4.2.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
66
+ actionpack (4.2.1) lib/action_controller/metal.rb:237:in `block in action'
67
+ actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `call'
68
+ actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch'
69
+ actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:43:in `serve'
70
+ actionpack (4.2.1) lib/action_dispatch/journey/router.rb:43:in `block in serve'
71
+ actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `each'
72
+ actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `serve'
73
+ actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:819:in `call'
74
+ rack (1.6.0) lib/rack/etag.rb:24:in `call'
75
+ rack (1.6.0) lib/rack/conditionalget.rb:25:in `call'
76
+ rack (1.6.0) lib/rack/head.rb:13:in `call'
77
+ actionpack (4.2.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
78
+ actionpack (4.2.1) lib/action_dispatch/middleware/flash.rb:260:in `call'
79
+ rack (1.6.0) lib/rack/session/abstract/id.rb:225:in `context'
80
+ rack (1.6.0) lib/rack/session/abstract/id.rb:220:in `call'
81
+ actionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:560:in `call'
82
+ activerecord (4.2.1) lib/active_record/query_cache.rb:36:in `call'
83
+ activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call'
84
+ activerecord (4.2.1) lib/active_record/migration.rb:378:in `call'
85
+ actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
86
+ activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `call'
87
+ activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks'
88
+ activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_call_callbacks'
89
+ activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks'
90
+ actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
91
+ actionpack (4.2.1) lib/action_dispatch/middleware/reloader.rb:73:in `call'
92
+ actionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
93
+ actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
94
+ actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
95
+ railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app'
96
+ railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call'
97
+ activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged'
98
+ activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged'
99
+ activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged'
100
+ railties (4.2.1) lib/rails/rack/logger.rb:20:in `call'
101
+ actionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call'
102
+ rack (1.6.0) lib/rack/methodoverride.rb:22:in `call'
103
+ rack (1.6.0) lib/rack/runtime.rb:18:in `call'
104
+ activesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
105
+ rack (1.6.0) lib/rack/lock.rb:17:in `call'
106
+ actionpack (4.2.1) lib/action_dispatch/middleware/static.rb:113:in `call'
107
+ rack (1.6.0) lib/rack/sendfile.rb:113:in `call'
108
+ railties (4.2.1) lib/rails/engine.rb:518:in `call'
109
+ railties (4.2.1) lib/rails/application.rb:164:in `call'
110
+ rack (1.6.0) lib/rack/lock.rb:17:in `call'
111
+ rack (1.6.0) lib/rack/content_length.rb:15:in `call'
112
+ rack (1.6.0) lib/rack/handler/webrick.rb:89:in `service'
113
+ /Users/christian/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
114
+ /Users/christian/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
115
+ /Users/christian/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
116
+
117
+
118
+ Rendered /Users/christian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/unknown_action.html.erb within rescues/layout (0.6ms)
119
+
120
+
121
+ Started GET "/" for ::1 at 2015-07-28 07:56:31 -0400
122
+ Processing by SettingsController#index as HTML
123
+ Rendered settings/index.html.erb within layouts/application (1.6ms)
124
+ Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms)
125
+
126
+ SyntaxError (/Users/christian/github/qbo_rails/spec/dummy/app/views/settings/index.html.erb:31: syntax error, unexpected keyword_ensure, expecting end-of-input):
127
+ app/views/settings/index.html.erb:31: syntax error, unexpected keyword_ensure, expecting end-of-input
128
+
129
+
130
+ Rendered /Users/christian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (8.7ms)
131
+ Rendered /Users/christian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.1ms)
132
+ Rendered /Users/christian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (10.7ms)
133
+ Rendered /Users/christian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (37.6ms)
134
+
135
+
136
+ Started GET "/" for ::1 at 2015-07-28 07:56:52 -0400
137
+ Processing by SettingsController#index as HTML
138
+ Rendered settings/index.html.erb within layouts/application (2.7ms)
139
+ Completed 200 OK in 38ms (Views: 38.2ms | ActiveRecord: 0.0ms)
140
+
141
+
142
+ Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for ::1 at 2015-07-28 07:56:52 -0400
143
+
144
+
145
+ Started GET "/assets/application-5f1f3a0d9f2a8d9e8fcda8edadddaf68.js?body=1" for ::1 at 2015-07-28 07:56:52 -0400
146
+
147
+
148
+ Started GET "/" for ::1 at 2015-07-28 07:59:11 -0400
149
+ Processing by SettingsController#index as HTML
150
+ Rendered settings/index.html.erb within layouts/application (2.8ms)
151
+ Completed 200 OK in 24ms (Views: 24.2ms | ActiveRecord: 0.0ms)
152
+
153
+
154
+ Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for ::1 at 2015-07-28 07:59:11 -0400
155
+
156
+
157
+ Started GET "/assets/application-5f1f3a0d9f2a8d9e8fcda8edadddaf68.js?body=1" for ::1 at 2015-07-28 07:59:11 -0400
158
+
159
+
160
+ Started GET "/oauth_start" for ::1 at 2015-07-28 07:59:15 -0400
161
+ Processing by SettingsController#oauth_start as HTML
162
+ Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms)
163
+
164
+ WebMock::NetConnectNotAllowedError (Real HTTP connections are disabled. Unregistered request: POST https://oauth.intuit.com/oauth/v1/get_request_token with headers {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Authorization'=>'OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_callback="http%3A%2F%2Flocalhost%3A3000%2Foauth_callback", oauth_consumer_key="qyprdhobqczMYO48EHGKyw40TRExem", oauth_nonce="f59ISHDHOkwOERl2rmCEpd6MTiQzqEVkBhKm5RYoUo", oauth_signature="yn%2FAoiVeRstAhv0n61MfPpfrUfI%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1438084755", oauth_version="1.0"', 'Content-Length'=>'0', 'User-Agent'=>'OAuth gem v0.4.7'}
165
+
166
+ You can stub this request with the following snippet:
167
+
168
+ stub_request(:post, "https://oauth.intuit.com/oauth/v1/get_request_token").
169
+ with(:headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Authorization'=>'OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_callback="http%3A%2F%2Flocalhost%3A3000%2Foauth_callback", oauth_consumer_key="qyprdhobqczMYO48EHGKyw40TRExem", oauth_nonce="f59ISHDHOkwOERl2rmCEpd6MTiQzqEVkBhKm5RYoUo", oauth_signature="yn%2FAoiVeRstAhv0n61MfPpfrUfI%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1438084755", oauth_version="1.0"', 'Content-Length'=>'0', 'User-Agent'=>'OAuth gem v0.4.7'}).
170
+ to_return(:status => 200, :body => "", :headers => {})
171
+
172
+ ============================================================):
173
+ app/controllers/settings_controller.rb:4:in `oauth_start'
174
+
175
+
176
+ Rendered /Users/christian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.5ms)
177
+ Rendered /Users/christian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.7ms)
178
+ Rendered /Users/christian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.5ms)
179
+ Rendered /Users/christian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.6ms)
180
+
181
+
182
+ Started GET "/" for ::1 at 2015-07-28 08:00:44 -0400
183
+ Processing by SettingsController#index as HTML
184
+ Rendered settings/index.html.erb within layouts/application (1.3ms)
185
+ Completed 200 OK in 15ms (Views: 14.4ms | ActiveRecord: 0.0ms)
186
+
187
+
188
+ Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for ::1 at 2015-07-28 08:00:44 -0400
189
+
190
+
191
+ Started GET "/assets/application-5f1f3a0d9f2a8d9e8fcda8edadddaf68.js?body=1" for ::1 at 2015-07-28 08:00:44 -0400
192
+
193
+
194
+ Started GET "/" for ::1 at 2015-07-28 08:00:47 -0400
195
+ Processing by SettingsController#index as HTML
196
+ Rendered settings/index.html.erb within layouts/application (1.3ms)
197
+ Completed 200 OK in 16ms (Views: 15.4ms | ActiveRecord: 0.0ms)
198
+
199
+
200
+ Started GET "/assets/application-5f1f3a0d9f2a8d9e8fcda8edadddaf68.js?body=1" for ::1 at 2015-07-28 08:00:47 -0400
201
+
202
+
203
+ Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for ::1 at 2015-07-28 08:00:47 -0400
204
+
205
+
206
+ Started GET "/" for ::1 at 2015-07-28 08:01:20 -0400
207
+ Processing by SettingsController#index as HTML
208
+ Rendered settings/index.html.erb within layouts/application (2.3ms)
209
+ Completed 200 OK in 15ms (Views: 14.5ms | ActiveRecord: 0.0ms)
210
+
211
+
212
+ Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for ::1 at 2015-07-28 08:01:21 -0400
213
+
214
+
215
+ Started GET "/assets/application-5f1f3a0d9f2a8d9e8fcda8edadddaf68.js?body=1" for ::1 at 2015-07-28 08:01:21 -0400
216
+
217
+
218
+ Started GET "/" for ::1 at 2015-07-28 08:04:26 -0400
219
+ Processing by SettingsController#index as HTML
220
+ Rendered settings/index.html.erb within layouts/application (1.4ms)
221
+ Completed 200 OK in 10ms (Views: 9.9ms | ActiveRecord: 0.0ms)
222
+
223
+
224
+ Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for ::1 at 2015-07-28 08:04:26 -0400
225
+
226
+
227
+ Started GET "/assets/application-5f1f3a0d9f2a8d9e8fcda8edadddaf68.js?body=1" for ::1 at 2015-07-28 08:04:26 -0400
228
+
229
+
230
+ Started GET "/oauth_start" for ::1 at 2015-07-28 08:04:29 -0400
231
+ Processing by SettingsController#oauth_start as HTML
232
+ Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)
233
+
234
+ WebMock::NetConnectNotAllowedError (Real HTTP connections are disabled. Unregistered request: POST https://oauth.intuit.com/oauth/v1/get_request_token with headers {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Authorization'=>'OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_callback="http%3A%2F%2Flocalhost%3A3000%2Foauth_callback", oauth_consumer_key="qyprdhobqczMYO48EHGKyw40TRExem", oauth_nonce="CvJBm9t91kVo2y2IQvG0jPUGzCa9ZSmGmAxqxInzRw", oauth_signature="nuDh7gyaYchBGg%2BEVHhvp5UXax0%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1438085069", oauth_version="1.0"', 'Content-Length'=>'0', 'User-Agent'=>'OAuth gem v0.4.7'}
235
+
236
+ You can stub this request with the following snippet:
237
+
238
+ stub_request(:post, "https://oauth.intuit.com/oauth/v1/get_request_token").
239
+ with(:headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Authorization'=>'OAuth oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D", oauth_callback="http%3A%2F%2Flocalhost%3A3000%2Foauth_callback", oauth_consumer_key="qyprdhobqczMYO48EHGKyw40TRExem", oauth_nonce="CvJBm9t91kVo2y2IQvG0jPUGzCa9ZSmGmAxqxInzRw", oauth_signature="nuDh7gyaYchBGg%2BEVHhvp5UXax0%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1438085069", oauth_version="1.0"', 'Content-Length'=>'0', 'User-Agent'=>'OAuth gem v0.4.7'}).
240
+ to_return(:status => 200, :body => "", :headers => {})
241
+
242
+ ============================================================):
243
+ app/controllers/settings_controller.rb:4:in `oauth_start'
244
+
245
+
246
+ Rendered /Users/christian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.0ms)
247
+ Rendered /Users/christian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms)
248
+ Rendered /Users/christian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.9ms)
249
+ Rendered /Users/christian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.7ms)
250
+
251
+
252
+ Started GET "/oauth_start" for ::1 at 2015-07-28 08:04:59 -0400
253
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
254
+ Processing by SettingsController#oauth_start as HTML
255
+ Redirected to https://appcenter.intuit.com/Connect/Begin?oauth_token=qyprd8UcdBS34L2R5e4vR2oJiL5J1zVv3ESflKmkAUXJBUWL
256
+ Completed 302 Found in 988ms (ActiveRecord: 0.0ms)
257
+
258
+
259
+ Started GET "/" for ::1 at 2015-07-28 08:06:08 -0400
260
+ Processing by SettingsController#index as HTML
261
+ Rendered settings/index.html.erb within layouts/application (9.7ms)
262
+ Completed 200 OK in 65ms (Views: 64.6ms | ActiveRecord: 0.0ms)
263
+
264
+
265
+ Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for ::1 at 2015-07-28 08:06:08 -0400
266
+
267
+
268
+ Started GET "/assets/application-5f1f3a0d9f2a8d9e8fcda8edadddaf68.js?body=1" for ::1 at 2015-07-28 08:06:08 -0400
269
+
270
+
271
+ Started GET "/oauth_start" for ::1 at 2015-07-28 08:06:12 -0400
272
+ Processing by SettingsController#oauth_start as HTML
273
+ Redirected to https://appcenter.intuit.com/Connect/Begin?oauth_token=qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X
274
+ Completed 302 Found in 483ms (ActiveRecord: 0.0ms)
275
+
276
+
277
+ Started GET "/oauth_callback?oauth_token=qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X&oauth_verifier=ev0kbn0&realmId=1411324040&dataSource=QBO" for ::1 at 2015-07-28 08:06:50 -0400
278
+ Processing by SettingsController#oauth_callback as HTML
279
+ Parameters: {"oauth_token"=>"qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X", "oauth_verifier"=>"ev0kbn0", "realmId"=>"1411324040", "dataSource"=>"QBO"}
280
+ Completed 500 Internal Server Error in 901ms (ActiveRecord: 0.0ms)
281
+
282
+ ActionView::MissingTemplate (Missing template layouts/basic with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby]}. Searched in:
283
+ * "/Users/christian/github/qbo_rails/spec/dummy/app/views"
284
+ ):
285
+ app/controllers/settings_controller.rb:18:in `rescue in oauth_callback'
286
+ app/controllers/settings_controller.rb:10:in `oauth_callback'
287
+
288
+
289
+ Rendered /Users/christian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (7.4ms)
290
+ Rendered /Users/christian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.1ms)
291
+ Rendered /Users/christian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.9ms)
292
+ Rendered /Users/christian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/missing_template.html.erb within rescues/layout (25.6ms)
293
+
294
+
295
+ Started GET "/oauth_callback?oauth_token=qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X&oauth_verifier=ev0kbn0&realmId=1411324040&dataSource=QBO" for ::1 at 2015-07-28 08:08:49 -0400
296
+ Processing by SettingsController#oauth_callback as HTML
297
+ Parameters: {"oauth_token"=>"qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X", "oauth_verifier"=>"ev0kbn0", "realmId"=>"1411324040", "dataSource"=>"QBO"}
298
+ Completed 500 Internal Server Error in 955ms (ActiveRecord: 0.0ms)
299
+
300
+ ActionView::MissingTemplate (Missing template layouts/basic with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby]}. Searched in:
301
+ * "/Users/christian/github/qbo_rails/spec/dummy/app/views"
302
+ ):
303
+ app/controllers/settings_controller.rb:18:in `rescue in oauth_callback'
304
+ app/controllers/settings_controller.rb:10:in `oauth_callback'
305
+
306
+
307
+ Rendered /Users/christian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (7.6ms)
308
+ Rendered /Users/christian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.1ms)
309
+ Rendered /Users/christian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms)
310
+ Rendered /Users/christian/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/missing_template.html.erb within rescues/layout (21.4ms)
311
+
312
+
313
+ Started GET "/oauth_callback?oauth_token=qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X&oauth_verifier=ev0kbn0&realmId=1411324040&dataSource=QBO" for ::1 at 2015-07-28 08:09:21 -0400
314
+ Processing by SettingsController#oauth_callback as HTML
315
+ Parameters: {"oauth_token"=>"qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X", "oauth_verifier"=>"ev0kbn0", "realmId"=>"1411324040", "dataSource"=>"QBO"}
316
+ Rendered settings/close_and_redirect.html.erb within layouts/application (0.6ms)
317
+ Completed 200 OK in 697ms (Views: 9.9ms | ActiveRecord: 0.0ms)
318
+
319
+
320
+ Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for ::1 at 2015-07-28 08:09:21 -0400
321
+
322
+
323
+ Started GET "/assets/application-5f1f3a0d9f2a8d9e8fcda8edadddaf68.js?body=1" for ::1 at 2015-07-28 08:09:21 -0400
324
+
325
+
326
+ Started GET "/oauth_callback?oauth_token=qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X&oauth_verifier=ev0kbn0&realmId=1411324040&dataSource=QBO" for ::1 at 2015-07-28 08:09:26 -0400
327
+ Processing by SettingsController#oauth_callback as HTML
328
+ Parameters: {"oauth_token"=>"qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X", "oauth_verifier"=>"ev0kbn0", "realmId"=>"1411324040", "dataSource"=>"QBO"}
329
+ Rendered settings/close_and_redirect.html.erb within layouts/application (0.1ms)
330
+ Completed 200 OK in 598ms (Views: 16.3ms | ActiveRecord: 0.0ms)
331
+
332
+
333
+ Started GET "/assets/application-5f1f3a0d9f2a8d9e8fcda8edadddaf68.js?body=1" for ::1 at 2015-07-28 08:09:27 -0400
334
+
335
+
336
+ Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for ::1 at 2015-07-28 08:09:27 -0400
337
+
338
+
339
+ Started GET "/oauth_callback?oauth_token=qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X&oauth_verifier=ev0kbn0&realmId=1411324040&dataSource=QBO" for ::1 at 2015-07-28 08:09:32 -0400
340
+ Processing by SettingsController#oauth_callback as HTML
341
+ Parameters: {"oauth_token"=>"qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X", "oauth_verifier"=>"ev0kbn0", "realmId"=>"1411324040", "dataSource"=>"QBO"}
342
+ Rendered settings/close_and_redirect.html.erb within layouts/application (0.1ms)
343
+ Completed 200 OK in 660ms (Views: 9.3ms | ActiveRecord: 0.0ms)
344
+
345
+
346
+ Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for ::1 at 2015-07-28 08:09:33 -0400
347
+
348
+
349
+ Started GET "/assets/application-5f1f3a0d9f2a8d9e8fcda8edadddaf68.js?body=1" for ::1 at 2015-07-28 08:09:33 -0400
350
+
351
+
352
+ Started GET "/oauth_callback?oauth_token=qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X&oauth_verifier=ev0kbn0&realmId=1411324040&dataSource=QBO" for ::1 at 2015-07-28 08:09:38 -0400
353
+ Processing by SettingsController#oauth_callback as HTML
354
+ Parameters: {"oauth_token"=>"qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X", "oauth_verifier"=>"ev0kbn0", "realmId"=>"1411324040", "dataSource"=>"QBO"}
355
+ Rendered settings/close_and_redirect.html.erb within layouts/application (0.1ms)
356
+ Completed 200 OK in 694ms (Views: 8.8ms | ActiveRecord: 0.0ms)
357
+
358
+
359
+ Started GET "/assets/application-5f1f3a0d9f2a8d9e8fcda8edadddaf68.js?body=1" for ::1 at 2015-07-28 08:09:38 -0400
360
+
361
+
362
+ Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for ::1 at 2015-07-28 08:09:38 -0400
363
+
364
+
365
+ Started GET "/oauth_callback?oauth_token=qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X&oauth_verifier=ev0kbn0&realmId=1411324040&dataSource=QBO" for ::1 at 2015-07-28 08:09:43 -0400
366
+ Processing by SettingsController#oauth_callback as HTML
367
+ Parameters: {"oauth_token"=>"qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X", "oauth_verifier"=>"ev0kbn0", "realmId"=>"1411324040", "dataSource"=>"QBO"}
368
+ Rendered settings/close_and_redirect.html.erb within layouts/application (0.1ms)
369
+ Completed 200 OK in 694ms (Views: 11.5ms | ActiveRecord: 0.0ms)
370
+
371
+
372
+ Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for ::1 at 2015-07-28 08:09:44 -0400
373
+
374
+
375
+ Started GET "/assets/application-5f1f3a0d9f2a8d9e8fcda8edadddaf68.js?body=1" for ::1 at 2015-07-28 08:09:44 -0400
376
+
377
+
378
+ Started GET "/oauth_callback?oauth_token=qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X&oauth_verifier=ev0kbn0&realmId=1411324040&dataSource=QBO" for ::1 at 2015-07-28 08:09:49 -0400
379
+ Processing by SettingsController#oauth_callback as HTML
380
+ Parameters: {"oauth_token"=>"qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X", "oauth_verifier"=>"ev0kbn0", "realmId"=>"1411324040", "dataSource"=>"QBO"}
381
+ Rendered settings/close_and_redirect.html.erb within layouts/application (0.1ms)
382
+ Completed 200 OK in 533ms (Views: 9.1ms | ActiveRecord: 0.0ms)
383
+
384
+
385
+ Started GET "/assets/application-5f1f3a0d9f2a8d9e8fcda8edadddaf68.js?body=1" for ::1 at 2015-07-28 08:09:50 -0400
386
+
387
+
388
+ Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for ::1 at 2015-07-28 08:09:50 -0400
389
+
390
+
391
+ Started GET "/oauth_callback?oauth_token=qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X&oauth_verifier=ev0kbn0&realmId=1411324040&dataSource=QBO" for ::1 at 2015-07-28 08:09:55 -0400
392
+ Processing by SettingsController#oauth_callback as HTML
393
+ Parameters: {"oauth_token"=>"qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X", "oauth_verifier"=>"ev0kbn0", "realmId"=>"1411324040", "dataSource"=>"QBO"}
394
+ Rendered settings/close_and_redirect.html.erb within layouts/application (0.2ms)
395
+ Completed 200 OK in 566ms (Views: 11.6ms | ActiveRecord: 0.0ms)
396
+
397
+
398
+ Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for ::1 at 2015-07-28 08:09:55 -0400
399
+
400
+
401
+ Started GET "/assets/application-5f1f3a0d9f2a8d9e8fcda8edadddaf68.js?body=1" for ::1 at 2015-07-28 08:09:55 -0400
402
+
403
+
404
+ Started GET "/oauth_callback?oauth_token=qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X&oauth_verifier=ev0kbn0&realmId=1411324040&dataSource=QBO" for ::1 at 2015-07-28 08:10:00 -0400
405
+ Processing by SettingsController#oauth_callback as HTML
406
+ Parameters: {"oauth_token"=>"qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X", "oauth_verifier"=>"ev0kbn0", "realmId"=>"1411324040", "dataSource"=>"QBO"}
407
+ Rendered settings/close_and_redirect.html.erb within layouts/application (0.1ms)
408
+ Completed 200 OK in 932ms (Views: 11.0ms | ActiveRecord: 0.0ms)
409
+
410
+
411
+ Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for ::1 at 2015-07-28 08:10:01 -0400
412
+
413
+
414
+ Started GET "/assets/application-5f1f3a0d9f2a8d9e8fcda8edadddaf68.js?body=1" for ::1 at 2015-07-28 08:10:01 -0400
415
+
416
+
417
+ Started GET "/oauth_callback?oauth_token=qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X&oauth_verifier=ev0kbn0&realmId=1411324040&dataSource=QBO" for ::1 at 2015-07-28 08:10:06 -0400
418
+ Processing by SettingsController#oauth_callback as HTML
419
+ Parameters: {"oauth_token"=>"qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X", "oauth_verifier"=>"ev0kbn0", "realmId"=>"1411324040", "dataSource"=>"QBO"}
420
+ Rendered settings/close_and_redirect.html.erb within layouts/application (0.1ms)
421
+ Completed 200 OK in 644ms (Views: 46.3ms | ActiveRecord: 0.0ms)
422
+
423
+
424
+ Started GET "/assets/application-5f1f3a0d9f2a8d9e8fcda8edadddaf68.js?body=1" for ::1 at 2015-07-28 08:10:07 -0400
425
+
426
+
427
+ Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for ::1 at 2015-07-28 08:10:07 -0400
428
+
429
+
430
+ Started GET "/oauth_callback?oauth_token=qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X&oauth_verifier=ev0kbn0&realmId=1411324040&dataSource=QBO" for ::1 at 2015-07-28 08:10:12 -0400
431
+ Processing by SettingsController#oauth_callback as HTML
432
+ Parameters: {"oauth_token"=>"qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X", "oauth_verifier"=>"ev0kbn0", "realmId"=>"1411324040", "dataSource"=>"QBO"}
433
+ Rendered settings/close_and_redirect.html.erb within layouts/application (0.1ms)
434
+ Completed 200 OK in 543ms (Views: 11.6ms | ActiveRecord: 0.0ms)
435
+
436
+
437
+ Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for ::1 at 2015-07-28 08:10:12 -0400
438
+
439
+
440
+ Started GET "/assets/application-5f1f3a0d9f2a8d9e8fcda8edadddaf68.js?body=1" for ::1 at 2015-07-28 08:10:13 -0400
441
+
442
+
443
+ Started GET "/oauth_callback?oauth_token=qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X&oauth_verifier=ev0kbn0&realmId=1411324040&dataSource=QBO" for ::1 at 2015-07-28 08:10:18 -0400
444
+ Processing by SettingsController#oauth_callback as HTML
445
+ Parameters: {"oauth_token"=>"qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X", "oauth_verifier"=>"ev0kbn0", "realmId"=>"1411324040", "dataSource"=>"QBO"}
446
+ Rendered settings/close_and_redirect.html.erb within layouts/application (0.1ms)
447
+ Completed 200 OK in 687ms (Views: 9.2ms | ActiveRecord: 0.0ms)
448
+
449
+
450
+ Started GET "/assets/application-5f1f3a0d9f2a8d9e8fcda8edadddaf68.js?body=1" for ::1 at 2015-07-28 08:10:18 -0400
451
+
452
+
453
+ Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for ::1 at 2015-07-28 08:10:18 -0400
454
+
455
+
456
+ Started GET "/oauth_callback?oauth_token=qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X&oauth_verifier=ev0kbn0&realmId=1411324040&dataSource=QBO" for ::1 at 2015-07-28 08:10:23 -0400
457
+ Processing by SettingsController#oauth_callback as HTML
458
+ Parameters: {"oauth_token"=>"qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X", "oauth_verifier"=>"ev0kbn0", "realmId"=>"1411324040", "dataSource"=>"QBO"}
459
+ Rendered settings/close_and_redirect.html.erb within layouts/application (0.1ms)
460
+ Completed 200 OK in 545ms (Views: 9.8ms | ActiveRecord: 0.0ms)
461
+
462
+
463
+ Started GET "/assets/application-5f1f3a0d9f2a8d9e8fcda8edadddaf68.js?body=1" for ::1 at 2015-07-28 08:10:24 -0400
464
+
465
+
466
+ Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for ::1 at 2015-07-28 08:10:24 -0400
467
+
468
+
469
+ Started GET "/oauth_callback?oauth_token=qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X&oauth_verifier=ev0kbn0&realmId=1411324040&dataSource=QBO" for ::1 at 2015-07-28 08:10:29 -0400
470
+ Processing by SettingsController#oauth_callback as HTML
471
+ Parameters: {"oauth_token"=>"qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X", "oauth_verifier"=>"ev0kbn0", "realmId"=>"1411324040", "dataSource"=>"QBO"}
472
+ Rendered settings/close_and_redirect.html.erb within layouts/application (0.1ms)
473
+ Completed 200 OK in 641ms (Views: 9.0ms | ActiveRecord: 0.0ms)
474
+
475
+
476
+ Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for ::1 at 2015-07-28 08:10:29 -0400
477
+
478
+
479
+ Started GET "/assets/application-5f1f3a0d9f2a8d9e8fcda8edadddaf68.js?body=1" for ::1 at 2015-07-28 08:10:29 -0400
480
+
481
+
482
+ Started GET "/oauth_callback?oauth_token=qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X&oauth_verifier=ev0kbn0&realmId=1411324040&dataSource=QBO" for ::1 at 2015-07-28 08:10:35 -0400
483
+ Processing by SettingsController#oauth_callback as HTML
484
+ Parameters: {"oauth_token"=>"qyprdRkNwvXl7etPSfi4vzhlMgTe2OXjsX94M6mkJmzVU69X", "oauth_verifier"=>"ev0kbn0", "realmId"=>"1411324040", "dataSource"=>"QBO"}
485
+ Rendered settings/close_and_redirect.html.erb within layouts/application (0.1ms)
486
+ Completed 200 OK in 591ms (Views: 10.1ms | ActiveRecord: 0.0ms)
487
+
488
+
489
+ Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for ::1 at 2015-07-28 08:10:35 -0400
490
+
491
+
492
+ Started GET "/assets/application-5f1f3a0d9f2a8d9e8fcda8edadddaf68.js?body=1" for ::1 at 2015-07-28 08:10:35 -0400
493
+
494
+
495
+ Started GET "/" for ::1 at 2015-07-28 08:10:37 -0400
496
+ Processing by SettingsController#index as HTML
497
+ Rendered settings/index.html.erb within layouts/application (0.6ms)
498
+ Completed 200 OK in 12ms (Views: 11.9ms | ActiveRecord: 0.0ms)
499
+
500
+
501
+ Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for ::1 at 2015-07-28 08:10:37 -0400
502
+
503
+
504
+ Started GET "/assets/application-5f1f3a0d9f2a8d9e8fcda8edadddaf68.js?body=1" for ::1 at 2015-07-28 08:10:37 -0400
505
+
506
+
507
+ Started GET "/oauth_start" for ::1 at 2015-07-28 08:10:47 -0400
508
+ Processing by SettingsController#oauth_start as HTML
509
+ Redirected to https://appcenter.intuit.com/Connect/Begin?oauth_token=qyprdsbsHPZNViCb0vqEioyKMfQLD65wB9koW9KLjPysIphH
510
+ Completed 302 Found in 355ms (ActiveRecord: 0.0ms)
511
+
512
+
513
+ Started GET "/oauth_callback?oauth_token=qyprdsbsHPZNViCb0vqEioyKMfQLD65wB9koW9KLjPysIphH&oauth_verifier=x1w47r4&realmId=1411324040&dataSource=QBO" for ::1 at 2015-07-28 08:11:18 -0400
514
+ Processing by SettingsController#oauth_callback as HTML
515
+ Parameters: {"oauth_token"=>"qyprdsbsHPZNViCb0vqEioyKMfQLD65wB9koW9KLjPysIphH", "oauth_verifier"=>"x1w47r4", "realmId"=>"1411324040", "dataSource"=>"QBO"}
516
+ Rendered settings/close_and_redirect.html.erb within layouts/application (0.1ms)
517
+ Completed 200 OK in 972ms (Views: 10.7ms | ActiveRecord: 0.0ms)
518
+
519
+
520
+ Started GET "/assets/application-5f1f3a0d9f2a8d9e8fcda8edadddaf68.js?body=1" for ::1 at 2015-07-28 08:11:19 -0400
521
+
522
+
523
+ Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for ::1 at 2015-07-28 08:11:19 -0400
524
+
525
+
526
+ Started GET "/" for ::1 at 2015-07-28 08:11:24 -0400
527
+ Processing by SettingsController#index as HTML
528
+ Rendered settings/index.html.erb within layouts/application (0.9ms)
529
+ Completed 200 OK in 12ms (Views: 12.0ms | ActiveRecord: 0.0ms)
530
+
531
+
532
+ Started GET "/assets/application-5f1f3a0d9f2a8d9e8fcda8edadddaf68.js?body=1" for ::1 at 2015-07-28 08:11:24 -0400
533
+
534
+
535
+ Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for ::1 at 2015-07-28 08:11:24 -0400
536
+
537
+
538
+ Started GET "/" for ::1 at 2015-07-28 08:12:52 -0400
539
+ Processing by SettingsController#index as HTML
540
+ Rendered settings/index.html.erb within layouts/application (6.3ms)
541
+ Completed 200 OK in 20ms (Views: 19.7ms | ActiveRecord: 0.0ms)
542
+
543
+
544
+ Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for ::1 at 2015-07-28 08:12:52 -0400
545
+
546
+
547
+ Started GET "/assets/application-5f1f3a0d9f2a8d9e8fcda8edadddaf68.js?body=1" for ::1 at 2015-07-28 08:12:52 -0400
548
+
549
+
550
+ Started GET "/" for ::1 at 2015-07-28 08:13:05 -0400
551
+ Processing by SettingsController#index as HTML
552
+ Rendered settings/index.html.erb within layouts/application (2.0ms)
553
+ Completed 200 OK in 16ms (Views: 15.3ms | ActiveRecord: 0.0ms)
554
+
555
+
556
+ Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for ::1 at 2015-07-28 08:13:05 -0400
557
+
558
+
559
+ Started GET "/assets/application-5f1f3a0d9f2a8d9e8fcda8edadddaf68.js?body=1" for ::1 at 2015-07-28 08:13:05 -0400
560
+
561
+
562
+ Started GET "/" for ::1 at 2015-07-28 08:13:34 -0400
563
+ Processing by SettingsController#index as HTML
564
+ Rendered settings/index.html.erb within layouts/application (1.4ms)
565
+ Completed 200 OK in 14ms (Views: 13.3ms | ActiveRecord: 0.0ms)
566
+
567
+
568
+ Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for ::1 at 2015-07-28 08:13:34 -0400
569
+
570
+
571
+ Started GET "/assets/application-5f1f3a0d9f2a8d9e8fcda8edadddaf68.js?body=1" for ::1 at 2015-07-28 08:13:34 -0400
572
+
573
+
574
+ Started GET "/" for 127.0.0.1 at 2015-07-28 08:14:07 -0400
575
+ Processing by SettingsController#index as HTML
576
+ Rendered settings/index.html.erb within layouts/application (1.4ms)
577
+ Completed 200 OK in 16ms (Views: 15.3ms | ActiveRecord: 0.0ms)
578
+
579
+
580
+ Started GET "/assets/application-5266d2988799ecc8fe6e81eaab412e7d.css?body=1" for 127.0.0.1 at 2015-07-28 08:14:07 -0400
581
+
582
+
583
+ Started GET "/assets/application-5f1f3a0d9f2a8d9e8fcda8edadddaf68.js?body=1" for 127.0.0.1 at 2015-07-28 08:14:07 -0400
584
+ QboError Load (1.3ms) SELECT "qbo_errors".* FROM "qbo_errors"