nyauth 0.6.2 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -0
- data/app/controllers/concerns/nyauth/client_concern.rb +1 -0
- data/app/controllers/concerns/nyauth/session_concern.rb +6 -7
- data/app/controllers/nyauth/base_controller.rb +1 -1
- data/app/controllers/nyauth/passwords_controller.rb +1 -0
- data/app/helpers/nyauth/application_helper.rb +3 -3
- data/app/views/layouts/nyauth/base.html.erb +18 -0
- data/lib/generators/nyauth/views_generator.rb +1 -0
- data/lib/nyauth/engine.rb +0 -1
- data/lib/nyauth/version.rb +1 -1
- data/spec/dummy/app/views/layouts/nyauth/base.html.erb +27 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +294 -0
- data/spec/dummy/log/test.log +19906 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/0AWhJVsvbBJ7AYsQOdeszwX0r8EYUsLI-TdEoXooEiU.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/0FM3SWeCI4Oi5LiwzwOUyBmGt2gTYa5t6pQhj3BUd44.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/0FNbCt5AIaVZJMMrIgqoOYWUQuJaCklpTcmG9qfV_To.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/2Bw1g-qty-VZ1rpU3goctGGmKNhK9sAjr8o-V1zEQ4Q.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/2NBqGhntP-vkXcqELAsDTzmnheGw93xJN_VGA0pgaRE.cache +2 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +2 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/6uBj736Z-58LtocrFKZzz1uajY_Qstrhw74pYT_7pYs.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/8LrPqRwiyYmz_nQwqetts1NQav6TpjysEihoYs4rmUU.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/8ZAzeQyvCKjeGynGYasYUe63iBbXWOVrdvfYjJZW0Ag.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/9cX46CMJX34PwdWf-3bhmb2MWLXv-AvRyCcAxzR1nts.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/CNXGLOU1u3FFzGFDMg_4iNcdCDd2iAmoOaiRROni8Tk.cache +2 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/JxXbJi3TlIsr7SQgg5gjpneDczsdO_61PF8VDHMFKnY.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/M7oa-ssP0ThBOv3o2FcsdNgXY3vxnpfs-rW3tIOkwkU.cache +2 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +3 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/P-tRtEJV1hmm3XX_s2vzlv7IJIreLP2uLe1efVaBG_U.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/PzgqYXi74GpSYH3ITrTcSekNeLaMg0lwZmmGl7pgVKc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/R-7n9gCGLZNfO_G1fkWy8NVWfz9ujBIZbalZ459zinE.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/TA-AV2GWUU1Auzz1rvQ4P-Nj0W5noq_k16mU7em555A.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/WI0rScq4mjMPfUxQAE2IRkoyOQ4bKZMJpzKUSRYB02c.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/cWck8-Qn-uyFSH6bSSy7_WAg0GwCPplw6v6aPo4MErM.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/e04WqbGeGkl5YDRLb2aAhsmEMX8R5KBGDRY18mXYt10.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/jR95W7cPuwSgjFdmxZItZ_zI5Qxlv9P32kWThGArg4o.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/oSl3Gtq7JNslsiewWXls1TEn9LQquDmmnRMx2qqr7OE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/q70-CclrhEXo50ncdKKzHoR3J7t9X5UMS4mKYIwtu2M.cache +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/qqF6JapxqwrrevcaGIMpUVdokC81Ba5WqzbUKMFZ5ZQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/xNxWjlD2nQ_nHrl6FvGZ5mhn4F5A5XJAlz029Se49y4.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-4qrDnXnR_pbziS1hESm-dFiw4z8STO3F5jDY2Dof48.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/0AWhJVsvbBJ7AYsQOdeszwX0r8EYUsLI-TdEoXooEiU.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/2PF9ETuL8pb0m6Z85iXuHRxblp6ZRN8d3r-6FZzrPFQ.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/32tM06w1B-F8-loEa4MszRHJ7C1nvYTtymKnswm3P8A.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3QNY3YfGJCFjyeyJ2kAnfDPp7NeHJheTG7x_Gfc6dB8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4NR1wYbIwZm9OYpxxxmVaixkFa7sTMzlWYaC1De98ek.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/9cX46CMJX34PwdWf-3bhmb2MWLXv-AvRyCcAxzR1nts.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/CNXGLOU1u3FFzGFDMg_4iNcdCDd2iAmoOaiRROni8Tk.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/CqVOmJrrmL5OyHuPvAnzMW7_qI7B6ZjAnRhKfYVAcBI.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ESia7kFxwW-gfSxuZJYFKw7ooVxP3ouqlm0WKpn-cIs.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/NJzkUidXfvM3WTqpWBCg67ADrqCpFix-U5OORkMUeoM.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/TA-AV2GWUU1Auzz1rvQ4P-Nj0W5noq_k16mU7em555A.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ctUXkHPESbkQeCYFr8hl8yLE3kn8jmcUb1NOiOdBSvo.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/e04WqbGeGkl5YDRLb2aAhsmEMX8R5KBGDRY18mXYt10.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/fiLTh3BLPt8IVe66lHDqAwycPFB6ExP1gpXT3eWb9i8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/h7MY9FBilZ_gxsOc9cHLqH7vxICQOhLd5TMKmZuzI7c.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jlNGBh1Z1I9qDwcgvcRkqdKvFBKENBlfE3S-7DgqYQo.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/m0W9mpBvLJ9B7BBUEwznJdArxMDOwdNi7P-sGaTEh4U.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/oSl3Gtq7JNslsiewWXls1TEn9LQquDmmnRMx2qqr7OE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/rsE5dQcOjn63R-ZIq1iyLKjPfyQsvAzRbAYTmWH5erE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/tCKRW3hCMRwAupohHKhqPwNAqRn4TUj43zKNA-itJvQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uWaD5Vs5btQ3NjdrC2Kvkmzr4qesvLCzcQZ3HohPfGI.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/x0QxvzgEOluqS41GBK4T4CWRknwR0jTO4x5SRYo-IAM.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xNxWjlD2nQ_nHrl6FvGZ5mhn4F5A5XJAlz029Se49y4.cache +2 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/0FM3SWeCI4Oi5LiwzwOUyBmGt2gTYa5t6pQhj3BUd44.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/8ZAzeQyvCKjeGynGYasYUe63iBbXWOVrdvfYjJZW0Ag.cache +1 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/v3.0/cWck8-Qn-uyFSH6bSSy7_WAg0GwCPplw6v6aPo4MErM.cache +1 -0
- data/spec/dummy/tmp/capybara/capybara-201602151820216634758582.html +18 -0
- data/spec/factories/users.rb +1 -1
- data/spec/helpers/nyauth/application_helper_spec.rb +4 -4
- data/spec/lib/generators/nyauth/tmp/app/views/layouts/nyauth/base.html.erb +18 -0
- data/spec/lib/generators/nyauth/tmp/app/views/layouts/nyauth/mailer.html.erb +1 -0
- data/spec/lib/generators/nyauth/tmp/app/views/layouts/nyauth/mailer.text.erb +1 -0
- data/spec/lib/generators/nyauth/views_generator_spec.rb +3 -0
- data/spec/rails_helper.rb +0 -2
- data/spec/support/controllers/nyauth/session_concern.rb +6 -6
- metadata +126 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6eb0f450c4f26f25159c12c32d0c13caefb0982
|
4
|
+
data.tar.gz: e393da8db0e0fc91a59a5a1e80d91943e801160b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 191a1a5e3900a560fc841f472a48c471779f8aa6c29555b09faba4a791e6e6a4edd609fcf2d154f89b1fda48ef050ca2c3f15bccec8fdce035accc07b5962577
|
7
|
+
data.tar.gz: 7bfa56e198e0cb751c5626464e37a68073b9a87c915fbec010f17de9859de71d6637fa510ab5dc13bc601798dfc68d1a9010fdcec18327d1247bd6fc0ea49ebd
|
data/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Nyauth
|
2
2
|
|
3
|
+
[![Code Climate](https://codeclimate.com/github/ppworks/nyauth/badges/gpa.svg)](https://codeclimate.com/github/ppworks/nyauth)
|
4
|
+
[![Build Status](https://travis-ci.org/ppworks/nyauth.svg?branch=master)](https://travis-ci.org/ppworks/nyauth)
|
5
|
+
|
3
6
|
Simple & modulable authentication gem
|
4
7
|
|
5
8
|
[CHANGE LOG](https://github.com/ppworks/nyauth/blob/master/CHANGELOG.md)
|
@@ -10,9 +13,22 @@ Simple & modulable authentication gem
|
|
10
13
|
class ApplicationController < ActionController::Base
|
11
14
|
include Nyauth::ControllerConcern
|
12
15
|
before_action -> { require_authentication! as: nyauth_client_name }
|
16
|
+
helper_method :current_user
|
17
|
+
|
18
|
+
private
|
19
|
+
|
20
|
+
def current_user
|
21
|
+
current_authenticated(as: :user)
|
22
|
+
end
|
13
23
|
end
|
14
24
|
```
|
15
25
|
|
26
|
+
For the current signed-in user, this helper is available:
|
27
|
+
|
28
|
+
```ruby
|
29
|
+
current_user
|
30
|
+
```
|
31
|
+
|
16
32
|
### migration
|
17
33
|
|
18
34
|
```ruby
|
@@ -3,12 +3,13 @@ module Nyauth
|
|
3
3
|
extend ActiveSupport::Concern
|
4
4
|
|
5
5
|
included do |base|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
end
|
6
|
+
next unless base.ancestors.include?(ActionController::Base)
|
7
|
+
helper_method :signed_in?, :current_authenticated
|
8
|
+
class_attribute :allow_actions
|
10
9
|
end
|
11
10
|
|
11
|
+
private
|
12
|
+
|
12
13
|
# ex.)
|
13
14
|
# sign_in(client)
|
14
15
|
def sign_in(client)
|
@@ -40,7 +41,7 @@ module Nyauth
|
|
40
41
|
def require_authentication!(options = {})
|
41
42
|
options.reverse_merge!(as: :user)
|
42
43
|
return if self.class.allow_actions == :all
|
43
|
-
return if self.class.allow_actions.present? &&
|
44
|
+
return if self.class.allow_actions.present? && params[:action].to_sym.in?(self.class.allow_actions)
|
44
45
|
|
45
46
|
unless signed_in?(options)
|
46
47
|
session["#{options[:as]}_return_to"] = request.url if request.get?
|
@@ -62,8 +63,6 @@ module Nyauth
|
|
62
63
|
end
|
63
64
|
end
|
64
65
|
|
65
|
-
private
|
66
|
-
|
67
66
|
def nyauth_nyan
|
68
67
|
request.env['nyauth']
|
69
68
|
end
|
@@ -8,6 +8,7 @@ module Nyauth
|
|
8
8
|
|
9
9
|
def update
|
10
10
|
@client.attributes = client_params
|
11
|
+
@client.password_digest_will_change! # HACK for Rails5beta2 https://github.com/rails/rails/issues/23645
|
11
12
|
@client.save(context: :update_password)
|
12
13
|
respond_with(@client, location: Nyauth.configuration.redirect_path_after_update_password.call(nyauth_client_name) || main_app.root_path)
|
13
14
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Nyauth
|
2
2
|
module ApplicationHelper
|
3
|
-
def method_missing
|
3
|
+
def method_missing(method, *args, &block)
|
4
4
|
if method =~ /(.+)_path_for\z/
|
5
5
|
detect_url_helper($1, *args)
|
6
6
|
elsif method =~ /(_url|_path)\z/
|
@@ -25,7 +25,7 @@ module Nyauth
|
|
25
25
|
|
26
26
|
def detect_url_helper_for_nyauth(feature, *args)
|
27
27
|
path = @__candidates.grep(/\A#{feature}_path\z/).first
|
28
|
-
return
|
28
|
+
return '' unless path
|
29
29
|
|
30
30
|
nyauth.__send__(path, *args)
|
31
31
|
end
|
@@ -37,7 +37,7 @@ module Nyauth
|
|
37
37
|
path = @__candidates.grep(/\A#{nyauth_client_name}_#{feature}_path\z/).first
|
38
38
|
end
|
39
39
|
|
40
|
-
return
|
40
|
+
return '' unless path
|
41
41
|
|
42
42
|
main_app.__send__(path, *args)
|
43
43
|
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Nyauth</title>
|
5
|
+
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
|
6
|
+
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
|
7
|
+
<%= csrf_meta_tags %>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
<% if flash[:notice] %>
|
11
|
+
<%= flash[:notice] %>
|
12
|
+
<% end %>
|
13
|
+
<% if flash[:alert] %>
|
14
|
+
<%= flash[:alert] %>
|
15
|
+
<% end %>
|
16
|
+
<%= yield %>
|
17
|
+
</body>
|
18
|
+
</html>
|
data/lib/nyauth/engine.rb
CHANGED
@@ -10,7 +10,6 @@ module Nyauth
|
|
10
10
|
class Engine < ::Rails::Engine
|
11
11
|
isolate_namespace Nyauth
|
12
12
|
|
13
|
-
config.i18n.load_path += Dir[Engine.root.join('config', 'locales', '**', '*.{rb,yml}').to_s]
|
14
13
|
config.generators do |g|
|
15
14
|
g.test_framework :rspec, fixture: false
|
16
15
|
g.fixture_replacement :factory_girl, dir: 'spec/factories'
|
data/lib/nyauth/version.rb
CHANGED
@@ -0,0 +1,27 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Dummy</title>
|
5
|
+
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
|
6
|
+
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
|
7
|
+
<%= csrf_meta_tags %>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
|
11
|
+
<% if flash[:notice] %>
|
12
|
+
<%= flash[:notice] %>
|
13
|
+
<% end %>
|
14
|
+
<% if flash[:alert] %>
|
15
|
+
<%= flash[:alert] %>
|
16
|
+
<% end %>
|
17
|
+
<%= link_to "Secret page(URL helper on application)", secret_page_path %>
|
18
|
+
<% if signed_in?(as: :user) %>
|
19
|
+
<%= link_to t('nav.nyauth.sessions.destroy'), session_path_for(:user), class: 'pure-menu-link', method: :delete %>
|
20
|
+
<% end %>
|
21
|
+
<% if signed_in?(as: :admin) %>
|
22
|
+
<%= link_to t('nav.nyauth.sessions.destroy'), session_path_for(:admin), class: 'pure-menu-link', method: :delete %>
|
23
|
+
<% end %>
|
24
|
+
|
25
|
+
<%= yield %>
|
26
|
+
</body>
|
27
|
+
</html>
|
Binary file
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -0,0 +1,294 @@
|
|
1
|
+
[1m[36m (2.0ms)[0m [1mCREATE TABLE "admins" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "password_digest" varchar NOT NULL, "password_salt" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
2
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
3
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "index_admins_on_email" ON "admins" ("email")[0m
|
4
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "password_digest" varchar NOT NULL, "password_salt" varchar NOT NULL, "nickname" varchar, "confirmed_at" datetime, "confirmation_key" varchar, "confirmation_key_expired_at" datetime, "reset_password_key" varchar, "reset_password_key_expired_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
5
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
|
6
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
7
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
8
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
9
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150317141956')[0m
|
10
|
+
[1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150303135922')
|
11
|
+
DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from call at /Users/koshikawa/repository/github.com/ppworks/nyauth/gemfiles/vendor/bundle/gems/rake-10.5.0/lib/rake/task.rb:240)
|
12
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "admins" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "password_digest" varchar NOT NULL, "password_salt" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
13
|
+
[1m[35m (0.1ms)[0m [1m[34mselect sqlite_version(*)[0m
|
14
|
+
[1m[35m (0.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_email" ON "admins" ("email")[0m
|
15
|
+
[1m[35m (0.7ms)[0m [1m[35mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "password_digest" varchar NOT NULL, "password_salt" varchar NOT NULL, "nickname" varchar, "confirmed_at" datetime, "confirmation_key" varchar, "confirmation_key_expired_at" datetime, "reset_password_key" varchar, "reset_password_key_expired_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
16
|
+
[1m[35m (0.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
|
17
|
+
[1m[35m (0.7ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar PRIMARY KEY) [0m
|
18
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
19
|
+
[1m[35m (0.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20150317141956')[0m
|
20
|
+
[1m[35m (0.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20150303135922')[0m
|
21
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
22
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" ORDER BY "ar_internal_metadata"."key" ASC LIMIT ?[0m [["LIMIT", 1]]
|
23
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
24
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", 2016-02-12 09:22:07 UTC], ["updated_at", 2016-02-12 09:22:07 UTC]]
|
25
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
26
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" ORDER BY "ar_internal_metadata"."key" ASC LIMIT ?[0m [["LIMIT", 1]]
|
27
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
28
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
29
|
+
DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from call at /Users/koshikawa/repository/github.com/ppworks/nyauth/gemfiles/vendor/bundle/gems/rake-10.5.0/lib/rake/task.rb:240)
|
30
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE TABLE "admins" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "password_digest" varchar NOT NULL, "password_salt" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
31
|
+
[1m[35m (0.1ms)[0m [1m[34mselect sqlite_version(*)[0m
|
32
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_email" ON "admins" ("email")[0m
|
33
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "password_digest" varchar NOT NULL, "password_salt" varchar NOT NULL, "nickname" varchar, "confirmed_at" datetime, "confirmation_key" varchar, "confirmation_key_expired_at" datetime, "reset_password_key" varchar, "reset_password_key_expired_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
34
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
|
35
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar PRIMARY KEY) [0m
|
36
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
37
|
+
[1m[35m (0.9ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20150317141956')[0m
|
38
|
+
[1m[35m (0.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20150303135922')[0m
|
39
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
40
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" ORDER BY "ar_internal_metadata"."key" ASC LIMIT ?[0m [["LIMIT", 1]]
|
41
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
42
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", 2016-02-12 09:23:30 UTC], ["updated_at", 2016-02-12 09:23:30 UTC]]
|
43
|
+
[1m[35m (0.9ms)[0m [1m[36mcommit transaction[0m
|
44
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" ORDER BY "ar_internal_metadata"."key" ASC LIMIT ?[0m [["LIMIT", 1]]
|
45
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
46
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
47
|
+
DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from call at /Users/koshikawa/repository/github.com/ppworks/nyauth/gemfiles/vendor/bundle/gems/rake-10.5.0/lib/rake/task.rb:240)
|
48
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE TABLE "admins" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "password_digest" varchar NOT NULL, "password_salt" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
49
|
+
[1m[35m (0.1ms)[0m [1m[34mselect sqlite_version(*)[0m
|
50
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_email" ON "admins" ("email")[0m
|
51
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "password_digest" varchar NOT NULL, "password_salt" varchar NOT NULL, "nickname" varchar, "confirmed_at" datetime, "confirmation_key" varchar, "confirmation_key_expired_at" datetime, "reset_password_key" varchar, "reset_password_key_expired_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
52
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
|
53
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar PRIMARY KEY) [0m
|
54
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
55
|
+
[1m[35m (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20150317141956')[0m
|
56
|
+
[1m[35m (0.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20150303135922')[0m
|
57
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
58
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" ORDER BY "ar_internal_metadata"."key" ASC LIMIT ?[0m [["LIMIT", 1]]
|
59
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
60
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", 2016-02-12 09:24:45 UTC], ["updated_at", 2016-02-12 09:24:45 UTC]]
|
61
|
+
[1m[35m (0.5ms)[0m [1m[36mcommit transaction[0m
|
62
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" ORDER BY "ar_internal_metadata"."key" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
64
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
65
|
+
DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from call at /Users/koshikawa/repository/github.com/ppworks/nyauth/gemfiles/vendor/bundle/gems/rake-10.5.0/lib/rake/task.rb:240)
|
66
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "admins" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "password_digest" varchar NOT NULL, "password_salt" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
67
|
+
[1m[35m (0.1ms)[0m [1m[34mselect sqlite_version(*)[0m
|
68
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_email" ON "admins" ("email")[0m
|
69
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "password_digest" varchar NOT NULL, "password_salt" varchar NOT NULL, "nickname" varchar, "confirmed_at" datetime, "confirmation_key" varchar, "confirmation_key_expired_at" datetime, "reset_password_key" varchar, "reset_password_key_expired_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
70
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
|
71
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar PRIMARY KEY) [0m
|
72
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
73
|
+
[1m[35m (0.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20150317141956')[0m
|
74
|
+
[1m[35m (0.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20150303135922')[0m
|
75
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
76
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" ORDER BY "ar_internal_metadata"."key" ASC LIMIT ?[0m [["LIMIT", 1]]
|
77
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
78
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", 2016-02-15 10:26:15 UTC], ["updated_at", 2016-02-15 10:26:15 UTC]]
|
79
|
+
[1m[35m (1.0ms)[0m [1m[36mcommit transaction[0m
|
80
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" ORDER BY "ar_internal_metadata"."key" ASC LIMIT ?[0m [["LIMIT", 1]]
|
81
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
82
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
83
|
+
|
84
|
+
|
85
|
+
Started GET "/" for ::1 at 2016-06-13 14:11:53 +0900
|
86
|
+
|
87
|
+
ActiveRecord::PendingMigrationError (
|
88
|
+
|
89
|
+
Migrations are pending. To resolve this issue, run:
|
90
|
+
|
91
|
+
bin/rake db:migrate RAILS_ENV=development
|
92
|
+
|
93
|
+
):
|
94
|
+
activerecord (4.2.4) lib/active_record/migration.rb:392:in `check_pending!'
|
95
|
+
activerecord (4.2.4) lib/active_record/migration.rb:373:in `call'
|
96
|
+
actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
|
97
|
+
activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
|
98
|
+
activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
|
99
|
+
activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks'
|
100
|
+
actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
|
101
|
+
actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call'
|
102
|
+
actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
|
103
|
+
actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
|
104
|
+
actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
|
105
|
+
railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app'
|
106
|
+
railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call'
|
107
|
+
activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
|
108
|
+
activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged'
|
109
|
+
activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged'
|
110
|
+
railties (4.2.4) lib/rails/rack/logger.rb:20:in `call'
|
111
|
+
actionpack (4.2.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
|
112
|
+
rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
|
113
|
+
rack (1.6.4) lib/rack/runtime.rb:18:in `call'
|
114
|
+
activesupport (4.2.4) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
|
115
|
+
rack (1.6.4) lib/rack/lock.rb:17:in `call'
|
116
|
+
actionpack (4.2.4) lib/action_dispatch/middleware/static.rb:116:in `call'
|
117
|
+
rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
|
118
|
+
railties (4.2.4) lib/rails/engine.rb:518:in `call'
|
119
|
+
railties (4.2.4) lib/rails/application.rb:165:in `call'
|
120
|
+
rack (1.6.4) lib/rack/lock.rb:17:in `call'
|
121
|
+
rack (1.6.4) lib/rack/content_length.rb:15:in `call'
|
122
|
+
rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
|
123
|
+
/Users/koshikawa/.rbenv/versions/2.3.1/lib/ruby/2.3.0/webrick/httpserver.rb:140:in `service'
|
124
|
+
/Users/koshikawa/.rbenv/versions/2.3.1/lib/ruby/2.3.0/webrick/httpserver.rb:96:in `run'
|
125
|
+
/Users/koshikawa/.rbenv/versions/2.3.1/lib/ruby/2.3.0/webrick/server.rb:296:in `block in start_thread'
|
126
|
+
|
127
|
+
|
128
|
+
Rendered /Users/koshikawa/repository/github.com/ppworks/nyauth/vendor/bundle/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (1.7ms)
|
129
|
+
Rendered /Users/koshikawa/repository/github.com/ppworks/nyauth/vendor/bundle/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.1ms)
|
130
|
+
Rendered /Users/koshikawa/repository/github.com/ppworks/nyauth/vendor/bundle/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms)
|
131
|
+
Rendered /Users/koshikawa/repository/github.com/ppworks/nyauth/vendor/bundle/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (43.3ms)
|
132
|
+
[1m[36m (1.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
133
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
134
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
135
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
136
|
+
Migrating to CreateUsers (20150303135922)
|
137
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
138
|
+
[1m[35m (0.4ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "password_digest" varchar NOT NULL, "password_salt" varchar NOT NULL, "nickname" varchar, "confirmed_at" datetime, "confirmation_key" varchar, "confirmation_key_expired_at" datetime, "reset_password_key" varchar, "reset_password_key_expired_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
139
|
+
[1m[36m (0.3ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
|
140
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150303135922"]]
|
141
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
142
|
+
Migrating to CreateAdmins (20150317141956)
|
143
|
+
[1m[35m (0.1ms)[0m begin transaction
|
144
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "admins" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "password_digest" varchar NOT NULL, "password_salt" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
145
|
+
[1m[35m (0.4ms)[0m CREATE UNIQUE INDEX "index_admins_on_email" ON "admins" ("email")
|
146
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150317141956"]]
|
147
|
+
[1m[35m (0.7ms)[0m commit transaction
|
148
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
149
|
+
[1m[35m (0.2ms)[0m SELECT sql
|
150
|
+
FROM sqlite_master
|
151
|
+
WHERE name='index_admins_on_email' AND type='index'
|
152
|
+
UNION ALL
|
153
|
+
SELECT sql
|
154
|
+
FROM sqlite_temp_master
|
155
|
+
WHERE name='index_admins_on_email' AND type='index'
|
156
|
+
|
157
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
158
|
+
FROM sqlite_master
|
159
|
+
WHERE name='index_users_on_email' AND type='index'
|
160
|
+
UNION ALL
|
161
|
+
SELECT sql
|
162
|
+
FROM sqlite_temp_master
|
163
|
+
WHERE name='index_users_on_email' AND type='index'
|
164
|
+
[0m
|
165
|
+
|
166
|
+
|
167
|
+
Started GET "/" for ::1 at 2016-06-13 14:12:14 +0900
|
168
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
169
|
+
Processing by PagesController#index as HTML
|
170
|
+
Rendered pages/index.html.erb within layouts/application (1.0ms)
|
171
|
+
Completed 200 OK in 209ms (Views: 209.2ms | ActiveRecord: 0.0ms)
|
172
|
+
|
173
|
+
|
174
|
+
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for ::1 at 2016-06-13 14:12:15 +0900
|
175
|
+
|
176
|
+
|
177
|
+
Started GET "/assets/jquery_ujs.self-ca5248a2fad13d6bd58ea121318d642f195f0b2dd818b30615f785ff365e8d1f.js?body=1" for ::1 at 2016-06-13 14:12:15 +0900
|
178
|
+
|
179
|
+
|
180
|
+
Started GET "/assets/jquery.self-d03a5518f45df77341bdbe6201ba3bfa547ebba8ed64f0ea56bfa5f96ea7c074.js?body=1" for ::1 at 2016-06-13 14:12:15 +0900
|
181
|
+
|
182
|
+
|
183
|
+
Started GET "/assets/application.self-2b00c68320848afe54cf9919a7a76ed257f93bdb6e12dc2160d07a8b1fe5e9f4.js?body=1" for ::1 at 2016-06-13 14:12:15 +0900
|
184
|
+
|
185
|
+
|
186
|
+
Started GET "/secret_page" for ::1 at 2016-06-13 14:12:17 +0900
|
187
|
+
Processing by SecretPagesController#show as HTML
|
188
|
+
Redirected to http://localhost:3000/session/new
|
189
|
+
Filter chain halted as #<Proc:0x007fc79a750a58@/Users/koshikawa/repository/github.com/ppworks/nyauth/spec/dummy/app/controllers/secret_pages_controller.rb:2 (lambda)> rendered or redirected
|
190
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.0ms)
|
191
|
+
|
192
|
+
|
193
|
+
Started GET "/session/new" for ::1 at 2016-06-13 14:12:17 +0900
|
194
|
+
Processing by Nyauth::SessionsController#new as HTML
|
195
|
+
Rendered /Users/koshikawa/repository/github.com/ppworks/nyauth/app/views/nyauth/sessions/new.html.erb (15.2ms)
|
196
|
+
Completed 200 OK in 28ms (Views: 20.6ms | ActiveRecord: 0.0ms)
|
197
|
+
|
198
|
+
|
199
|
+
Started POST "/session" for ::1 at 2016-06-13 14:12:18 +0900
|
200
|
+
Processing by Nyauth::SessionsController#create as HTML
|
201
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"KBpHe2/dO2rnAYRTGkKXCM2xJZzvyNtPoKFj9fcTpnjYNvsV5LAGpk9K1eDpr7LVzI2YBSfNPY42p67D1CnmsA==", "session"=>{"email"=>"koshikawa.naoto@moneyforward.co.jp", "password"=>"[FILTERED]"}, "commit"=>"Sign in"}
|
202
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" DESC LIMIT 1 [["email", "koshikawa.naoto@moneyforward.co.jp"]]
|
203
|
+
Rendered /Users/koshikawa/repository/github.com/ppworks/nyauth/app/views/nyauth/sessions/new.html.erb (1.2ms)
|
204
|
+
Completed 200 OK in 21ms (Views: 6.7ms | ActiveRecord: 0.4ms)
|
205
|
+
|
206
|
+
|
207
|
+
Started GET "/registration/new" for ::1 at 2016-06-13 14:12:20 +0900
|
208
|
+
Processing by Nyauth::RegistrationsController#new as HTML
|
209
|
+
Rendered /Users/koshikawa/repository/github.com/ppworks/nyauth/app/views/nyauth/registrations/new.html.erb (3.5ms)
|
210
|
+
Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.0ms)
|
211
|
+
|
212
|
+
|
213
|
+
Started POST "/registration" for ::1 at 2016-06-13 14:12:26 +0900
|
214
|
+
Processing by Nyauth::RegistrationsController#create as HTML
|
215
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"uhrnn0sILExym9tIMDqSTYqgQhdDl284LdSLDKevYVBKNlvxwGURgNrQivvD17eQi5z/jouSifm70kY6hJUhmA==", "registration"=>{"email"=>"koshikawa.naoto@moneyforward.co.jp", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
|
216
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
217
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("email", "password_salt", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["email", "koshikawa.naoto@moneyforward.co.jp"], ["password_salt", "cf567478aded6575b17d81b96f91132362e40189349e5aa673583c3a33b4c9ea54ff76b85631f68002a9dba66538b8d87ec893272745e6e41f607afd71739616"], ["password_digest", "2ec84cc09c92474ce04cf2a0fabdd8255b6952332722ef10830418c3fdd4d037"], ["created_at", "2016-06-13 05:12:26.963110"], ["updated_at", "2016-06-13 05:12:26.963110"]]
|
218
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
219
|
+
Redirected to http://localhost:3000/
|
220
|
+
Completed 302 Found in 51ms (ActiveRecord: 1.5ms)
|
221
|
+
|
222
|
+
|
223
|
+
Started GET "/" for ::1 at 2016-06-13 14:12:26 +0900
|
224
|
+
Processing by PagesController#index as HTML
|
225
|
+
Rendered pages/index.html.erb within layouts/application (0.0ms)
|
226
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
227
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "1"]]
|
228
|
+
Completed 200 OK in 22ms (Views: 21.8ms | ActiveRecord: 0.2ms)
|
229
|
+
|
230
|
+
|
231
|
+
Started GET "/secret_page" for ::1 at 2016-06-13 14:12:28 +0900
|
232
|
+
Processing by SecretPagesController#show as HTML
|
233
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
234
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "1"]]
|
235
|
+
Rendered secret_pages/show.html.erb within layouts/application (2.9ms)
|
236
|
+
[1m[35mCACHE (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
|
237
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "1"]]
|
238
|
+
Completed 200 OK in 26ms (Views: 24.3ms | ActiveRecord: 0.1ms)
|
239
|
+
|
240
|
+
|
241
|
+
Started GET "/secret_page" for ::1 at 2016-06-13 14:12:32 +0900
|
242
|
+
Processing by SecretPagesController#show as HTML
|
243
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
244
|
+
[1m[36mCACHE (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "1"]]
|
245
|
+
Rendered secret_pages/show.html.erb within layouts/application (1.4ms)
|
246
|
+
[1m[35mCACHE (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
|
247
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "1"]]
|
248
|
+
Completed 200 OK in 25ms (Views: 23.3ms | ActiveRecord: 0.2ms)
|
249
|
+
|
250
|
+
|
251
|
+
Started GET "/confirmation_requests/new" for ::1 at 2016-06-13 14:12:48 +0900
|
252
|
+
Processing by Nyauth::ConfirmationRequestsController#new as HTML
|
253
|
+
Rendered /Users/koshikawa/repository/github.com/ppworks/nyauth/app/views/nyauth/confirmation_requests/new.html.erb (4.4ms)
|
254
|
+
Completed 200 OK in 11ms (Views: 9.8ms | ActiveRecord: 0.0ms)
|
255
|
+
|
256
|
+
|
257
|
+
Started GET "/password/edit" for ::1 at 2016-06-13 14:12:51 +0900
|
258
|
+
Processing by Nyauth::PasswordsController#edit as HTML
|
259
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
260
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "1"]]
|
261
|
+
[1m[35mCACHE (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
|
262
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
263
|
+
Rendered /Users/koshikawa/repository/github.com/ppworks/nyauth/app/views/nyauth/passwords/edit.html.erb (2.7ms)
|
264
|
+
Completed 200 OK in 12ms (Views: 8.6ms | ActiveRecord: 0.2ms)
|
265
|
+
|
266
|
+
|
267
|
+
Started GET "/secret_page" for ::1 at 2016-06-13 14:13:46 +0900
|
268
|
+
Processing by SecretPagesController#show as HTML
|
269
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
270
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "1"]]
|
271
|
+
Rendered secret_pages/show.html.erb within layouts/application (1.5ms)
|
272
|
+
[1m[35mCACHE (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
|
273
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "1"]]
|
274
|
+
Completed 200 OK in 26ms (Views: 24.1ms | ActiveRecord: 0.2ms)
|
275
|
+
|
276
|
+
|
277
|
+
Started GET "/assets/jquery.self-d03a5518f45df77341bdbe6201ba3bfa547ebba8ed64f0ea56bfa5f96ea7c074.js?body=1" for ::1 at 2016-06-13 14:13:46 +0900
|
278
|
+
|
279
|
+
|
280
|
+
Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for ::1 at 2016-06-13 14:13:46 +0900
|
281
|
+
|
282
|
+
|
283
|
+
Started GET "/assets/jquery_ujs.self-ca5248a2fad13d6bd58ea121318d642f195f0b2dd818b30615f785ff365e8d1f.js?body=1" for ::1 at 2016-06-13 14:13:46 +0900
|
284
|
+
|
285
|
+
|
286
|
+
Started GET "/assets/application.self-2b00c68320848afe54cf9919a7a76ed257f93bdb6e12dc2160d07a8b1fe5e9f4.js?body=1" for ::1 at 2016-06-13 14:13:46 +0900
|
287
|
+
|
288
|
+
|
289
|
+
Started GET "/confirmation_requests/new" for ::1 at 2016-06-13 14:13:48 +0900
|
290
|
+
Processing by Nyauth::ConfirmationRequestsController#new as HTML
|
291
|
+
Rendered /Users/koshikawa/repository/github.com/ppworks/nyauth/app/views/nyauth/confirmation_requests/new.html.erb within layouts/nyauth/base (2.3ms)
|
292
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
293
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "1"]]
|
294
|
+
Completed 200 OK in 29ms (Views: 28.6ms | ActiveRecord: 0.1ms)
|