contour 1.1.0.rc2 → 1.1.0.rc3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -11,6 +11,11 @@
11
11
  * Breaking Changes
12
12
  * Unobtrusive JS now required, JavaScript is now included at bottom of HTML to improve perceived page load
13
13
 
14
+ == 1.0.6
15
+
16
+ * Enhancements
17
+ * Login and Registration API now return authentication token, first_name, last_name, id, and email for JSON requests on successful login
18
+
14
19
  == 1.0.5
15
20
 
16
21
  * Bug Fix
data/README.rdoc CHANGED
@@ -117,7 +117,7 @@ You can then sign in using your {Google Account}[http://localhost:3000/auth/goog
117
117
 
118
118
  Add {Kaminari}[https://github.com/amatsuda/kaminari] gem to your <tt>Gemfile</tt>
119
119
 
120
- gem 'kaminari', '~> 0.13.0'
120
+ gem 'kaminari', '~> 0.14.0'
121
121
 
122
122
  Update your gems
123
123
 
@@ -9,7 +9,7 @@ class Contour::RegistrationsController < Devise::RegistrationsController
9
9
  if @user.save
10
10
  respond_to do |format|
11
11
  format.html { redirect_to @user, notice: 'User was successfully created.' }
12
- format.json { render json: @user, only: [:id, :email], status: :created, location: @user }
12
+ format.json { render json: @user.as_json( only: [:id, :email, :first_name, :last_name, :authentication_token ] ), status: :created, location: @user }
13
13
  end
14
14
  else
15
15
  respond_to do |format|
@@ -28,7 +28,11 @@ class Contour::SessionsController < Devise::SessionsController
28
28
  if resource
29
29
  set_flash_message(:notice, :signed_in) if is_navigational_format?
30
30
  sign_in(resource_name, resource)
31
- respond_with resource, location: after_sign_in_path_for(resource)
31
+
32
+ respond_to do |format|
33
+ format.html { respond_with resource, location: after_sign_in_path_for(resource) }
34
+ format.json { render json: { success: true, user: resource.as_json( only: [:id, :email, :first_name, :last_name, :authentication_token ] ) } }
35
+ end
32
36
  else
33
37
  resource = resource_name.to_s.titleize.constantize.find_by_email(params[resource_name][:email])
34
38
  if resource and resource.respond_to?('authentications') and providers = resource.authentications.pluck(:provider).uniq and providers.size > 0
@@ -3,7 +3,7 @@ module Contour
3
3
  MAJOR = 1
4
4
  MINOR = 1
5
5
  TINY = 0
6
- BUILD = "rc2" # nil, "pre", "rc", "rc2"
6
+ BUILD = "rc3" # nil, "pre", "rc", "rc2"
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
9
9
  end
@@ -42,4 +42,4 @@ class User < ActiveRecord::Base
42
42
  (authentications.empty? || !password.blank?) && super
43
43
  end
44
44
 
45
- end
45
+ end
Binary file
@@ -46010,3 +46010,789 @@ Completed 401 Unauthorized in 78ms
46010
46010
   (0.0ms) begin transaction
46011
46011
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46012
46012
   (0.0ms) rollback transaction
46013
+ Connecting to database specified by database.yml
46014
+  (0.1ms) begin transaction
46015
+ Fixture Delete (30.7ms) DELETE FROM "authentications"
46016
+ Fixture Insert (0.6ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2012-09-10 18:31:33', '2012-09-10 18:31:33', 949717663, 201799169)
46017
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2012-09-10 18:31:33', '2012-09-10 18:31:33', 876923740, 201799169)
46018
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2012-09-10 18:31:33', '2012-09-10 18:31:33', 864673665, 201799169)
46019
+ Fixture Delete (0.9ms) DELETE FROM "users"
46020
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2012-09-10 18:31:33', '2012-09-10 18:31:33', 201799169)
46021
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2012-09-10 18:31:33', '2012-09-10 18:31:33', 999914115)
46022
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2012-09-10 18:31:33', '2012-09-10 18:31:33', 725306934)
46023
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2012-09-10 18:31:33', '2012-09-10 18:31:33', 349534908)
46024
+  (1.8ms) commit transaction
46025
+  (0.0ms) begin transaction
46026
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
46027
+  (0.1ms) rollback transaction
46028
+  (0.1ms) begin transaction
46029
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
46030
+  (0.0ms) rollback transaction
46031
+  (0.0ms) begin transaction
46032
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46033
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
46034
+  (0.1ms) SELECT COUNT(*) FROM "authentications" 
46035
+ Processing by Contour::AuthenticationsController#create as HTML
46036
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2012-09-10 18:31:33 UTC", "updated_at"=>"2012-09-10 18:31:33 UTC"}}
46037
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
46038
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
46039
+ Logged in user found, creating associated authentication.
46040
+  (0.1ms) SAVEPOINT active_record_1
46041
+ SQL (0.5ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 10 Sep 2012 18:31:33 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Mon, 10 Sep 2012 18:31:33 UTC +00:00], ["user_id", 201799169]]
46042
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46043
+ Redirected to http://test.host/authentications
46044
+ Completed 302 Found in 33ms (ActiveRecord: 0.8ms)
46045
+  (0.1ms) SELECT COUNT(*) FROM "authentications" 
46046
+  (20.4ms) rollback transaction
46047
+  (0.1ms) begin transaction
46048
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46049
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
46050
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
46051
+ Processing by Contour::AuthenticationsController#destroy as HTML
46052
+ Parameters: {"id"=>"949717663"}
46053
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
46054
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169 AND "authentications"."id" = ? LIMIT 1 [["id", "949717663"]]
46055
+  (0.0ms) SAVEPOINT active_record_1
46056
+ SQL (0.2ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
46057
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46058
+ Redirected to http://test.host/authentications
46059
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
46060
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
46061
+  (0.6ms) rollback transaction
46062
+  (0.0ms) begin transaction
46063
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46064
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
46065
+ Processing by Contour::AuthenticationsController#index as HTML
46066
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
46067
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 201799169
46068
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169
46069
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (4.0ms)
46070
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.2ms)
46071
+ Completed 200 OK in 184ms (Views: 181.9ms | ActiveRecord: 0.3ms)
46072
+  (0.1ms) rollback transaction
46073
+  (0.1ms) begin transaction
46074
+ Processing by Contour::PasswordsController#create as HTML
46075
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
46076
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
46077
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'zKqe7VLs7uVvRFf6nyGX' LIMIT 1
46078
+  (0.1ms) SAVEPOINT active_record_1
46079
+  (0.5ms) UPDATE "users" SET "reset_password_token" = 'zKqe7VLs7uVvRFf6nyGX', "reset_password_sent_at" = '2012-09-10 18:31:33.572646', "updated_at" = '2012-09-10 18:31:33.574102' WHERE "users"."id" = 201799169
46080
+  (0.1ms) RELEASE SAVEPOINT active_record_1
46081
+
46082
+ Sent mail to valid@example.com (128ms)
46083
+ Date: Mon, 10 Sep 2012 14:31:33 -0400
46084
+ From: please-change-me-at-config-initializers-devise@example.com
46085
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
46086
+ To: valid@example.com
46087
+ Message-ID: <504e3205cca82_af433fe4acc35ad434623@edge2.partners.org.mail>
46088
+ Subject: Reset password instructions
46089
+ Mime-Version: 1.0
46090
+ Content-Type: text/html;
46091
+ charset=UTF-8
46092
+ Content-Transfer-Encoding: 7bit
46093
+
46094
+ <p>Hello valid@example.com!</p>
46095
+
46096
+ <p>Someone has requested a link to change your password, and you can do this through the link below.</p>
46097
+
46098
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=zKqe7VLs7uVvRFf6nyGX">Change my password</a></p>
46099
+
46100
+ <p>If you didn't request this, please ignore this email.</p>
46101
+ <p>Your password won't change until you access the link above and create a new one.</p>
46102
+
46103
+ Redirected to http://test.host/users/login
46104
+ Completed 302 Found in 377ms (ActiveRecord: 0.0ms)
46105
+  (0.8ms) rollback transaction
46106
+  (0.1ms) begin transaction
46107
+ Processing by Contour::PasswordsController#new as HTML
46108
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.8ms)
46109
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (3.2ms)
46110
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (6.5ms)
46111
+ Completed 200 OK in 45ms (Views: 44.5ms | ActiveRecord: 0.0ms)
46112
+  (0.1ms) rollback transaction
46113
+  (0.1ms) begin transaction
46114
+  (0.0ms) rollback transaction
46115
+  (0.0ms) begin transaction
46116
+  (0.1ms) rollback transaction
46117
+  (0.0ms) begin transaction
46118
+  (0.0ms) rollback transaction
46119
+  (0.0ms) begin transaction
46120
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46121
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46122
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46123
+
46124
+
46125
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-10 14:31:33 -0400
46126
+ Processing by WelcomeController#logged_in_page as HTML
46127
+ Completed 401 Unauthorized in 1ms
46128
+  (0.1ms) SAVEPOINT active_record_1
46129
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
46130
+ Binary data inserted for `string` type on column `encrypted_password`
46131
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "deleted", "email", "encrypted_password", "first_name", "last_name", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "status", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Sep 2012 18:31:34 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$DwAlA3jInjonmwy0ucL9i.MKCfvtEwcBOkpjS7oE1Yxe8Z8wFkYf6"], ["first_name", "Deleted"], ["last_name", "User"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["status", "pending"], ["updated_at", Mon, 10 Sep 2012 18:31:34 UTC +00:00]]
46132
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46133
+  (0.0ms) SAVEPOINT active_record_1
46134
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
46135
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46136
+ SQL (0.2ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
46137
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
46138
+
46139
+
46140
+ Started POST "/users/login" for 127.0.0.1 at 2012-09-10 14:31:34 -0400
46141
+ Processing by Contour::SessionsController#create as HTML
46142
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
46143
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
46144
+  (0.1ms) SAVEPOINT active_record_1
46145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46146
+ Completed 401 Unauthorized in 7ms
46147
+
46148
+
46149
+ Started GET "/users/login" for 127.0.0.1 at 2012-09-10 14:31:34 -0400
46150
+ Processing by Contour::SessionsController#new as HTML
46151
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.7ms)
46152
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (29.9ms)
46153
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (1.0ms)
46154
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.6ms)
46155
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.7ms)
46156
+ Completed 200 OK in 63ms (Views: 62.5ms | ActiveRecord: 0.0ms)
46157
+  (0.8ms) rollback transaction
46158
+  (0.1ms) begin transaction
46159
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46160
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46161
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46162
+
46163
+
46164
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-10 14:31:34 -0400
46165
+ Processing by WelcomeController#logged_in_page as HTML
46166
+ Completed 401 Unauthorized in 0ms
46167
+  (0.1ms) SAVEPOINT active_record_1
46168
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
46169
+ Binary data inserted for `string` type on column `encrypted_password`
46170
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "deleted", "email", "encrypted_password", "first_name", "last_name", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "status", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Sep 2012 18:31:34 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$N2JtWevvgI/xfVhlIxM0Ru2aGTAXjy4zrfT77KSnvGt3Rhm/9.SGe"], ["first_name", "FirstName"], ["last_name", "LastName"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["status", "pending"], ["updated_at", Mon, 10 Sep 2012 18:31:34 UTC +00:00]]
46171
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46172
+  (0.0ms) SAVEPOINT active_record_1
46173
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
46174
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46175
+ SQL (0.2ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
46176
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
46177
+
46178
+
46179
+ Started POST "/users/login" for 127.0.0.1 at 2012-09-10 14:31:34 -0400
46180
+ Processing by Contour::SessionsController#create as HTML
46181
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
46182
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
46183
+  (0.0ms) SAVEPOINT active_record_1
46184
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2012-09-10 18:31:34.202552', "current_sign_in_at" = '2012-09-10 18:31:34.202552', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2012-09-10 18:31:34.203113' WHERE "users"."id" = 999914116
46185
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46186
+ Redirected to http://www.example.com/logged_in_page
46187
+ Completed 302 Found in 7ms (ActiveRecord: 0.0ms)
46188
+
46189
+
46190
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-10 14:31:34 -0400
46191
+ Processing by WelcomeController#logged_in_page as HTML
46192
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 LIMIT 1
46193
+ Completed 200 OK in 23ms (Views: 21.6ms | ActiveRecord: 0.1ms)
46194
+  (0.9ms) rollback transaction
46195
+  (0.1ms) begin transaction
46196
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46197
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46198
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46199
+
46200
+
46201
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-10 14:31:34 -0400
46202
+ Processing by WelcomeController#logged_in_page as HTML
46203
+ Completed 401 Unauthorized in 0ms
46204
+  (0.1ms) SAVEPOINT active_record_1
46205
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
46206
+ Binary data inserted for `string` type on column `encrypted_password`
46207
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "deleted", "email", "encrypted_password", "first_name", "last_name", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "status", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Sep 2012 18:31:34 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$aHdyDHWDVzsBMDkQuxVdG.nryVS9Q8PFjLD9B.Q7oQMMgtN4bFcDW"], ["first_name", "MyString"], ["last_name", "MyString"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["status", "pending"], ["updated_at", Mon, 10 Sep 2012 18:31:34 UTC +00:00]]
46208
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46209
+  (0.0ms) SAVEPOINT active_record_1
46210
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
46211
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46212
+ SQL (0.2ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
46213
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
46214
+
46215
+
46216
+ Started POST "/users/login" for 127.0.0.1 at 2012-09-10 14:31:34 -0400
46217
+ Processing by Contour::SessionsController#create as HTML
46218
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
46219
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
46220
+  (0.0ms) SAVEPOINT active_record_1
46221
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46222
+ Completed 401 Unauthorized in 4ms
46223
+
46224
+
46225
+ Started GET "/users/login" for 127.0.0.1 at 2012-09-10 14:31:34 -0400
46226
+ Processing by Contour::SessionsController#new as HTML
46227
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.4ms)
46228
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (1.3ms)
46229
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.0ms)
46230
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.9ms)
46231
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.2ms)
46232
+ Completed 200 OK in 12ms (Views: 11.5ms | ActiveRecord: 0.0ms)
46233
+  (0.7ms) rollback transaction
46234
+  (0.1ms) begin transaction
46235
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46236
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46237
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46238
+
46239
+
46240
+ Started GET "/" for 127.0.0.1 at 2012-09-10 14:31:34 -0400
46241
+ Processing by WelcomeController#index as HTML
46242
+ Completed 401 Unauthorized in 0ms
46243
+  (0.1ms) rollback transaction
46244
+  (0.0ms) begin transaction
46245
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46246
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46247
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46248
+
46249
+
46250
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2012-09-10 14:31:34 -0400
46251
+ Processing by WelcomeController#logged_in_page as JSON
46252
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
46253
+  (0.1ms) SAVEPOINT active_record_1
46254
+  (0.3ms) UPDATE "users" SET "last_sign_in_at" = '2012-09-10 18:31:34.381771', "current_sign_in_at" = '2012-09-10 18:31:34.381771', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2012-09-10 18:31:34.382469' WHERE "users"."id" = 201799169
46255
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46256
+ Completed 200 OK in 81ms (Views: 0.2ms | ActiveRecord: 0.5ms)
46257
+  (0.6ms) rollback transaction
46258
+  (0.1ms) begin transaction
46259
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46260
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46261
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46262
+
46263
+
46264
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2012-09-10 14:31:34 -0400
46265
+ Processing by WelcomeController#logged_in_page as JSON
46266
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
46267
+ Completed 401 Unauthorized in 79ms
46268
+  (0.1ms) rollback transaction
46269
+  (0.0ms) begin transaction
46270
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46271
+  (0.1ms) rollback transaction
46272
+  (0.0ms) begin transaction
46273
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46274
+  (0.0ms) rollback transaction
46275
+ Connecting to database specified by database.yml
46276
+  (0.1ms) begin transaction
46277
+ Fixture Delete (0.5ms) DELETE FROM "authentications"
46278
+ Fixture Insert (0.2ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2012-09-10 18:46:37', '2012-09-10 18:46:37', 949717663, 201799169)
46279
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2012-09-10 18:46:37', '2012-09-10 18:46:37', 876923740, 201799169)
46280
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2012-09-10 18:46:37', '2012-09-10 18:46:37', 864673665, 201799169)
46281
+ Fixture Delete (0.2ms) DELETE FROM "users"
46282
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2012-09-10 18:46:37', '2012-09-10 18:46:37', 201799169)
46283
+ Fixture Insert (0.2ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2012-09-10 18:46:37', '2012-09-10 18:46:37', 999914115)
46284
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2012-09-10 18:46:37', '2012-09-10 18:46:37', 725306934)
46285
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2012-09-10 18:46:37', '2012-09-10 18:46:37', 349534908)
46286
+  (1.1ms) commit transaction
46287
+  (0.1ms) begin transaction
46288
+ Authentication Load (0.4ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
46289
+  (0.1ms) rollback transaction
46290
+  (0.1ms) begin transaction
46291
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
46292
+  (0.1ms) rollback transaction
46293
+  (0.1ms) begin transaction
46294
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46295
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
46296
+  (0.1ms) SELECT COUNT(*) FROM "authentications" 
46297
+ Processing by Contour::AuthenticationsController#create as HTML
46298
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2012-09-10 18:46:37 UTC", "updated_at"=>"2012-09-10 18:46:37 UTC"}}
46299
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
46300
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
46301
+ Logged in user found, creating associated authentication.
46302
+  (0.1ms) SAVEPOINT active_record_1
46303
+ SQL (38.7ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 10 Sep 2012 18:46:37 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Mon, 10 Sep 2012 18:46:37 UTC +00:00], ["user_id", 201799169]]
46304
+  (0.1ms) RELEASE SAVEPOINT active_record_1
46305
+ Redirected to http://test.host/authentications
46306
+ Completed 302 Found in 81ms (ActiveRecord: 39.2ms)
46307
+  (0.1ms) SELECT COUNT(*) FROM "authentications" 
46308
+  (33.7ms) rollback transaction
46309
+  (0.1ms) begin transaction
46310
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46311
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
46312
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
46313
+ Processing by Contour::AuthenticationsController#destroy as HTML
46314
+ Parameters: {"id"=>"949717663"}
46315
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
46316
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169 AND "authentications"."id" = ? LIMIT 1 [["id", "949717663"]]
46317
+  (0.0ms) SAVEPOINT active_record_1
46318
+ SQL (0.2ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
46319
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46320
+ Redirected to http://test.host/authentications
46321
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
46322
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
46323
+  (3.3ms) rollback transaction
46324
+  (0.1ms) begin transaction
46325
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46326
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
46327
+ Processing by Contour::AuthenticationsController#index as HTML
46328
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
46329
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 201799169
46330
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169
46331
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (2.1ms)
46332
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.8ms)
46333
+ Completed 200 OK in 145ms (Views: 142.8ms | ActiveRecord: 0.4ms)
46334
+  (0.1ms) rollback transaction
46335
+  (0.1ms) begin transaction
46336
+ Processing by Contour::PasswordsController#create as HTML
46337
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
46338
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
46339
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'GgquaUa2pL6WvAWGCas3' LIMIT 1
46340
+  (0.1ms) SAVEPOINT active_record_1
46341
+  (0.4ms) UPDATE "users" SET "reset_password_token" = 'GgquaUa2pL6WvAWGCas3', "reset_password_sent_at" = '2012-09-10 18:46:38.047598', "updated_at" = '2012-09-10 18:46:38.048660' WHERE "users"."id" = 201799169
46342
+  (0.1ms) RELEASE SAVEPOINT active_record_1
46343
+
46344
+ Sent mail to valid@example.com (70ms)
46345
+ Date: Mon, 10 Sep 2012 14:46:38 -0400
46346
+ From: please-change-me-at-config-initializers-devise@example.com
46347
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
46348
+ To: valid@example.com
46349
+ Message-ID: <504e358e49683_b1013fc9c8835adc1644b@edge2.partners.org.mail>
46350
+ Subject: Reset password instructions
46351
+ Mime-Version: 1.0
46352
+ Content-Type: text/html;
46353
+ charset=UTF-8
46354
+ Content-Transfer-Encoding: 7bit
46355
+
46356
+ <p>Hello valid@example.com!</p>
46357
+
46358
+ <p>Someone has requested a link to change your password, and you can do this through the link below.</p>
46359
+
46360
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=GgquaUa2pL6WvAWGCas3">Change my password</a></p>
46361
+
46362
+ <p>If you didn't request this, please ignore this email.</p>
46363
+ <p>Your password won't change until you access the link above and create a new one.</p>
46364
+
46365
+ Redirected to http://test.host/users/login
46366
+ Completed 302 Found in 392ms (ActiveRecord: 0.0ms)
46367
+  (0.6ms) rollback transaction
46368
+  (0.1ms) begin transaction
46369
+ Processing by Contour::PasswordsController#new as HTML
46370
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (2.0ms)
46371
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.9ms)
46372
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.4ms)
46373
+ Completed 200 OK in 17ms (Views: 16.3ms | ActiveRecord: 0.0ms)
46374
+  (0.1ms) rollback transaction
46375
+  (0.1ms) begin transaction
46376
+  (0.0ms) rollback transaction
46377
+  (0.0ms) begin transaction
46378
+  (0.0ms) rollback transaction
46379
+  (0.1ms) begin transaction
46380
+  (0.0ms) rollback transaction
46381
+  (0.1ms) begin transaction
46382
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46383
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46384
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46385
+
46386
+
46387
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-10 14:46:38 -0400
46388
+ Processing by WelcomeController#logged_in_page as HTML
46389
+ Completed 401 Unauthorized in 1ms
46390
+  (0.1ms) SAVEPOINT active_record_1
46391
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
46392
+ Binary data inserted for `string` type on column `encrypted_password`
46393
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "deleted", "email", "encrypted_password", "first_name", "last_name", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "status", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Sep 2012 18:46:38 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$k1YnZJhyITnicXIimOa.5eSTSF/Dcd3iqVhTLBll0Sf2ydEdnT/sa"], ["first_name", "Deleted"], ["last_name", "User"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["status", "pending"], ["updated_at", Mon, 10 Sep 2012 18:46:38 UTC +00:00]]
46394
+  (0.1ms) RELEASE SAVEPOINT active_record_1
46395
+  (0.0ms) SAVEPOINT active_record_1
46396
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
46397
+  (0.1ms) RELEASE SAVEPOINT active_record_1
46398
+ SQL (0.5ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
46399
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
46400
+
46401
+
46402
+ Started POST "/users/login" for 127.0.0.1 at 2012-09-10 14:46:38 -0400
46403
+ Processing by Contour::SessionsController#create as HTML
46404
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
46405
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
46406
+  (0.1ms) SAVEPOINT active_record_1
46407
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46408
+ Completed 401 Unauthorized in 8ms
46409
+
46410
+
46411
+ Started GET "/users/login" for 127.0.0.1 at 2012-09-10 14:46:38 -0400
46412
+ Processing by Contour::SessionsController#new as HTML
46413
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.0ms)
46414
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (2.2ms)
46415
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.7ms)
46416
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.4ms)
46417
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.4ms)
46418
+ Completed 200 OK in 60ms (Views: 58.6ms | ActiveRecord: 0.0ms)
46419
+  (0.6ms) rollback transaction
46420
+  (0.1ms) begin transaction
46421
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46422
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46423
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46424
+
46425
+
46426
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-10 14:46:38 -0400
46427
+ Processing by WelcomeController#logged_in_page as HTML
46428
+ Completed 401 Unauthorized in 0ms
46429
+  (0.1ms) SAVEPOINT active_record_1
46430
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
46431
+ Binary data inserted for `string` type on column `encrypted_password`
46432
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "deleted", "email", "encrypted_password", "first_name", "last_name", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "status", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Sep 2012 18:46:38 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$G57Zblb/A9U4WCQuI5f6fuqYuw0X/SWOzYH8jTfuIjKYCq7cyciD6"], ["first_name", "FirstName"], ["last_name", "LastName"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["status", "pending"], ["updated_at", Mon, 10 Sep 2012 18:46:38 UTC +00:00]]
46433
+  (0.1ms) RELEASE SAVEPOINT active_record_1
46434
+  (0.0ms) SAVEPOINT active_record_1
46435
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
46436
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46437
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
46438
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
46439
+
46440
+
46441
+ Started POST "/users/login" for 127.0.0.1 at 2012-09-10 14:46:38 -0400
46442
+ Processing by Contour::SessionsController#create as HTML
46443
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
46444
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
46445
+  (0.1ms) SAVEPOINT active_record_1
46446
+  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2012-09-10 18:46:38.667006', "current_sign_in_at" = '2012-09-10 18:46:38.667006', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2012-09-10 18:46:38.667723' WHERE "users"."id" = 999914116
46447
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46448
+ Redirected to http://www.example.com/logged_in_page
46449
+ Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
46450
+
46451
+
46452
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-10 14:46:38 -0400
46453
+ Processing by WelcomeController#logged_in_page as HTML
46454
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 LIMIT 1
46455
+ Completed 200 OK in 40ms (Views: 38.1ms | ActiveRecord: 0.2ms)
46456
+  (20.6ms) rollback transaction
46457
+  (0.1ms) begin transaction
46458
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46459
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46460
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46461
+
46462
+
46463
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-10 14:46:38 -0400
46464
+ Processing by WelcomeController#logged_in_page as HTML
46465
+ Completed 401 Unauthorized in 0ms
46466
+  (0.1ms) SAVEPOINT active_record_1
46467
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
46468
+ Binary data inserted for `string` type on column `encrypted_password`
46469
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "deleted", "email", "encrypted_password", "first_name", "last_name", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "status", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Sep 2012 18:46:38 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$0rHzFelYVGcrF5Wc4DrMtO9x5pwcDR7xUJkVm77cUX2buEj/QyXs2"], ["first_name", "MyString"], ["last_name", "MyString"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["status", "pending"], ["updated_at", Mon, 10 Sep 2012 18:46:38 UTC +00:00]]
46470
+  (0.1ms) RELEASE SAVEPOINT active_record_1
46471
+  (0.0ms) SAVEPOINT active_record_1
46472
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
46473
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46474
+ SQL (7.6ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
46475
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
46476
+
46477
+
46478
+ Started POST "/users/login" for 127.0.0.1 at 2012-09-10 14:46:38 -0400
46479
+ Processing by Contour::SessionsController#create as HTML
46480
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
46481
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
46482
+  (0.1ms) SAVEPOINT active_record_1
46483
+  (0.1ms) RELEASE SAVEPOINT active_record_1
46484
+ Completed 401 Unauthorized in 5ms
46485
+
46486
+
46487
+ Started GET "/users/login" for 127.0.0.1 at 2012-09-10 14:46:38 -0400
46488
+ Processing by Contour::SessionsController#new as HTML
46489
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.6ms)
46490
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (2.0ms)
46491
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
46492
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.3ms)
46493
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.3ms)
46494
+ Completed 200 OK in 13ms (Views: 12.2ms | ActiveRecord: 0.0ms)
46495
+  (19.0ms) rollback transaction
46496
+  (0.1ms) begin transaction
46497
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46498
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46499
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46500
+
46501
+
46502
+ Started GET "/" for 127.0.0.1 at 2012-09-10 14:46:38 -0400
46503
+ Processing by WelcomeController#index as HTML
46504
+ Completed 401 Unauthorized in 1ms
46505
+  (0.1ms) rollback transaction
46506
+  (0.1ms) begin transaction
46507
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46508
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46509
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46510
+
46511
+
46512
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2012-09-10 14:46:38 -0400
46513
+ Processing by WelcomeController#logged_in_page as JSON
46514
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
46515
+  (0.1ms) SAVEPOINT active_record_1
46516
+  (0.3ms) UPDATE "users" SET "last_sign_in_at" = '2012-09-10 18:46:38.923351', "current_sign_in_at" = '2012-09-10 18:46:38.923351', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2012-09-10 18:46:38.924080' WHERE "users"."id" = 201799169
46517
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46518
+ Completed 200 OK in 87ms (Views: 0.2ms | ActiveRecord: 0.6ms)
46519
+  (137.2ms) rollback transaction
46520
+  (0.1ms) begin transaction
46521
+ User Load (7.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46522
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46523
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46524
+
46525
+
46526
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2012-09-10 14:46:39 -0400
46527
+ Processing by WelcomeController#logged_in_page as JSON
46528
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
46529
+ Completed 401 Unauthorized in 79ms
46530
+  (0.1ms) rollback transaction
46531
+  (0.1ms) begin transaction
46532
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46533
+  (0.1ms) rollback transaction
46534
+  (0.0ms) begin transaction
46535
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46536
+  (0.0ms) rollback transaction
46537
+ Connecting to database specified by database.yml
46538
+  (0.1ms) begin transaction
46539
+ Fixture Delete (8.1ms) DELETE FROM "authentications"
46540
+ Fixture Insert (0.5ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2012-09-10 18:52:14', '2012-09-10 18:52:14', 949717663, 201799169)
46541
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2012-09-10 18:52:14', '2012-09-10 18:52:14', 876923740, 201799169)
46542
+ Fixture Insert (0.0ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('ldap', 'CN=ldapid,CN=Users,DC=example,DC=com', '2012-09-10 18:52:14', '2012-09-10 18:52:14', 864673665, 201799169)
46543
+ Fixture Delete (1.4ms) DELETE FROM "users"
46544
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2012-09-10 18:52:14', '2012-09-10 18:52:14', 201799169)
46545
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'inactive', 'f', 'EmailTwo', 'MyString', 'ResetTokenTwo', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2012-09-10 18:52:14', '2012-09-10 18:52:14', 999914115)
46546
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2012-09-10 18:52:14', '2012-09-10 18:52:14', 725306934)
46547
+ Fixture Insert (0.1ms) INSERT INTO "users" ("first_name", "last_name", "status", "deleted", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2012-09-10 18:52:14', '2012-09-10 18:52:14', 349534908)
46548
+  (2.1ms) commit transaction
46549
+  (0.0ms) begin transaction
46550
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
46551
+  (0.1ms) rollback transaction
46552
+  (0.1ms) begin transaction
46553
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
46554
+  (0.0ms) rollback transaction
46555
+  (0.1ms) begin transaction
46556
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46557
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
46558
+  (0.1ms) SELECT COUNT(*) FROM "authentications" 
46559
+ Processing by Contour::AuthenticationsController#create as HTML
46560
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2012-09-10 18:52:14 UTC", "updated_at"=>"2012-09-10 18:52:14 UTC"}}
46561
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
46562
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
46563
+ Logged in user found, creating associated authentication.
46564
+  (0.1ms) SAVEPOINT active_record_1
46565
+ SQL (0.8ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 10 Sep 2012 18:52:14 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Mon, 10 Sep 2012 18:52:14 UTC +00:00], ["user_id", 201799169]]
46566
+  (0.1ms) RELEASE SAVEPOINT active_record_1
46567
+ Redirected to http://test.host/authentications
46568
+ Completed 302 Found in 52ms (ActiveRecord: 1.1ms)
46569
+  (0.1ms) SELECT COUNT(*) FROM "authentications" 
46570
+  (0.5ms) rollback transaction
46571
+  (0.1ms) begin transaction
46572
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46573
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
46574
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
46575
+ Processing by Contour::AuthenticationsController#destroy as HTML
46576
+ Parameters: {"id"=>"949717663"}
46577
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
46578
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169 AND "authentications"."id" = ? LIMIT 1 [["id", "949717663"]]
46579
+  (0.1ms) SAVEPOINT active_record_1
46580
+ SQL (0.9ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
46581
+  (0.1ms) RELEASE SAVEPOINT active_record_1
46582
+ Redirected to http://test.host/authentications
46583
+ Completed 302 Found in 7ms (ActiveRecord: 1.4ms)
46584
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
46585
+  (0.4ms) rollback transaction
46586
+  (0.1ms) begin transaction
46587
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46588
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
46589
+ Processing by Contour::AuthenticationsController#index as HTML
46590
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
46591
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 201799169
46592
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169
46593
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (4.0ms)
46594
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.0ms)
46595
+ Completed 200 OK in 147ms (Views: 144.8ms | ActiveRecord: 0.4ms)
46596
+  (0.1ms) rollback transaction
46597
+  (0.1ms) begin transaction
46598
+ Processing by Contour::PasswordsController#create as HTML
46599
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
46600
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
46601
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'rLcHTFNPKGXUu5Qq3CRx' LIMIT 1
46602
+  (0.1ms) SAVEPOINT active_record_1
46603
+  (0.4ms) UPDATE "users" SET "reset_password_token" = 'rLcHTFNPKGXUu5Qq3CRx', "reset_password_sent_at" = '2012-09-10 18:52:15.147756', "updated_at" = '2012-09-10 18:52:15.149159' WHERE "users"."id" = 201799169
46604
+  (0.1ms) RELEASE SAVEPOINT active_record_1
46605
+
46606
+ Sent mail to valid@example.com (74ms)
46607
+ Date: Mon, 10 Sep 2012 14:52:15 -0400
46608
+ From: please-change-me-at-config-initializers-devise@example.com
46609
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
46610
+ To: valid@example.com
46611
+ Message-ID: <504e36df6bdf5_b1aa3ffc4d835ad4887c0@edge2.partners.org.mail>
46612
+ Subject: Reset password instructions
46613
+ Mime-Version: 1.0
46614
+ Content-Type: text/html;
46615
+ charset=UTF-8
46616
+ Content-Transfer-Encoding: 7bit
46617
+
46618
+ <p>Hello valid@example.com!</p>
46619
+
46620
+ <p>Someone has requested a link to change your password, and you can do this through the link below.</p>
46621
+
46622
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=rLcHTFNPKGXUu5Qq3CRx">Change my password</a></p>
46623
+
46624
+ <p>If you didn't request this, please ignore this email.</p>
46625
+ <p>Your password won't change until you access the link above and create a new one.</p>
46626
+
46627
+ Redirected to http://test.host/users/login
46628
+ Completed 302 Found in 416ms (ActiveRecord: 0.0ms)
46629
+  (0.6ms) rollback transaction
46630
+  (0.1ms) begin transaction
46631
+ Processing by Contour::PasswordsController#new as HTML
46632
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (2.9ms)
46633
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (2.2ms)
46634
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (5.3ms)
46635
+ Completed 200 OK in 39ms (Views: 38.0ms | ActiveRecord: 0.0ms)
46636
+  (0.1ms) rollback transaction
46637
+  (0.1ms) begin transaction
46638
+  (0.0ms) rollback transaction
46639
+  (0.0ms) begin transaction
46640
+  (0.0ms) rollback transaction
46641
+  (0.1ms) begin transaction
46642
+  (0.0ms) rollback transaction
46643
+  (0.1ms) begin transaction
46644
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46645
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46646
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46647
+
46648
+
46649
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-10 14:52:15 -0400
46650
+ Processing by WelcomeController#logged_in_page as HTML
46651
+ Completed 401 Unauthorized in 1ms
46652
+  (0.1ms) SAVEPOINT active_record_1
46653
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
46654
+ Binary data inserted for `string` type on column `encrypted_password`
46655
+ SQL (0.9ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "deleted", "email", "encrypted_password", "first_name", "last_name", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "status", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Sep 2012 18:52:15 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$zaTDlrcmvornfxQwcHcdheqy8WCGuMIlOoLiR6jRroF9ZSL.nAdpe"], ["first_name", "Deleted"], ["last_name", "User"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["status", "pending"], ["updated_at", Mon, 10 Sep 2012 18:52:15 UTC +00:00]]
46656
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46657
+  (0.0ms) SAVEPOINT active_record_1
46658
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
46659
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46660
+ SQL (0.4ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
46661
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
46662
+
46663
+
46664
+ Started POST "/users/login" for 127.0.0.1 at 2012-09-10 14:52:15 -0400
46665
+ Processing by Contour::SessionsController#create as HTML
46666
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
46667
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
46668
+  (0.1ms) SAVEPOINT active_record_1
46669
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46670
+ Completed 401 Unauthorized in 33ms
46671
+
46672
+
46673
+ Started GET "/users/login" for 127.0.0.1 at 2012-09-10 14:52:15 -0400
46674
+ Processing by Contour::SessionsController#new as HTML
46675
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.8ms)
46676
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (1.9ms)
46677
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.6ms)
46678
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.2ms)
46679
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.7ms)
46680
+ Completed 200 OK in 47ms (Views: 45.9ms | ActiveRecord: 0.0ms)
46681
+  (0.8ms) rollback transaction
46682
+  (0.1ms) begin transaction
46683
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46684
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46685
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46686
+
46687
+
46688
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-10 14:52:15 -0400
46689
+ Processing by WelcomeController#logged_in_page as HTML
46690
+ Completed 401 Unauthorized in 0ms
46691
+  (0.1ms) SAVEPOINT active_record_1
46692
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
46693
+ Binary data inserted for `string` type on column `encrypted_password`
46694
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "deleted", "email", "encrypted_password", "first_name", "last_name", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "status", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Sep 2012 18:52:15 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$Rx5HH42oS1OQVe38cBwoSuHyZUnquuWvMlyWDoIIzXJjXTw3SarHC"], ["first_name", "FirstName"], ["last_name", "LastName"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["status", "pending"], ["updated_at", Mon, 10 Sep 2012 18:52:15 UTC +00:00]]
46695
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46696
+  (0.0ms) SAVEPOINT active_record_1
46697
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
46698
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46699
+ SQL (0.4ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
46700
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
46701
+
46702
+
46703
+ Started POST "/users/login" for 127.0.0.1 at 2012-09-10 14:52:15 -0400
46704
+ Processing by Contour::SessionsController#create as HTML
46705
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
46706
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
46707
+  (0.1ms) SAVEPOINT active_record_1
46708
+  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2012-09-10 18:52:15.822608', "current_sign_in_at" = '2012-09-10 18:52:15.822608', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2012-09-10 18:52:15.823390' WHERE "users"."id" = 999914116
46709
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46710
+ Redirected to http://www.example.com/logged_in_page
46711
+ Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
46712
+
46713
+
46714
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-10 14:52:15 -0400
46715
+ Processing by WelcomeController#logged_in_page as HTML
46716
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 LIMIT 1
46717
+ Completed 200 OK in 15ms (Views: 13.6ms | ActiveRecord: 0.1ms)
46718
+  (0.8ms) rollback transaction
46719
+  (0.1ms) begin transaction
46720
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46721
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46722
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46723
+
46724
+
46725
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-09-10 14:52:15 -0400
46726
+ Processing by WelcomeController#logged_in_page as HTML
46727
+ Completed 401 Unauthorized in 0ms
46728
+  (0.1ms) SAVEPOINT active_record_1
46729
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
46730
+ Binary data inserted for `string` type on column `encrypted_password`
46731
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "deleted", "email", "encrypted_password", "first_name", "last_name", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "status", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 10 Sep 2012 18:52:15 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$WBcH8fjU.Ny8O/.8wYS.y.xEQxTDtDU5CAh5zxR4Gc8YyOLZfoBZK"], ["first_name", "MyString"], ["last_name", "MyString"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["status", "pending"], ["updated_at", Mon, 10 Sep 2012 18:52:15 UTC +00:00]]
46732
+  (0.1ms) RELEASE SAVEPOINT active_record_1
46733
+  (0.0ms) SAVEPOINT active_record_1
46734
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
46735
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46736
+ SQL (0.4ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
46737
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
46738
+
46739
+
46740
+ Started POST "/users/login" for 127.0.0.1 at 2012-09-10 14:52:15 -0400
46741
+ Processing by Contour::SessionsController#create as HTML
46742
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
46743
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
46744
+  (0.0ms) SAVEPOINT active_record_1
46745
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46746
+ Completed 401 Unauthorized in 4ms
46747
+
46748
+
46749
+ Started GET "/users/login" for 127.0.0.1 at 2012-09-10 14:52:15 -0400
46750
+ Processing by Contour::SessionsController#new as HTML
46751
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.7ms)
46752
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (1.4ms)
46753
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.0ms)
46754
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.3ms)
46755
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.7ms)
46756
+ Completed 200 OK in 11ms (Views: 10.5ms | ActiveRecord: 0.0ms)
46757
+  (0.8ms) rollback transaction
46758
+  (0.1ms) begin transaction
46759
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46760
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46761
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46762
+
46763
+
46764
+ Started GET "/" for 127.0.0.1 at 2012-09-10 14:52:15 -0400
46765
+ Processing by WelcomeController#index as HTML
46766
+ Completed 401 Unauthorized in 1ms
46767
+  (0.1ms) rollback transaction
46768
+  (0.0ms) begin transaction
46769
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46770
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46771
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46772
+
46773
+
46774
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2012-09-10 14:52:15 -0400
46775
+ Processing by WelcomeController#logged_in_page as JSON
46776
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
46777
+  (0.1ms) SAVEPOINT active_record_1
46778
+  (0.5ms) UPDATE "users" SET "last_sign_in_at" = '2012-09-10 18:52:15.998592', "current_sign_in_at" = '2012-09-10 18:52:15.998592', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2012-09-10 18:52:15.999303' WHERE "users"."id" = 201799169
46779
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46780
+ Completed 200 OK in 87ms (Views: 0.3ms | ActiveRecord: 0.7ms)
46781
+  (0.7ms) rollback transaction
46782
+  (0.0ms) begin transaction
46783
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46784
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
46785
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
46786
+
46787
+
46788
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2012-09-10 14:52:16 -0400
46789
+ Processing by WelcomeController#logged_in_page as JSON
46790
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
46791
+ Completed 401 Unauthorized in 82ms
46792
+  (0.1ms) rollback transaction
46793
+  (0.1ms) begin transaction
46794
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46795
+  (0.1ms) rollback transaction
46796
+  (0.1ms) begin transaction
46797
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
46798
+  (0.0ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contour
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0.rc2
4
+ version: 1.1.0.rc3
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-05 00:00:00.000000000 Z
12
+ date: 2012-09-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails