rails-identity 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +37 -0
- data/app/assets/javascripts/rails_identity/application.js +13 -0
- data/app/assets/javascripts/rails_identity/sessions.js +2 -0
- data/app/assets/javascripts/rails_identity/users.js +2 -0
- data/app/assets/stylesheets/rails_identity/application.css +15 -0
- data/app/assets/stylesheets/rails_identity/sessions.css +4 -0
- data/app/assets/stylesheets/rails_identity/users.css +4 -0
- data/app/controllers/rails_identity/application_controller.rb +200 -0
- data/app/controllers/rails_identity/sessions_controller.rb +108 -0
- data/app/controllers/rails_identity/users_controller.rb +168 -0
- data/app/helpers/rails_identity/application_helper.rb +19 -0
- data/app/helpers/rails_identity/sessions_helper.rb +4 -0
- data/app/helpers/rails_identity/users_helper.rb +4 -0
- data/app/jobs/rails_identity/sessions_cleanup_job.rb +13 -0
- data/app/mailers/application_mailer.rb +4 -0
- data/app/mailers/rails_identity/user_mailer.rb +14 -0
- data/app/models/rails_identity/session.rb +44 -0
- data/app/models/rails_identity/user.rb +48 -0
- data/app/views/layouts/mailer.html.erb +5 -0
- data/app/views/layouts/mailer.text.erb +1 -0
- data/app/views/layouts/rails_identity/application.html.erb +14 -0
- data/app/views/rails_identity/user_mailer/email_verification.html.erb +12 -0
- data/app/views/rails_identity/user_mailer/email_verification.text.erb +13 -0
- data/app/views/rails_identity/user_mailer/password_reset.html.erb +14 -0
- data/app/views/rails_identity/user_mailer/password_reset.text.erb +15 -0
- data/config/routes.rb +7 -0
- data/db/migrate/20160323210013_create_rails_identity_users.rb +13 -0
- data/db/migrate/20160323210017_create_rails_identity_sessions.rb +12 -0
- data/db/migrate/20160401223433_add_reset_token_to_users.rb +5 -0
- data/db/migrate/20160411215917_add_verification_token_to_users.rb +10 -0
- data/db/migrate/20160414145851_add_api_key_to_users.rb +5 -0
- data/lib/rails_identity/engine.rb +9 -0
- data/lib/rails_identity/version.rb +3 -0
- data/lib/rails_identity.rb +52 -0
- data/lib/tasks/rails_identity_tasks.rake +4 -0
- data/test/controllers/rails_identity/sessions_controller_test.rb +192 -0
- data/test/controllers/rails_identity/users_controller_test.rb +253 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +29 -0
- data/test/dummy/config/application.rb +26 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +41 -0
- data/test/dummy/config/environments/production.rb +79 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/schema.rb +42 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +215 -0
- data/test/dummy/log/test.log +280622 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/tmp/cache/A5C/3F0/rails-identity-0.0.1-session-1 +0 -0
- data/test/fixtures/rails_identity/sessions.yml +36 -0
- data/test/fixtures/rails_identity/users.yml +24 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/jobs/rails_identity/sessions_cleanup_job_test.rb +9 -0
- data/test/mailers/previews/rails_identity/user_mailer_preview.rb +6 -0
- data/test/mailers/rails_identity/user_mailer_test.rb +9 -0
- data/test/models/rails_identity/session_test.rb +26 -0
- data/test/models/rails_identity/user_test.rb +54 -0
- data/test/rails_identity_test.rb +7 -0
- data/test/test_helper.rb +33 -0
- metadata +297 -0
@@ -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,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"] %>
|
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
|
+
[1m[36m (1.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
3
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5
|
+
Migrating to CreateRailsIdentityUsers (20160323210013)
|
6
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_rails_identity_users_on_deleted_at" ON "rails_identity_users" ("deleted_at")[0m
|
9
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160323210013"]]
|
10
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
11
|
+
Migrating to CreateRailsIdentitySessions (20160323210017)
|
12
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13
|
+
[1m[36m (0.2ms)[0m [1mCREATE 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) [0m
|
14
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160323210017"]]
|
15
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
16
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
17
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
25
|
+
[1m[36m (1.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
26
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
27
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
28
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
29
|
+
Migrating to CreateRailsIdentityUsers (20160323210013)
|
30
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
31
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_rails_identity_users_on_deleted_at" ON "rails_identity_users" ("deleted_at")[0m
|
33
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160323210013"]]
|
34
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
35
|
+
Migrating to CreateRailsIdentitySessions (20160323210017)
|
36
|
+
[1m[35m (0.0ms)[0m begin transaction
|
37
|
+
[1m[36m (0.2ms)[0m [1mCREATE 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) [0m
|
38
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160323210017"]]
|
39
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
40
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
41
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
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
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
141
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
142
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
143
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
144
|
+
Migrating to CreateRailsIdentityUsers (20160323210013)
|
145
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
146
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_rails_identity_users_on_deleted_at" ON "rails_identity_users" ("deleted_at")[0m
|
148
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160323210013"]]
|
149
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
150
|
+
Migrating to CreateRailsIdentitySessions (20160323210017)
|
151
|
+
[1m[35m (0.0ms)[0m begin transaction
|
152
|
+
[1m[36m (0.2ms)[0m [1mCREATE 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) [0m
|
153
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160323210017"]]
|
154
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
155
|
+
Migrating to AddResetTokenToUsers (20160401223433)
|
156
|
+
[1m[35m (0.0ms)[0m begin transaction
|
157
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "users" ADD "reset_token" varchar[0m
|
158
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
159
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
160
|
+
Migrating to AddResetTokenToUsers (20160401223433)
|
161
|
+
[1m[35m (0.1ms)[0m begin transaction
|
162
|
+
[1m[36m (0.5ms)[0m [1mALTER TABLE "rails_identity_users" ADD "reset_token" varchar[0m
|
163
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160401223433"]]
|
164
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
165
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
166
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
174
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
175
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
176
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
177
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
178
|
+
Migrating to CreateRailsIdentityUsers (20160323210013)
|
179
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
180
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_rails_identity_users_on_deleted_at" ON "rails_identity_users" ("deleted_at")[0m
|
182
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160323210013"]]
|
183
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
184
|
+
Migrating to CreateRailsIdentitySessions (20160323210017)
|
185
|
+
[1m[35m (0.0ms)[0m begin transaction
|
186
|
+
[1m[36m (0.2ms)[0m [1mCREATE 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) [0m
|
187
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160323210017"]]
|
188
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
189
|
+
Migrating to AddResetTokenToUsers (20160401223433)
|
190
|
+
[1m[35m (0.0ms)[0m begin transaction
|
191
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "rails_identity_users" ADD "reset_token" varchar[0m
|
192
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160401223433"]]
|
193
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
194
|
+
Migrating to AddVerificationTokenToUsers (20160411215917)
|
195
|
+
[1m[35m (0.0ms)[0m begin transaction
|
196
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "rails_identity_users" ADD "verification_token" varchar[0m
|
197
|
+
[1m[35m (0.1ms)[0m ALTER TABLE "rails_identity_users" ADD "verified" boolean DEFAULT 'f'
|
198
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
199
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
200
|
+
Migrating to AddVerificationTokenToUsers (20160411215917)
|
201
|
+
[1m[35m (0.1ms)[0m begin transaction
|
202
|
+
[1m[36m (0.5ms)[0m [1mALTER TABLE "rails_identity_users" ADD "verification_token" varchar[0m
|
203
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "rails_identity_users" ADD "verified" boolean DEFAULT 'f'
|
204
|
+
[1m[36mRailsIdentity::User Load (0.1ms)[0m [1mSELECT "rails_identity_users".* FROM "rails_identity_users" WHERE "rails_identity_users"."deleted_at" IS NULL[0m
|
205
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160411215917"]]
|
206
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
207
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
208
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|