rails-identity 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +37 -0
  4. data/app/assets/javascripts/rails_identity/application.js +13 -0
  5. data/app/assets/javascripts/rails_identity/sessions.js +2 -0
  6. data/app/assets/javascripts/rails_identity/users.js +2 -0
  7. data/app/assets/stylesheets/rails_identity/application.css +15 -0
  8. data/app/assets/stylesheets/rails_identity/sessions.css +4 -0
  9. data/app/assets/stylesheets/rails_identity/users.css +4 -0
  10. data/app/controllers/rails_identity/application_controller.rb +200 -0
  11. data/app/controllers/rails_identity/sessions_controller.rb +108 -0
  12. data/app/controllers/rails_identity/users_controller.rb +168 -0
  13. data/app/helpers/rails_identity/application_helper.rb +19 -0
  14. data/app/helpers/rails_identity/sessions_helper.rb +4 -0
  15. data/app/helpers/rails_identity/users_helper.rb +4 -0
  16. data/app/jobs/rails_identity/sessions_cleanup_job.rb +13 -0
  17. data/app/mailers/application_mailer.rb +4 -0
  18. data/app/mailers/rails_identity/user_mailer.rb +14 -0
  19. data/app/models/rails_identity/session.rb +44 -0
  20. data/app/models/rails_identity/user.rb +48 -0
  21. data/app/views/layouts/mailer.html.erb +5 -0
  22. data/app/views/layouts/mailer.text.erb +1 -0
  23. data/app/views/layouts/rails_identity/application.html.erb +14 -0
  24. data/app/views/rails_identity/user_mailer/email_verification.html.erb +12 -0
  25. data/app/views/rails_identity/user_mailer/email_verification.text.erb +13 -0
  26. data/app/views/rails_identity/user_mailer/password_reset.html.erb +14 -0
  27. data/app/views/rails_identity/user_mailer/password_reset.text.erb +15 -0
  28. data/config/routes.rb +7 -0
  29. data/db/migrate/20160323210013_create_rails_identity_users.rb +13 -0
  30. data/db/migrate/20160323210017_create_rails_identity_sessions.rb +12 -0
  31. data/db/migrate/20160401223433_add_reset_token_to_users.rb +5 -0
  32. data/db/migrate/20160411215917_add_verification_token_to_users.rb +10 -0
  33. data/db/migrate/20160414145851_add_api_key_to_users.rb +5 -0
  34. data/lib/rails_identity/engine.rb +9 -0
  35. data/lib/rails_identity/version.rb +3 -0
  36. data/lib/rails_identity.rb +52 -0
  37. data/lib/tasks/rails_identity_tasks.rake +4 -0
  38. data/test/controllers/rails_identity/sessions_controller_test.rb +192 -0
  39. data/test/controllers/rails_identity/users_controller_test.rb +253 -0
  40. data/test/dummy/README.rdoc +28 -0
  41. data/test/dummy/Rakefile +6 -0
  42. data/test/dummy/app/assets/javascripts/application.js +13 -0
  43. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  44. data/test/dummy/app/controllers/application_controller.rb +5 -0
  45. data/test/dummy/app/helpers/application_helper.rb +2 -0
  46. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  47. data/test/dummy/bin/bundle +3 -0
  48. data/test/dummy/bin/rails +4 -0
  49. data/test/dummy/bin/rake +4 -0
  50. data/test/dummy/bin/setup +29 -0
  51. data/test/dummy/config/application.rb +26 -0
  52. data/test/dummy/config/boot.rb +5 -0
  53. data/test/dummy/config/database.yml +25 -0
  54. data/test/dummy/config/environment.rb +5 -0
  55. data/test/dummy/config/environments/development.rb +41 -0
  56. data/test/dummy/config/environments/production.rb +79 -0
  57. data/test/dummy/config/environments/test.rb +42 -0
  58. data/test/dummy/config/initializers/assets.rb +11 -0
  59. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  60. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  61. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  62. data/test/dummy/config/initializers/inflections.rb +16 -0
  63. data/test/dummy/config/initializers/mime_types.rb +4 -0
  64. data/test/dummy/config/initializers/session_store.rb +3 -0
  65. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  66. data/test/dummy/config/locales/en.yml +23 -0
  67. data/test/dummy/config/routes.rb +4 -0
  68. data/test/dummy/config/secrets.yml +22 -0
  69. data/test/dummy/config.ru +4 -0
  70. data/test/dummy/db/development.sqlite3 +0 -0
  71. data/test/dummy/db/schema.rb +42 -0
  72. data/test/dummy/db/test.sqlite3 +0 -0
  73. data/test/dummy/log/development.log +215 -0
  74. data/test/dummy/log/test.log +280622 -0
  75. data/test/dummy/public/404.html +67 -0
  76. data/test/dummy/public/422.html +67 -0
  77. data/test/dummy/public/500.html +66 -0
  78. data/test/dummy/public/favicon.ico +0 -0
  79. data/test/dummy/tmp/cache/A5C/3F0/rails-identity-0.0.1-session-1 +0 -0
  80. data/test/fixtures/rails_identity/sessions.yml +36 -0
  81. data/test/fixtures/rails_identity/users.yml +24 -0
  82. data/test/integration/navigation_test.rb +10 -0
  83. data/test/jobs/rails_identity/sessions_cleanup_job_test.rb +9 -0
  84. data/test/mailers/previews/rails_identity/user_mailer_preview.rb +6 -0
  85. data/test/mailers/rails_identity/user_mailer_test.rb +9 -0
  86. data/test/models/rails_identity/session_test.rb +26 -0
  87. data/test/models/rails_identity/user_test.rb +54 -0
  88. data/test/rails_identity_test.rb +7 -0
  89. data/test/test_helper.rb +33 -0
  90. metadata +297 -0
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.session_store :cookie_store, key: '_dummy_session'
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -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,4 @@
1
+ Rails.application.routes.draw do
2
+
3
+ mount RailsIdentity::Engine => "/rails_identity"
4
+ 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:
14
+ secret_key_base: 8538d3d8bbefa3d16996eff725c47a51402e839a3550c776dd83f5a72e86eb1083b6691bbe7f0c008bcd575fee491f0d10ecf61ebe1e1c494f0c7f537c6fca17
15
+
16
+ test:
17
+ secret_key_base: 41f46b0a1da58b59e9435b49b3a87b499ce3ec94f341c9c0ef136198ad12a525286f1211bb8c66a8d03ea798ef790d9e3449e2a6d3091dd086551de9c4e0d405
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Rails.application
Binary file
@@ -0,0 +1,42 @@
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: 20160411215917) do
15
+
16
+ create_table "rails_identity_sessions", force: :cascade do |t|
17
+ t.string "uuid"
18
+ t.string "user_uuid", null: false
19
+ t.string "token", null: false
20
+ t.string "secret", null: false
21
+ t.string "metadata"
22
+ t.datetime "created_at", null: false
23
+ t.datetime "updated_at", null: false
24
+ end
25
+
26
+ create_table "rails_identity_users", force: :cascade do |t|
27
+ t.string "uuid"
28
+ t.string "username"
29
+ t.string "password_digest"
30
+ t.integer "role"
31
+ t.string "metadata"
32
+ t.datetime "deleted_at"
33
+ t.datetime "created_at", null: false
34
+ t.datetime "updated_at", null: false
35
+ t.string "reset_token"
36
+ t.string "verification_token"
37
+ t.boolean "verified", default: false
38
+ end
39
+
40
+ add_index "rails_identity_users", ["deleted_at"], name: "index_rails_identity_users_on_deleted_at"
41
+
42
+ end
Binary file
@@ -0,0 +1,215 @@
1
+  (1.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2
+  (0.1ms) select sqlite_version(*)
3
+  (1.0ms) 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 CreateRailsIdentityUsers (20160323210013)
6
+  (0.1ms) begin transaction
7
+  (0.4ms) CREATE TABLE "rails_identity_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar, "username" varchar, "password_digest" varchar, "role" integer, "metadata" varchar, "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
8
+  (0.1ms) CREATE INDEX "index_rails_identity_users_on_deleted_at" ON "rails_identity_users" ("deleted_at")
9
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160323210013"]]
10
+  (0.9ms) commit transaction
11
+ Migrating to CreateRailsIdentitySessions (20160323210017)
12
+  (0.1ms) begin transaction
13
+  (0.2ms) CREATE TABLE "rails_identity_sessions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar, "user_uuid" varchar NOT NULL, "token" varchar NOT NULL, "secret" varchar NOT NULL, "metadata" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
14
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160323210017"]]
15
+  (0.7ms) commit transaction
16
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
17
+  (0.1ms)  SELECT sql
18
+ FROM sqlite_master
19
+ WHERE name='index_rails_identity_users_on_deleted_at' AND type='index'
20
+ UNION ALL
21
+ SELECT sql
22
+ FROM sqlite_temp_master
23
+ WHERE name='index_rails_identity_users_on_deleted_at' AND type='index'
24
+ 
25
+  (1.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
26
+  (0.1ms) select sqlite_version(*)
27
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
28
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
29
+ Migrating to CreateRailsIdentityUsers (20160323210013)
30
+  (0.1ms) begin transaction
31
+  (0.4ms) CREATE TABLE "rails_identity_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar, "username" varchar, "password_digest" varchar, "role" integer, "metadata" varchar, "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
32
+  (0.1ms) CREATE INDEX "index_rails_identity_users_on_deleted_at" ON "rails_identity_users" ("deleted_at")
33
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160323210013"]]
34
+  (0.7ms) commit transaction
35
+ Migrating to CreateRailsIdentitySessions (20160323210017)
36
+  (0.0ms) begin transaction
37
+  (0.2ms) CREATE TABLE "rails_identity_sessions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar, "user_uuid" varchar NOT NULL, "token" varchar NOT NULL, "secret" varchar NOT NULL, "metadata" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
38
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160323210017"]]
39
+  (0.7ms) commit transaction
40
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
41
+  (0.1ms)  SELECT sql
42
+ FROM sqlite_master
43
+ WHERE name='index_rails_identity_users_on_deleted_at' AND type='index'
44
+ UNION ALL
45
+ SELECT sql
46
+ FROM sqlite_temp_master
47
+ WHERE name='index_rails_identity_users_on_deleted_at' AND type='index'
48
+ 
49
+
50
+
51
+ Started GET "/sessions" for ::1 at 2016-03-26 13:41:47 -0500
52
+
53
+ ActionController::RoutingError (No route matches [GET] "/sessions"):
54
+ actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
55
+ actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
56
+ railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app'
57
+ railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call'
58
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
59
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged'
60
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged'
61
+ railties (4.2.6) lib/rails/rack/logger.rb:20:in `call'
62
+ actionpack (4.2.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
63
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
64
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
65
+ activesupport (4.2.6) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
66
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
67
+ actionpack (4.2.6) lib/action_dispatch/middleware/static.rb:120:in `call'
68
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
69
+ railties (4.2.6) lib/rails/engine.rb:518:in `call'
70
+ railties (4.2.6) lib/rails/application.rb:165:in `call'
71
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
72
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
73
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
74
+ /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
75
+ /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
76
+ /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
77
+
78
+
79
+ Rendered /Users/davidan/Projects/Personal/rails-identity/vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.2ms)
80
+ Rendered /Users/davidan/Projects/Personal/rails-identity/vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.0ms)
81
+ Rendered /Users/davidan/Projects/Personal/rails-identity/vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.9ms)
82
+ Rendered /Users/davidan/Projects/Personal/rails-identity/vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (8.6ms)
83
+ Rendered /Users/davidan/Projects/Personal/rails-identity/vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (19.0ms)
84
+ Rendered /Users/davidan/Projects/Personal/rails-identity/vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (61.7ms)
85
+
86
+
87
+ Started GET "/sessions/" for ::1 at 2016-03-26 13:41:53 -0500
88
+
89
+ ActionController::RoutingError (No route matches [GET] "/sessions"):
90
+ actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
91
+ actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
92
+ railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app'
93
+ railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call'
94
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'
95
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged'
96
+ activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged'
97
+ railties (4.2.6) lib/rails/rack/logger.rb:20:in `call'
98
+ actionpack (4.2.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'
99
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
100
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
101
+ activesupport (4.2.6) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
102
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
103
+ actionpack (4.2.6) lib/action_dispatch/middleware/static.rb:120:in `call'
104
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
105
+ railties (4.2.6) lib/rails/engine.rb:518:in `call'
106
+ railties (4.2.6) lib/rails/application.rb:165:in `call'
107
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
108
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
109
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
110
+ /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
111
+ /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
112
+ /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
113
+
114
+
115
+ Rendered /Users/davidan/Projects/Personal/rails-identity/vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.8ms)
116
+ Rendered /Users/davidan/Projects/Personal/rails-identity/vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.4ms)
117
+ Rendered /Users/davidan/Projects/Personal/rails-identity/vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.6ms)
118
+ Rendered /Users/davidan/Projects/Personal/rails-identity/vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (0.8ms)
119
+ Rendered /Users/davidan/Projects/Personal/rails-identity/vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms)
120
+ Rendered /Users/davidan/Projects/Personal/rails-identity/vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (19.5ms)
121
+
122
+
123
+ Started GET "/rails_identity/sessions" for ::1 at 2016-03-26 13:42:25 -0500
124
+ Processing by RailsIdentity::SessionsController#index as */*
125
+ Invalid token
126
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
127
+
128
+
129
+ Started OPTIONS "/rails_identity/sessions" for ::1 at 2016-03-26 13:42:31 -0500
130
+ Processing by RailsIdentity::SessionsController#options as */*
131
+ Rendered text template (0.0ms)
132
+ Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)
133
+
134
+
135
+ Started OPTIONS "/rails_identity/sessions/asfjlkasdfj" for ::1 at 2016-03-26 13:43:03 -0500
136
+ Processing by RailsIdentity::SessionsController#options as */*
137
+ Parameters: {"id"=>"asfjlkasdfj"}
138
+ Rendered text template (0.0ms)
139
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
140
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
141
+  (0.1ms) select sqlite_version(*)
142
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
143
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
144
+ Migrating to CreateRailsIdentityUsers (20160323210013)
145
+  (0.1ms) begin transaction
146
+  (0.3ms) CREATE TABLE "rails_identity_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar, "username" varchar, "password_digest" varchar, "role" integer, "metadata" varchar, "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
147
+  (0.1ms) CREATE INDEX "index_rails_identity_users_on_deleted_at" ON "rails_identity_users" ("deleted_at")
148
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160323210013"]]
149
+  (0.7ms) commit transaction
150
+ Migrating to CreateRailsIdentitySessions (20160323210017)
151
+  (0.0ms) begin transaction
152
+  (0.2ms) CREATE TABLE "rails_identity_sessions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar, "user_uuid" varchar NOT NULL, "token" varchar NOT NULL, "secret" varchar NOT NULL, "metadata" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
153
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160323210017"]]
154
+  (0.8ms) commit transaction
155
+ Migrating to AddResetTokenToUsers (20160401223433)
156
+  (0.0ms) begin transaction
157
+  (0.2ms) ALTER TABLE "users" ADD "reset_token" varchar
158
+  (0.0ms) rollback transaction
159
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
160
+ Migrating to AddResetTokenToUsers (20160401223433)
161
+  (0.1ms) begin transaction
162
+  (0.5ms) ALTER TABLE "rails_identity_users" ADD "reset_token" varchar
163
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160401223433"]]
164
+  (0.8ms) commit transaction
165
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
166
+  (0.1ms)  SELECT sql
167
+ FROM sqlite_master
168
+ WHERE name='index_rails_identity_users_on_deleted_at' AND type='index'
169
+ UNION ALL
170
+ SELECT sql
171
+ FROM sqlite_temp_master
172
+ WHERE name='index_rails_identity_users_on_deleted_at' AND type='index'
173
+ 
174
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
175
+  (0.1ms) select sqlite_version(*)
176
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
177
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
178
+ Migrating to CreateRailsIdentityUsers (20160323210013)
179
+  (0.1ms) begin transaction
180
+  (0.4ms) CREATE TABLE "rails_identity_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar, "username" varchar, "password_digest" varchar, "role" integer, "metadata" varchar, "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
181
+  (0.1ms) CREATE INDEX "index_rails_identity_users_on_deleted_at" ON "rails_identity_users" ("deleted_at")
182
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160323210013"]]
183
+  (0.7ms) commit transaction
184
+ Migrating to CreateRailsIdentitySessions (20160323210017)
185
+  (0.0ms) begin transaction
186
+  (0.2ms) CREATE TABLE "rails_identity_sessions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar, "user_uuid" varchar NOT NULL, "token" varchar NOT NULL, "secret" varchar NOT NULL, "metadata" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
187
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160323210017"]]
188
+  (0.7ms) commit transaction
189
+ Migrating to AddResetTokenToUsers (20160401223433)
190
+  (0.0ms) begin transaction
191
+  (0.3ms) ALTER TABLE "rails_identity_users" ADD "reset_token" varchar
192
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160401223433"]]
193
+  (0.7ms) commit transaction
194
+ Migrating to AddVerificationTokenToUsers (20160411215917)
195
+  (0.0ms) begin transaction
196
+  (0.3ms) ALTER TABLE "rails_identity_users" ADD "verification_token" varchar
197
+  (0.1ms) ALTER TABLE "rails_identity_users" ADD "verified" boolean DEFAULT 'f'
198
+  (0.6ms) rollback transaction
199
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
200
+ Migrating to AddVerificationTokenToUsers (20160411215917)
201
+  (0.1ms) begin transaction
202
+  (0.5ms) ALTER TABLE "rails_identity_users" ADD "verification_token" varchar
203
+  (0.2ms) ALTER TABLE "rails_identity_users" ADD "verified" boolean DEFAULT 'f'
204
+ RailsIdentity::User Load (0.1ms) SELECT "rails_identity_users".* FROM "rails_identity_users" WHERE "rails_identity_users"."deleted_at" IS NULL
205
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160411215917"]]
206
+  (0.8ms) commit transaction
207
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
208
+  (0.1ms)  SELECT sql
209
+ FROM sqlite_master
210
+ WHERE name='index_rails_identity_users_on_deleted_at' AND type='index'
211
+ UNION ALL
212
+ SELECT sql
213
+ FROM sqlite_temp_master
214
+ WHERE name='index_rails_identity_users_on_deleted_at' AND type='index'
215
+