openstax_api 8.0.0 → 8.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a051bb3544455eda8634de89e45c437b6ffb3beb
4
- data.tar.gz: 611263fd2da96e7c7a4b033e5211e357fd4b170a
3
+ metadata.gz: 0fd67f7eaa59122e363d49ec80c66a92789d63b8
4
+ data.tar.gz: 2c27a0241070b0912d7c59d5dc34ec11159222bb
5
5
  SHA512:
6
- metadata.gz: 8915fce828023bff8606cafbc82ace6933c0d452ecf3979d29bffedbc69cc3a66ddd1fd95af400a9c16fa65d29bce3dedb19030cf498c18e684c92358b214457
7
- data.tar.gz: 58680b01d268abb5a04c0c33336b334b39418452b9bc2412d3140471ce6f868ff601deac127a3b9fb6a6406b7c6c4ea8837e3b6fc9ca3ce54ae80a35c83909a0
6
+ metadata.gz: 6a0ab099f97920625cb806bcdd79d99f2639b3d8b1be958f26be58bf8b2f2ef8d6b7184834a634d6dcc833745c9fb7a295d08a24b534df28969923cb161a8367
7
+ data.tar.gz: 7e73d82dd3a3b36af83b111ec317ee593660d63f4a228f49f80c7f20866e108a1a06259587d48cedd38644f1140586de94e384ea70c6c4e7ded6e53e0df1201c
@@ -145,6 +145,8 @@ module OpenStax
145
145
  end
146
146
 
147
147
  def render_api_errors(errors, status = :unprocessable_entity)
148
+ return if errors.blank?
149
+
148
150
  hash = { status: Rack::Utils.status_code(status) }
149
151
 
150
152
  case errors
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Api
3
- VERSION = "8.0.0"
3
+ VERSION = "8.1.0"
4
4
  end
5
5
  end
@@ -168,7 +168,6 @@ module OpenStax
168
168
  expect(response.headers['Access-Control-Allow-Origin']).to eq ''
169
169
  end
170
170
 
171
-
172
171
  end
173
172
 
174
173
  end
Binary file
@@ -9529,3 +9529,549 @@ Completed 500 Internal Server Error in 4ms (Views: 4.3ms | ActiveRecord: 0.0ms)
9529
9529
   (0.1ms) SELECT COUNT(*) FROM "users"
9530
9530
   (0.0ms) commit transaction
9531
9531
  User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."name" ASC LIMIT 20 OFFSET 19980
9532
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
9533
+  (1.3ms) CREATE TABLE "oauth_access_grants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_owner_id" integer NOT NULL, "application_id" integer NOT NULL, "token" varchar NOT NULL, "expires_in" integer NOT NULL, "redirect_uri" text NOT NULL, "created_at" datetime NOT NULL, "revoked_at" datetime, "scopes" varchar) 
9534
+  (0.1ms) select sqlite_version(*)
9535
+  (0.8ms) CREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token")
9536
+  (0.9ms) CREATE TABLE "oauth_access_tokens" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_owner_id" integer, "application_id" integer, "token" varchar NOT NULL, "refresh_token" varchar, "expires_in" integer, "revoked_at" datetime, "created_at" datetime NOT NULL, "scopes" varchar)
9537
+  (0.8ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token")
9538
+  (0.1ms) SELECT sql
9539
+ FROM sqlite_master
9540
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
9541
+ UNION ALL
9542
+ SELECT sql
9543
+ FROM sqlite_temp_master
9544
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
9545
+
9546
+  (0.8ms) CREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id")
9547
+  (0.1ms) SELECT sql
9548
+ FROM sqlite_master
9549
+ WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
9550
+ UNION ALL
9551
+ SELECT sql
9552
+ FROM sqlite_temp_master
9553
+ WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
9554
+
9555
+  (0.1ms)  SELECT sql
9556
+ FROM sqlite_master
9557
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
9558
+ UNION ALL
9559
+ SELECT sql
9560
+ FROM sqlite_temp_master
9561
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
9562
+ 
9563
+  (0.8ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token")
9564
+  (0.9ms) CREATE TABLE "oauth_applications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "secret" varchar NOT NULL, "redirect_uri" text NOT NULL, "created_at" datetime, "updated_at" datetime) 
9565
+  (0.9ms) CREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")
9566
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar NOT NULL, "password_hash" varchar NOT NULL, "name" varchar NOT NULL, "email" varchar NOT NULL, "created_at" datetime, "updated_at" datetime) 
9567
+  (0.7ms) CREATE INDEX "index_users_on_email" ON "users" ("email")
9568
+  (0.1ms)  SELECT sql
9569
+ FROM sqlite_master
9570
+ WHERE name='index_users_on_email' AND type='index'
9571
+ UNION ALL
9572
+ SELECT sql
9573
+ FROM sqlite_temp_master
9574
+ WHERE name='index_users_on_email' AND type='index'
9575
+ 
9576
+  (0.7ms) CREATE INDEX "index_users_on_name" ON "users" ("name")
9577
+  (0.1ms)  SELECT sql
9578
+ FROM sqlite_master
9579
+ WHERE name='index_users_on_name' AND type='index'
9580
+ UNION ALL
9581
+ SELECT sql
9582
+ FROM sqlite_temp_master
9583
+ WHERE name='index_users_on_name' AND type='index'
9584
+ 
9585
+  (0.1ms) SELECT sql
9586
+ FROM sqlite_master
9587
+ WHERE name='index_users_on_email' AND type='index'
9588
+ UNION ALL
9589
+ SELECT sql
9590
+ FROM sqlite_temp_master
9591
+ WHERE name='index_users_on_email' AND type='index'
9592
+
9593
+  (0.7ms) CREATE INDEX "index_users_on_username" ON "users" ("username")
9594
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
9595
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
9596
+  (0.1ms) SELECT version FROM "schema_migrations"
9597
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
9598
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
9599
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
9600
+  (0.1ms) begin transaction
9601
+ SQL (0.3ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "8b18fa4cf7218de1cfb06a0de4900665"], ["password_hash", "3e8ba422e8c3dafde3f73d68c1e29476"], ["name", "Kamron Botsford"], ["email", "cristopher@shanahannicolas.info"], ["created_at", "2017-01-12 21:47:45.679417"], ["updated_at", "2017-01-12 21:47:45.679417"]]
9602
+  (1.1ms) commit transaction
9603
+  (0.1ms) begin transaction
9604
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "f9cff1ae1c2e83fbc5fe6dac7fafc2c8"], ["password_hash", "bcfa4b6b7d2b14c817338ae54e1eb45b"], ["name", "Gerson Bergstrom"], ["email", "sandra@pouroshoeger.biz"], ["created_at", "2017-01-12 21:47:45.684685"], ["updated_at", "2017-01-12 21:47:45.684685"]]
9605
+  (0.8ms) commit transaction
9606
+  (0.1ms) begin transaction
9607
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "2c4a0ce438f45fe1f6586fac48fcd77c"], ["password_hash", "4999aa7e0c88fd71d1c448931c4b5ec6"], ["name", "Nicholas Paucek"], ["email", "gus_waters@wittingmurphy.net"], ["created_at", "2017-01-12 21:47:45.695126"], ["updated_at", "2017-01-12 21:47:45.695126"]]
9608
+  (0.8ms) commit transaction
9609
+  (0.0ms) begin transaction
9610
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "706d9953265cb0130e5c334345753d32"], ["password_hash", "268b8a5843b93a59aadc3dbde4b5fa40"], ["name", "Koby Franecki V"], ["email", "jedidiah_corwin@schneider.net"], ["created_at", "2017-01-12 21:47:45.697632"], ["updated_at", "2017-01-12 21:47:45.697632"]]
9611
+  (0.8ms) commit transaction
9612
+  (0.0ms) begin transaction
9613
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "6355ef9a9b44b3de48aeb9350191f9d0"], ["password_hash", "ac75976b99620f21bd785633c484d1c0"], ["name", "Lesley Block"], ["email", "chester@daughertycollins.com"], ["created_at", "2017-01-12 21:47:45.700941"], ["updated_at", "2017-01-12 21:47:45.700941"]]
9614
+  (0.8ms) commit transaction
9615
+  (0.0ms) begin transaction
9616
+ SQL (0.1ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "27c978d6f9e6068696f70dd91392cd5e"], ["password_hash", "2dcf1ec98edd2891dc9d4a9a200d18e2"], ["name", "Mr. Lia Corkery"], ["email", "edythe@berge.org"], ["created_at", "2017-01-12 21:47:45.703237"], ["updated_at", "2017-01-12 21:47:45.703237"]]
9617
+  (0.8ms) commit transaction
9618
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 5]]
9619
+  (0.0ms) begin transaction
9620
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "8374aced87d4c94aadee2dd4b2781499"], ["password_hash", "50c5500766ac6df2f07fccab99823952"], ["name", "Tiffany Kovacek II"], ["email", "rex@gulgowskiwisoky.name"], ["created_at", "2017-01-12 21:47:45.724065"], ["updated_at", "2017-01-12 21:47:45.724065"]]
9621
+  (0.9ms) commit transaction
9622
+  (0.0ms) begin transaction
9623
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "64b72eba819b494c976be266b6c1163d"], ["password_hash", "52acfbb67a7a376448daccf8bb3636bd"], ["name", "Mr. Emmalee Bosco"], ["email", "maudie@beatty.org"], ["created_at", "2017-01-12 21:47:45.726903"], ["updated_at", "2017-01-12 21:47:45.726903"]]
9624
+  (0.8ms) commit transaction
9625
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL ORDER BY "users"."id" ASC LIMIT 1
9626
+  (0.0ms) begin transaction
9627
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "7822b1fa1779dd2024f1f0e34fa847e7"], ["password_hash", "5157e386c0066f2757a0ede537841370"], ["name", "Parker Tromp"], ["email", "kiana_dickinson@terry.biz"], ["created_at", "2017-01-12 21:47:45.731289"], ["updated_at", "2017-01-12 21:47:45.731289"]]
9628
+  (0.8ms) commit transaction
9629
+  (0.0ms) begin transaction
9630
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "a76704287e83f4d47f783c17e0054b10"], ["password_hash", "9cc19301a3990783c81a017754891024"], ["name", "Daphney Robel V"], ["email", "damaris_grady@mayer.biz"], ["created_at", "2017-01-12 21:47:45.733626"], ["updated_at", "2017-01-12 21:47:45.733626"]]
9631
+  (0.8ms) commit transaction
9632
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 9 ORDER BY "users"."id" ASC LIMIT 1
9633
+  (0.0ms) begin transaction
9634
+ SQL (0.4ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "b996d37b8ce669bdce35ff05731f8be2"], ["password_hash", "428824056dbffad135d154d72096d3e2"], ["name", "Terence Hilpert"], ["email", "jacquelyn@effertz.com"], ["created_at", "2017-01-12 21:47:45.737696"], ["updated_at", "2017-01-12 21:47:45.737696"]]
9635
+  (0.8ms) commit transaction
9636
+  (0.0ms) begin transaction
9637
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "b9f55671d76be611e8de1c2420f1b3ab"], ["password_hash", "4e4f246af830df525f5b9a9a6f472afb"], ["name", "Carole Hettinger"], ["email", "jamil@jones.com"], ["created_at", "2017-01-12 21:47:45.740419"], ["updated_at", "2017-01-12 21:47:45.740419"]]
9638
+  (0.7ms) commit transaction
9639
+ Processing by Api::V1::DummyController#dummy as HTML
9640
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
9641
+  (0.0ms) begin transaction
9642
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "cbd14d8b64c659f6ec8b1765fcf04c8f"], ["password_hash", "7da98cd4246b466544ca1c0453cbde18"], ["name", "Hilbert Kilback"], ["email", "ryley@windler.com"], ["created_at", "2017-01-12 21:47:45.748853"], ["updated_at", "2017-01-12 21:47:45.748853"]]
9643
+  (0.7ms) commit transaction
9644
+  (0.0ms) begin transaction
9645
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "c93876764274d371be15d32b66e3c89e"], ["password_hash", "54e10ecde2af38d965e30a753886f9f7"], ["name", "Jerome Wyman PhD"], ["email", "teie.hahn@kodibbert.biz"], ["created_at", "2017-01-12 21:47:45.751201"], ["updated_at", "2017-01-12 21:47:45.751201"]]
9646
+  (0.7ms) commit transaction
9647
+ Processing by Api::V1::DummyController#dummy as HTML
9648
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
9649
+  (0.0ms) begin transaction
9650
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "39ddec0ba14fae267e3911f223fc02bf"], ["password_hash", "3e8d17cf234f8231b92d15ba59df3b62"], ["name", "Domingo Kirlin II"], ["email", "rowena@rau.info"], ["created_at", "2017-01-12 21:47:45.754748"], ["updated_at", "2017-01-12 21:47:45.754748"]]
9651
+  (0.9ms) commit transaction
9652
+  (0.0ms) begin transaction
9653
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "08c34720d3e33c836e88f1ce99691fe7"], ["password_hash", "d14f6173d29d2383455f34e7eda8b419"], ["name", "Howard Brakus III"], ["email", "meta_romaguera@oconnellwaters.org"], ["created_at", "2017-01-12 21:47:45.757204"], ["updated_at", "2017-01-12 21:47:45.757204"]]
9654
+  (0.9ms) commit transaction
9655
+  (0.0ms) begin transaction
9656
+ Doorkeeper::AccessToken Exists (0.1ms) SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = 'f7a108cac7e5de41fd3b53dc3f568a91ef2cf9ab4dbc04d4ad1d5cf39c00fd39' LIMIT 1
9657
+ SQL (0.2ms) INSERT INTO "oauth_access_tokens" ("token", "created_at") VALUES (?, ?) [["token", "f7a108cac7e5de41fd3b53dc3f568a91ef2cf9ab4dbc04d4ad1d5cf39c00fd39"], ["created_at", "2017-01-12 21:47:45.769628"]]
9658
+  (0.8ms) commit transaction
9659
+ Processing by Api::V1::DummyController#dummy as HTML
9660
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
9661
+  (0.0ms) begin transaction
9662
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "79cbe645751ab4d157d66c3a23030d29"], ["password_hash", "f4eb73a7af0d1a7e834bfcc3f56d75ca"], ["name", "Nora Marvin"], ["email", "shania@hodkiewicz.org"], ["created_at", "2017-01-12 21:47:45.775011"], ["updated_at", "2017-01-12 21:47:45.775011"]]
9663
+  (0.7ms) commit transaction
9664
+  (0.0ms) begin transaction
9665
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "fcfbf251a63111214c199862348ceeee"], ["password_hash", "b6521438c0fd2443f5aa9bfb41b69afb"], ["name", "Vidal Walter"], ["email", "judd@baumbach.com"], ["created_at", "2017-01-12 21:47:45.777374"], ["updated_at", "2017-01-12 21:47:45.777374"]]
9666
+  (0.7ms) commit transaction
9667
+ Processing by Api::V1::DummyController#dummy as HTML
9668
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
9669
+  (0.0ms) begin transaction
9670
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "30e0927203d6c7f4133b9d263a9a28bf"], ["password_hash", "b2e2e94d9d21fc2a60153c4b7e2f2c46"], ["name", "Ms. Randal McGlynn"], ["email", "treie@dibbert.org"], ["created_at", "2017-01-12 21:47:45.781144"], ["updated_at", "2017-01-12 21:47:45.781144"]]
9671
+  (0.7ms) commit transaction
9672
+  (0.0ms) begin transaction
9673
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "a5697838ce5e482b812eba0fb63d4a1b"], ["password_hash", "81b35b546c3db9ab4c0d5b3ae4dbd887"], ["name", "Karen MacGyver"], ["email", "lavada_hamill@creminbaumbach.name"], ["created_at", "2017-01-12 21:47:45.783324"], ["updated_at", "2017-01-12 21:47:45.783324"]]
9674
+  (0.7ms) commit transaction
9675
+ Processing by Api::V1::DummyController#dummy as HTML
9676
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
9677
+  (0.0ms) begin transaction
9678
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "f40333039b47e35228d1d03ca4586715"], ["password_hash", "aa53689419227af6684809102a14a45a"], ["name", "Kitty Keeling"], ["email", "florine@moriette.biz"], ["created_at", "2017-01-12 21:47:45.786833"], ["updated_at", "2017-01-12 21:47:45.786833"]]
9679
+  (0.7ms) commit transaction
9680
+  (0.1ms) begin transaction
9681
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "7d8ab69ac0558da48a19820872c06632"], ["password_hash", "10882b0c573bc73c67fbbd23f29422cf"], ["name", "Helmer Bailey Jr."], ["email", "cydney_okeefe@hoegerbode.info"], ["created_at", "2017-01-12 21:47:45.789023"], ["updated_at", "2017-01-12 21:47:45.789023"]]
9682
+  (0.8ms) commit transaction
9683
+ Processing by Api::V1::DummyController#dummy as HTML
9684
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
9685
+  (0.0ms) begin transaction
9686
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "6041212299cc4a469ac11584ac7155f5"], ["password_hash", "6ee029bc3154fdad16095ba835ba69dc"], ["name", "Hildegard Gaylord"], ["email", "ebony@gusikowski.net"], ["created_at", "2017-01-12 21:47:45.792982"], ["updated_at", "2017-01-12 21:47:45.792982"]]
9687
+  (0.8ms) commit transaction
9688
+  (0.0ms) begin transaction
9689
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "da5c60418ab3053cb8775fe4d1e206fe"], ["password_hash", "11acf8966418bf56a857f9ab218fb949"], ["name", "Elliott Dietrich"], ["email", "ian_jakubowski@hahn.info"], ["created_at", "2017-01-12 21:47:45.795316"], ["updated_at", "2017-01-12 21:47:45.795316"]]
9690
+  (0.7ms) commit transaction
9691
+ Processing by Api::V1::DummyController#explode as HTML
9692
+ Rendered text template (0.0ms)
9693
+ Completed 500 Internal Server Error in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
9694
+  (0.1ms) begin transaction
9695
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "64396335cbc18fa3e917dbe6aefdc4d5"], ["password_hash", "bca4a1af9c4e0ee4071adbe4e6571fc7"], ["name", "Dr. Marcia Bruen"], ["email", "carolyn_labadie@ortiz.info"], ["created_at", "2017-01-12 21:47:45.804599"], ["updated_at", "2017-01-12 21:47:45.804599"]]
9696
+  (0.8ms) commit transaction
9697
+  (0.1ms) begin transaction
9698
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "46f8479099676be89a339361f0c9ee83"], ["password_hash", "7dcc5afaa526d7e43fd21a1fc4786daa"], ["name", "Rogelio Moen"], ["email", "jasper.lemke@pacocha.org"], ["created_at", "2017-01-12 21:47:45.807134"], ["updated_at", "2017-01-12 21:47:45.807134"]]
9699
+  (0.8ms) commit transaction
9700
+  (0.1ms) begin transaction
9701
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "07dd57482b5b98e0597288f6763a7517"], ["password_hash", "e5b9e1cbd634d5bd702f05fd21ba7602"], ["name", "Mazie Roberts"], ["email", "elliot.stamm@waelchi.info"], ["created_at", "2017-01-12 21:47:45.810163"], ["updated_at", "2017-01-12 21:47:45.810163"]]
9702
+  (0.8ms) commit transaction
9703
+  (0.0ms) begin transaction
9704
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "3f21de5bea14bb09d1b97707df4f9587"], ["password_hash", "6602bf0125d7f8133f0f3b1ebb3903bb"], ["name", "Domenica Bartell"], ["email", "norberto_walker@beier.com"], ["created_at", "2017-01-12 21:47:45.812915"], ["updated_at", "2017-01-12 21:47:45.812915"]]
9705
+  (0.8ms) commit transaction
9706
+  (0.0ms) begin transaction
9707
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "9e357cbae888362c1c0d4fb888b0d2c0"], ["password_hash", "0165559bdc0ae7d082ebb26e1e946ed5"], ["name", "Aletha Casper"], ["email", "clair_krajcik@feeney.biz"], ["created_at", "2017-01-12 21:47:45.816577"], ["updated_at", "2017-01-12 21:47:45.816577"]]
9708
+  (0.9ms) commit transaction
9709
+  (0.0ms) begin transaction
9710
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "bf89b4eb3545df22f19f9f1e065cc3b5"], ["password_hash", "52673b1e4bdd0e78aa03bfd72f9aaac9"], ["name", "Aisha Cummerata"], ["email", "valerie@gulgowski.biz"], ["created_at", "2017-01-12 21:47:45.819256"], ["updated_at", "2017-01-12 21:47:45.819256"]]
9711
+  (0.7ms) commit transaction
9712
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
9713
+  (1.9ms) CREATE TABLE "oauth_access_grants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_owner_id" integer NOT NULL, "application_id" integer NOT NULL, "token" varchar NOT NULL, "expires_in" integer NOT NULL, "redirect_uri" text NOT NULL, "created_at" datetime NOT NULL, "revoked_at" datetime, "scopes" varchar) 
9714
+  (0.1ms) select sqlite_version(*)
9715
+  (1.0ms) CREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token")
9716
+  (1.0ms) CREATE TABLE "oauth_access_tokens" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_owner_id" integer, "application_id" integer, "token" varchar NOT NULL, "refresh_token" varchar, "expires_in" integer, "revoked_at" datetime, "created_at" datetime NOT NULL, "scopes" varchar)
9717
+  (0.8ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token")
9718
+  (0.1ms) SELECT sql
9719
+ FROM sqlite_master
9720
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
9721
+ UNION ALL
9722
+ SELECT sql
9723
+ FROM sqlite_temp_master
9724
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
9725
+
9726
+  (0.8ms) CREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id")
9727
+  (0.1ms) SELECT sql
9728
+ FROM sqlite_master
9729
+ WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
9730
+ UNION ALL
9731
+ SELECT sql
9732
+ FROM sqlite_temp_master
9733
+ WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
9734
+
9735
+  (0.1ms)  SELECT sql
9736
+ FROM sqlite_master
9737
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
9738
+ UNION ALL
9739
+ SELECT sql
9740
+ FROM sqlite_temp_master
9741
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
9742
+ 
9743
+  (0.8ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token")
9744
+  (0.9ms) CREATE TABLE "oauth_applications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "secret" varchar NOT NULL, "redirect_uri" text NOT NULL, "created_at" datetime, "updated_at" datetime) 
9745
+  (0.9ms) CREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")
9746
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar NOT NULL, "password_hash" varchar NOT NULL, "name" varchar NOT NULL, "email" varchar NOT NULL, "created_at" datetime, "updated_at" datetime) 
9747
+  (0.8ms) CREATE INDEX "index_users_on_email" ON "users" ("email")
9748
+  (0.1ms)  SELECT sql
9749
+ FROM sqlite_master
9750
+ WHERE name='index_users_on_email' AND type='index'
9751
+ UNION ALL
9752
+ SELECT sql
9753
+ FROM sqlite_temp_master
9754
+ WHERE name='index_users_on_email' AND type='index'
9755
+ 
9756
+  (0.8ms) CREATE INDEX "index_users_on_name" ON "users" ("name")
9757
+  (0.1ms)  SELECT sql
9758
+ FROM sqlite_master
9759
+ WHERE name='index_users_on_name' AND type='index'
9760
+ UNION ALL
9761
+ SELECT sql
9762
+ FROM sqlite_temp_master
9763
+ WHERE name='index_users_on_name' AND type='index'
9764
+ 
9765
+  (0.1ms) SELECT sql
9766
+ FROM sqlite_master
9767
+ WHERE name='index_users_on_email' AND type='index'
9768
+ UNION ALL
9769
+ SELECT sql
9770
+ FROM sqlite_temp_master
9771
+ WHERE name='index_users_on_email' AND type='index'
9772
+
9773
+  (0.8ms) CREATE INDEX "index_users_on_username" ON "users" ("username")
9774
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
9775
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
9776
+  (0.1ms) SELECT version FROM "schema_migrations"
9777
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
9778
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
9779
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
9780
+  (0.1ms) begin transaction
9781
+ SQL (0.4ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "1a755708c6a40936036ae411c359dd35"], ["password_hash", "6302d5f7fe97e2f8230b12780222759c"], ["name", "Mr. Domenic Conn"], ["email", "carmelo.schiller@nicolasheel.biz"], ["created_at", "2017-01-12 21:50:44.433542"], ["updated_at", "2017-01-12 21:50:44.433542"]]
9782
+  (1.4ms) commit transaction
9783
+  (0.1ms) begin transaction
9784
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "055fb1b5a14089bd7535fabf23db678c"], ["password_hash", "e69d2e1323542b43fbe35d347f810148"], ["name", "Jolie Turner"], ["email", "jaclyn.farrell@gusikowski.net"], ["created_at", "2017-01-12 21:50:44.439750"], ["updated_at", "2017-01-12 21:50:44.439750"]]
9785
+  (0.8ms) commit transaction
9786
+  (0.1ms) begin transaction
9787
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "da9e793bcece4942c87556be55a55e34"], ["password_hash", "79a1ae729d968f266e2cb7af9a4c7804"], ["name", "Scarlett Waelchi"], ["email", "piper.pacocha@goodwin.com"], ["created_at", "2017-01-12 21:50:44.449680"], ["updated_at", "2017-01-12 21:50:44.449680"]]
9788
+  (0.8ms) commit transaction
9789
+  (0.0ms) begin transaction
9790
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "d7b40786be212fd625298ef8b58f4352"], ["password_hash", "7a2617518c3df671b17f00fd848b651f"], ["name", "Holly Kulas"], ["email", "catalina@wehner.info"], ["created_at", "2017-01-12 21:50:44.452360"], ["updated_at", "2017-01-12 21:50:44.452360"]]
9791
+  (0.8ms) commit transaction
9792
+  (0.0ms) begin transaction
9793
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "009cf7bc9f6f44b524b8cefac72cac7e"], ["password_hash", "aca7ea9dfd8fe99a319df4d184b43719"], ["name", "Rogelio McClure"], ["email", "kallie@morar.name"], ["created_at", "2017-01-12 21:50:44.455693"], ["updated_at", "2017-01-12 21:50:44.455693"]]
9794
+  (0.8ms) commit transaction
9795
+  (0.0ms) begin transaction
9796
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "2f63346192762ce8dc4cfc9dfbdfc95e"], ["password_hash", "48e60e75291cd2da161eb248038380bc"], ["name", "Mr. Vern Beatty"], ["email", "aleen.mayert@schowalter.info"], ["created_at", "2017-01-12 21:50:44.458181"], ["updated_at", "2017-01-12 21:50:44.458181"]]
9797
+  (0.8ms) commit transaction
9798
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 5]]
9799
+  (0.0ms) begin transaction
9800
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "e5f4ecd6c1c3b97b8442894520cd7ab0"], ["password_hash", "da8b8945d8696e725ddafa1345e088d4"], ["name", "Merlin Lynch"], ["email", "cooper.ullrich@schmidt.biz"], ["created_at", "2017-01-12 21:50:44.471569"], ["updated_at", "2017-01-12 21:50:44.471569"]]
9801
+  (0.9ms) commit transaction
9802
+  (0.0ms) begin transaction
9803
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "cb94d3ea5c21fc577f2ae43c4808a2d4"], ["password_hash", "7d77d623f0aec97e904e1c65f744c977"], ["name", "Robyn Halvorson"], ["email", "agustin_fritsch@walsh.com"], ["created_at", "2017-01-12 21:50:44.474131"], ["updated_at", "2017-01-12 21:50:44.474131"]]
9804
+  (0.7ms) commit transaction
9805
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL ORDER BY "users"."id" ASC LIMIT 1
9806
+  (0.0ms) begin transaction
9807
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "0505eecfc7f3d892e7900f17c3387693"], ["password_hash", "67cd88d421a329340d54624dd7f016ae"], ["name", "Mr. Bartholome Sauer"], ["email", "maureen.heaney@tremblay.info"], ["created_at", "2017-01-12 21:50:44.478004"], ["updated_at", "2017-01-12 21:50:44.478004"]]
9808
+  (0.8ms) commit transaction
9809
+  (0.0ms) begin transaction
9810
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "07f4a23463b173cbdd56e3bb7bf80ffa"], ["password_hash", "5f94f0c335dd5e9d214632da40a749df"], ["name", "Darrin Rosenbaum"], ["email", "ashlynn@hagenes.net"], ["created_at", "2017-01-12 21:50:44.480267"], ["updated_at", "2017-01-12 21:50:44.480267"]]
9811
+  (0.8ms) commit transaction
9812
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 9 ORDER BY "users"."id" ASC LIMIT 1
9813
+  (0.1ms) begin transaction
9814
+ SQL (0.3ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "2c2236d0f1b63559ebdc8bac997a40f8"], ["password_hash", "92e3daa939067a528c120b6b9d6d1ec5"], ["name", "Therese Stehr Jr."], ["email", "armani_mayert@christiansenhickle.biz"], ["created_at", "2017-01-12 21:50:44.484554"], ["updated_at", "2017-01-12 21:50:44.484554"]]
9815
+  (0.8ms) commit transaction
9816
+  (0.1ms) begin transaction
9817
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "4b963e46399e3e2712a27bb97bb280f7"], ["password_hash", "b7e5822818f29a30319a6b30111bf12f"], ["name", "Naomie Daugherty"], ["email", "flavie@bahringer.org"], ["created_at", "2017-01-12 21:50:44.487138"], ["updated_at", "2017-01-12 21:50:44.487138"]]
9818
+  (0.9ms) commit transaction
9819
+ Processing by Api::V1::DummyController#dummy as HTML
9820
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
9821
+  (0.1ms) begin transaction
9822
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "3e0f8ccf5a31bc5d2567e46f68572402"], ["password_hash", "adf3fd64ca6adf8ed3201b00936996f0"], ["name", "Telly Trantow"], ["email", "frankie.ferry@cronafeil.com"], ["created_at", "2017-01-12 21:50:44.496445"], ["updated_at", "2017-01-12 21:50:44.496445"]]
9823
+  (0.8ms) commit transaction
9824
+  (0.0ms) begin transaction
9825
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "050ff64901b05dc1c701f8f1b4bd92d1"], ["password_hash", "e0bde50c80c255344562922a2b9cc0ad"], ["name", "Ms. Willard Thompson"], ["email", "anne@schmelerhettinger.org"], ["created_at", "2017-01-12 21:50:44.498963"], ["updated_at", "2017-01-12 21:50:44.498963"]]
9826
+  (0.7ms) commit transaction
9827
+ Processing by Api::V1::DummyController#dummy as HTML
9828
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
9829
+  (0.0ms) begin transaction
9830
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "d1ef1bd4b9b616251eba8da348760ded"], ["password_hash", "62087fd24533ab1c08d6dfed526de33e"], ["name", "Emie Kiehn"], ["email", "ivah_borer@herman.org"], ["created_at", "2017-01-12 21:50:44.502766"], ["updated_at", "2017-01-12 21:50:44.502766"]]
9831
+  (0.8ms) commit transaction
9832
+  (0.0ms) begin transaction
9833
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "adc0c23747e4d3c4e8e01808a1fae122"], ["password_hash", "175333c69184d81f8d2fe78b1d45a409"], ["name", "Dana Runolfsson"], ["email", "casandra@wilkinson.org"], ["created_at", "2017-01-12 21:50:44.504992"], ["updated_at", "2017-01-12 21:50:44.504992"]]
9834
+  (0.8ms) commit transaction
9835
+  (0.0ms) begin transaction
9836
+ Doorkeeper::AccessToken Exists (0.1ms) SELECT 1 AS one FROM "oauth_access_tokens" WHERE "oauth_access_tokens"."token" = '1988ae9c3c426eb7e00a0a642a9f56db22d7d1c451d1a87d78c6eca2c9cd5376' LIMIT 1
9837
+ SQL (0.3ms) INSERT INTO "oauth_access_tokens" ("token", "created_at") VALUES (?, ?) [["token", "1988ae9c3c426eb7e00a0a642a9f56db22d7d1c451d1a87d78c6eca2c9cd5376"], ["created_at", "2017-01-12 21:50:44.518025"]]
9838
+  (0.8ms) commit transaction
9839
+ Processing by Api::V1::DummyController#dummy as HTML
9840
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
9841
+  (0.0ms) begin transaction
9842
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "78c3361dc7b6553d4196608325c9c592"], ["password_hash", "5c5ac299d9d0a99fa2ff2393757bb434"], ["name", "Carolyn Thompson"], ["email", "abbey_ondricka@schinner.net"], ["created_at", "2017-01-12 21:50:44.523060"], ["updated_at", "2017-01-12 21:50:44.523060"]]
9843
+  (0.8ms) commit transaction
9844
+  (0.0ms) begin transaction
9845
+ SQL (0.3ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "3b98e11736d41642da16c8ce7d688425"], ["password_hash", "ba3106ec1de0beb2c5d9a0c26978aee3"], ["name", "Buddy Dibbert"], ["email", "rosalee.sporer@strackelind.biz"], ["created_at", "2017-01-12 21:50:44.525647"], ["updated_at", "2017-01-12 21:50:44.525647"]]
9846
+  (0.8ms) commit transaction
9847
+ Processing by Api::V1::DummyController#dummy as HTML
9848
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
9849
+  (0.0ms) begin transaction
9850
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "27b9d145eae35f6853548bda1cafa3a9"], ["password_hash", "e3d131e29bb43649dc922249104b5872"], ["name", "Sheila Hirthe"], ["email", "danial_murray@rathjohnson.biz"], ["created_at", "2017-01-12 21:50:44.530524"], ["updated_at", "2017-01-12 21:50:44.530524"]]
9851
+  (0.7ms) commit transaction
9852
+  (0.0ms) begin transaction
9853
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "97e0c56d272977efac78f5b9c8cf2fa8"], ["password_hash", "f4b75826d196517ec12d6f39192390e2"], ["name", "Savion Jacobs DDS"], ["email", "kallie@krajcik.org"], ["created_at", "2017-01-12 21:50:44.532933"], ["updated_at", "2017-01-12 21:50:44.532933"]]
9854
+  (0.7ms) commit transaction
9855
+ Processing by Api::V1::DummyController#dummy as HTML
9856
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
9857
+  (0.0ms) begin transaction
9858
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "6d9ae9e188cb03b5fa439413be02949d"], ["password_hash", "b85e260d767a663bf75eb243760f6625"], ["name", "Miss Bennie Fay"], ["email", "hilda@denesik.biz"], ["created_at", "2017-01-12 21:50:44.536591"], ["updated_at", "2017-01-12 21:50:44.536591"]]
9859
+  (0.8ms) commit transaction
9860
+  (0.0ms) begin transaction
9861
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "df8d82ec5f747e0d3d63fcd35ee912a3"], ["password_hash", "65f1702d30f1740cced305d64c39ca8c"], ["name", "Columbus Glover"], ["email", "gregory_herman@gleasonbuckridge.com"], ["created_at", "2017-01-12 21:50:44.538799"], ["updated_at", "2017-01-12 21:50:44.538799"]]
9862
+  (0.8ms) commit transaction
9863
+ Processing by Api::V1::DummyController#dummy as HTML
9864
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
9865
+  (0.0ms) begin transaction
9866
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "49f0014b256ba3f9be0be9a51e341592"], ["password_hash", "fa2c668c8c7bd56d6c942742a32ab94d"], ["name", "Amara Olson II"], ["email", "madilyn@wilkinsonstoltenberg.net"], ["created_at", "2017-01-12 21:50:44.542643"], ["updated_at", "2017-01-12 21:50:44.542643"]]
9867
+  (0.8ms) commit transaction
9868
+  (0.0ms) begin transaction
9869
+ SQL (0.2ms) INSERT INTO "users" ("username", "password_hash", "name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["username", "d20382cafcaf81836b38361adf89710a"], ["password_hash", "8b6cff8dabd790e7cecb448d8e156a2b"], ["name", "Fredrick Predovic"], ["email", "otho_wehner@walsh.info"], ["created_at", "2017-01-12 21:50:44.545009"], ["updated_at", "2017-01-12 21:50:44.545009"]]
9870
+  (0.7ms) commit transaction
9871
+ Processing by Api::V1::DummyController#explode as HTML
9872
+ Rendered text template (0.0ms)
9873
+ Completed 500 Internal Server Error in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms)
9874
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
9875
+  (1.7ms) CREATE TABLE "oauth_access_grants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_owner_id" integer NOT NULL, "application_id" integer NOT NULL, "token" varchar NOT NULL, "expires_in" integer NOT NULL, "redirect_uri" text NOT NULL, "created_at" datetime NOT NULL, "revoked_at" datetime, "scopes" varchar) 
9876
+  (0.1ms) select sqlite_version(*)
9877
+  (0.9ms) CREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token")
9878
+  (1.0ms) CREATE TABLE "oauth_access_tokens" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_owner_id" integer, "application_id" integer, "token" varchar NOT NULL, "refresh_token" varchar, "expires_in" integer, "revoked_at" datetime, "created_at" datetime NOT NULL, "scopes" varchar)
9879
+  (0.9ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token")
9880
+  (0.1ms) SELECT sql
9881
+ FROM sqlite_master
9882
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
9883
+ UNION ALL
9884
+ SELECT sql
9885
+ FROM sqlite_temp_master
9886
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
9887
+
9888
+  (0.7ms) CREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id")
9889
+  (0.1ms) SELECT sql
9890
+ FROM sqlite_master
9891
+ WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
9892
+ UNION ALL
9893
+ SELECT sql
9894
+ FROM sqlite_temp_master
9895
+ WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
9896
+
9897
+  (0.1ms)  SELECT sql
9898
+ FROM sqlite_master
9899
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
9900
+ UNION ALL
9901
+ SELECT sql
9902
+ FROM sqlite_temp_master
9903
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
9904
+ 
9905
+  (0.7ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token")
9906
+  (0.6ms) CREATE TABLE "oauth_applications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "secret" varchar NOT NULL, "redirect_uri" text NOT NULL, "created_at" datetime, "updated_at" datetime) 
9907
+  (0.6ms) CREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")
9908
+  (0.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar NOT NULL, "password_hash" varchar NOT NULL, "name" varchar NOT NULL, "email" varchar NOT NULL, "created_at" datetime, "updated_at" datetime) 
9909
+  (0.6ms) CREATE INDEX "index_users_on_email" ON "users" ("email")
9910
+  (0.1ms)  SELECT sql
9911
+ FROM sqlite_master
9912
+ WHERE name='index_users_on_email' AND type='index'
9913
+ UNION ALL
9914
+ SELECT sql
9915
+ FROM sqlite_temp_master
9916
+ WHERE name='index_users_on_email' AND type='index'
9917
+ 
9918
+  (0.6ms) CREATE INDEX "index_users_on_name" ON "users" ("name")
9919
+  (0.1ms)  SELECT sql
9920
+ FROM sqlite_master
9921
+ WHERE name='index_users_on_name' AND type='index'
9922
+ UNION ALL
9923
+ SELECT sql
9924
+ FROM sqlite_temp_master
9925
+ WHERE name='index_users_on_name' AND type='index'
9926
+ 
9927
+  (0.1ms) SELECT sql
9928
+ FROM sqlite_master
9929
+ WHERE name='index_users_on_email' AND type='index'
9930
+ UNION ALL
9931
+ SELECT sql
9932
+ FROM sqlite_temp_master
9933
+ WHERE name='index_users_on_email' AND type='index'
9934
+
9935
+  (0.5ms) CREATE INDEX "index_users_on_username" ON "users" ("username")
9936
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
9937
+  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
9938
+  (0.1ms) SELECT version FROM "schema_migrations"
9939
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
9940
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
9941
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
9942
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
9943
+  (1.2ms) CREATE TABLE "oauth_access_grants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_owner_id" integer NOT NULL, "application_id" integer NOT NULL, "token" varchar NOT NULL, "expires_in" integer NOT NULL, "redirect_uri" text NOT NULL, "created_at" datetime NOT NULL, "revoked_at" datetime, "scopes" varchar) 
9944
+  (0.1ms) select sqlite_version(*)
9945
+  (1.1ms) CREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token")
9946
+  (1.0ms) CREATE TABLE "oauth_access_tokens" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_owner_id" integer, "application_id" integer, "token" varchar NOT NULL, "refresh_token" varchar, "expires_in" integer, "revoked_at" datetime, "created_at" datetime NOT NULL, "scopes" varchar)
9947
+  (0.8ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token")
9948
+  (0.1ms) SELECT sql
9949
+ FROM sqlite_master
9950
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
9951
+ UNION ALL
9952
+ SELECT sql
9953
+ FROM sqlite_temp_master
9954
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
9955
+
9956
+  (0.9ms) CREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id")
9957
+  (0.1ms) SELECT sql
9958
+ FROM sqlite_master
9959
+ WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
9960
+ UNION ALL
9961
+ SELECT sql
9962
+ FROM sqlite_temp_master
9963
+ WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
9964
+
9965
+  (0.1ms)  SELECT sql
9966
+ FROM sqlite_master
9967
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
9968
+ UNION ALL
9969
+ SELECT sql
9970
+ FROM sqlite_temp_master
9971
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
9972
+ 
9973
+  (0.8ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token")
9974
+  (0.9ms) CREATE TABLE "oauth_applications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "secret" varchar NOT NULL, "redirect_uri" text NOT NULL, "created_at" datetime, "updated_at" datetime) 
9975
+  (0.8ms) CREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")
9976
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar NOT NULL, "password_hash" varchar NOT NULL, "name" varchar NOT NULL, "email" varchar NOT NULL, "created_at" datetime, "updated_at" datetime) 
9977
+  (0.9ms) CREATE INDEX "index_users_on_email" ON "users" ("email")
9978
+  (0.1ms)  SELECT sql
9979
+ FROM sqlite_master
9980
+ WHERE name='index_users_on_email' AND type='index'
9981
+ UNION ALL
9982
+ SELECT sql
9983
+ FROM sqlite_temp_master
9984
+ WHERE name='index_users_on_email' AND type='index'
9985
+ 
9986
+  (0.8ms) CREATE INDEX "index_users_on_name" ON "users" ("name")
9987
+  (0.1ms)  SELECT sql
9988
+ FROM sqlite_master
9989
+ WHERE name='index_users_on_name' AND type='index'
9990
+ UNION ALL
9991
+ SELECT sql
9992
+ FROM sqlite_temp_master
9993
+ WHERE name='index_users_on_name' AND type='index'
9994
+ 
9995
+  (0.1ms) SELECT sql
9996
+ FROM sqlite_master
9997
+ WHERE name='index_users_on_email' AND type='index'
9998
+ UNION ALL
9999
+ SELECT sql
10000
+ FROM sqlite_temp_master
10001
+ WHERE name='index_users_on_email' AND type='index'
10002
+
10003
+  (0.7ms) CREATE INDEX "index_users_on_username" ON "users" ("username")
10004
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
10005
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
10006
+  (0.1ms) SELECT version FROM "schema_migrations"
10007
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
10008
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
10009
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10010
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
10011
+  (1.8ms) CREATE TABLE "oauth_access_grants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_owner_id" integer NOT NULL, "application_id" integer NOT NULL, "token" varchar NOT NULL, "expires_in" integer NOT NULL, "redirect_uri" text NOT NULL, "created_at" datetime NOT NULL, "revoked_at" datetime, "scopes" varchar) 
10012
+  (0.1ms) select sqlite_version(*)
10013
+  (0.9ms) CREATE UNIQUE INDEX "index_oauth_access_grants_on_token" ON "oauth_access_grants" ("token")
10014
+  (0.9ms) CREATE TABLE "oauth_access_tokens" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_owner_id" integer, "application_id" integer, "token" varchar NOT NULL, "refresh_token" varchar, "expires_in" integer, "revoked_at" datetime, "created_at" datetime NOT NULL, "scopes" varchar)
10015
+  (0.7ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_refresh_token" ON "oauth_access_tokens" ("refresh_token")
10016
+  (0.1ms) SELECT sql
10017
+ FROM sqlite_master
10018
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
10019
+ UNION ALL
10020
+ SELECT sql
10021
+ FROM sqlite_temp_master
10022
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
10023
+
10024
+  (0.8ms) CREATE INDEX "index_oauth_access_tokens_on_resource_owner_id" ON "oauth_access_tokens" ("resource_owner_id")
10025
+  (0.1ms) SELECT sql
10026
+ FROM sqlite_master
10027
+ WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
10028
+ UNION ALL
10029
+ SELECT sql
10030
+ FROM sqlite_temp_master
10031
+ WHERE name='index_oauth_access_tokens_on_resource_owner_id' AND type='index'
10032
+
10033
+  (0.1ms)  SELECT sql
10034
+ FROM sqlite_master
10035
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
10036
+ UNION ALL
10037
+ SELECT sql
10038
+ FROM sqlite_temp_master
10039
+ WHERE name='index_oauth_access_tokens_on_refresh_token' AND type='index'
10040
+ 
10041
+  (0.8ms) CREATE UNIQUE INDEX "index_oauth_access_tokens_on_token" ON "oauth_access_tokens" ("token")
10042
+  (0.8ms) CREATE TABLE "oauth_applications" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "uid" varchar NOT NULL, "secret" varchar NOT NULL, "redirect_uri" text NOT NULL, "created_at" datetime, "updated_at" datetime) 
10043
+  (0.8ms) CREATE UNIQUE INDEX "index_oauth_applications_on_uid" ON "oauth_applications" ("uid")
10044
+  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar NOT NULL, "password_hash" varchar NOT NULL, "name" varchar NOT NULL, "email" varchar NOT NULL, "created_at" datetime, "updated_at" datetime) 
10045
+  (0.9ms) CREATE INDEX "index_users_on_email" ON "users" ("email")
10046
+  (0.1ms)  SELECT sql
10047
+ FROM sqlite_master
10048
+ WHERE name='index_users_on_email' AND type='index'
10049
+ UNION ALL
10050
+ SELECT sql
10051
+ FROM sqlite_temp_master
10052
+ WHERE name='index_users_on_email' AND type='index'
10053
+ 
10054
+  (1.0ms) CREATE INDEX "index_users_on_name" ON "users" ("name")
10055
+  (0.1ms)  SELECT sql
10056
+ FROM sqlite_master
10057
+ WHERE name='index_users_on_name' AND type='index'
10058
+ UNION ALL
10059
+ SELECT sql
10060
+ FROM sqlite_temp_master
10061
+ WHERE name='index_users_on_name' AND type='index'
10062
+ 
10063
+  (0.1ms) SELECT sql
10064
+ FROM sqlite_master
10065
+ WHERE name='index_users_on_email' AND type='index'
10066
+ UNION ALL
10067
+ SELECT sql
10068
+ FROM sqlite_temp_master
10069
+ WHERE name='index_users_on_email' AND type='index'
10070
+
10071
+  (0.8ms) CREATE INDEX "index_users_on_username" ON "users" ("username")
10072
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
10073
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
10074
+  (0.1ms) SELECT version FROM "schema_migrations"
10075
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
10076
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
10077
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
@@ -18,6 +18,27 @@ module OpenStax
18
18
  expect(controller).to respond_to(:standard_sort)
19
19
  expect(controller).to respond_to(:render_api_errors)
20
20
  end
21
+
22
+ context 'render_api_errors' do
23
+ it 'returns nil if errors is nil' do
24
+ expect(controller).not_to receive(:render)
25
+ expect(controller.render_api_errors(nil)).to be_nil
26
+ end
27
+
28
+ it 'returns nil if errors is empty' do
29
+ expect(controller).not_to receive(:render)
30
+ expect(controller.render_api_errors([])).to be_nil
31
+ expect(controller.render_api_errors({})).to be_nil
32
+ end
33
+
34
+ it 'returns the rendered response if there are errors' do
35
+ expect(controller).to receive(:render) do |options|
36
+ expect(options[:json]).to eq({ status: 422, errors: [{code: :error}] })
37
+ expect(options[:status]).to eq :unprocessable_entity
38
+ end
39
+ controller.render_api_errors(code: :error)
40
+ end
41
+ end
21
42
  end
22
43
  end
23
44
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstax_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.0.0
4
+ version: 8.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dante Soares
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-08-26 00:00:00.000000000 Z
12
+ date: 2017-01-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails