contour 1.0.0.beta4 → 1.0.0.beta5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -5,6 +5,8 @@
5
5
  * Authentications can now be placed as a submenu using { authentications: true } anywhere in the contour links configuration
6
6
  * Rails updated to minimum 3.2.3
7
7
  * Redirects to the user's alternate login page if a user fails to login on the default devise sign in page
8
+ * Registration page can now have fields added by modifying <tt>config.sign_up_fields</tt>
9
+ * Ex: <tt>config.sign_up_fields = [ { attribute: 'first_name', type: 'text_field' }, { attribute: 'last_name', type: 'text_field' } ]</tt>
8
10
 
9
11
  * Breaking Changes
10
12
  * CSS updated to use Twitter-Bootstrap
@@ -6,6 +6,15 @@
6
6
  <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), html: { class: 'form-horizontal' }) do |f| %>
7
7
  <%= devise_error_messages! %>
8
8
 
9
+ <% Contour.sign_up_fields.each do |field_hash| %>
10
+ <div class="control-group">
11
+ <%= f.label field_hash[:attribute], class: 'control-label' %>
12
+ <div class="controls">
13
+ <%= f.send(field_hash[:type], field_hash[:attribute]) %>
14
+ </div>
15
+ </div>
16
+ <% end %>
17
+
9
18
  <div class="control-group">
10
19
  <%= f.label :email, class: 'control-label' %>
11
20
  <div class="controls">
data/lib/contour.rb CHANGED
@@ -74,6 +74,11 @@ module Contour
74
74
  mattr_accessor :month_day
75
75
  @@month_day = {}
76
76
 
77
+ # An array of fields to add to the sign up form
78
+ # An example might be [ { attribute: 'first_name', type: 'text_field' }, { attribute: 'last_name', type: 'text_field' } ]
79
+ mattr_accessor :sign_up_fields
80
+ @@sign_up_fields = []
81
+
77
82
  def self.setup
78
83
  yield self
79
84
  end
@@ -4,5 +4,10 @@ require "rails"
4
4
  module Contour
5
5
  class Engine < Rails::Engine
6
6
  engine_name :contour
7
+
8
+ # Overwrite Rails errors to use Twitter CSS classes
9
+ # config.action_view.field_error_proc = Proc.new{ |html_tag, instance| "<div class=\"field_with_errors\">#{html_tag}</div>".html_safe }
10
+ config.action_view.field_error_proc = Proc.new { |html_tag, instance| "<span class=\"control-group error\">#{html_tag}</span>".html_safe }
11
+
7
12
  end
8
13
  end
@@ -3,7 +3,7 @@ module Contour
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
5
  TINY = 0
6
- BUILD = "beta4" # nil, "pre", "rc", "rc2"
6
+ BUILD = "beta5" # nil, "pre", "rc", "rc2"
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
9
9
  end
@@ -59,4 +59,8 @@ Contour.setup do |config|
59
59
  # Note the lack of leading zeros!
60
60
  # Special days take precendence over the rotating options given above
61
61
  # config.month_day = {}
62
+
63
+ # An array of hashes that specify additional fields to add to the sign up form
64
+ # An example might be [ { attribute: 'first_name', type: 'text_field' }, { attribute: 'last_name', type: 'text_field' } ]
65
+ # config.sign_up_fields = []
62
66
  end
Binary file
@@ -33032,3 +33032,267 @@ Completed 401 Unauthorized in 84ms
33032
33032
   (0.1ms) begin transaction
33033
33033
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
33034
33034
   (0.0ms) rollback transaction
33035
+  (0.1ms) begin transaction
33036
+ Fixture Delete (0.2ms) DELETE FROM "authentications"
33037
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2012-05-04 13:57:42', '2012-05-04 13:57:42', 949717663, 201799169)
33038
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2012-05-04 13:57:42', '2012-05-04 13:57:42', 876923740, 201799169)
33039
+ 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-05-04 13:57:42', '2012-05-04 13:57:42', 864673665, 201799169)
33040
+ Fixture Delete (0.1ms) DELETE FROM "users"
33041
+ 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-05-04 13:57:42', '2012-05-04 13:57:42', 201799169)
33042
+ 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-05-04 13:57:42', '2012-05-04 13:57:42', 999914115)
33043
+ 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-05-04 13:57:42', '2012-05-04 13:57:42', 725306934)
33044
+ 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-05-04 13:57:42', '2012-05-04 13:57:42', 349534908)
33045
+  (2.2ms) commit transaction
33046
+  (0.1ms) begin transaction
33047
+ Authentication Load (0.3ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
33048
+  (0.1ms) rollback transaction
33049
+  (0.0ms) begin transaction
33050
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
33051
+  (0.0ms) rollback transaction
33052
+  (0.1ms) begin transaction
33053
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
33054
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
33055
+  (0.1ms) SELECT COUNT(*) FROM "authentications" 
33056
+ Processing by Contour::AuthenticationsController#create as HTML
33057
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2012-05-04 13:57:42 UTC", "updated_at"=>"2012-05-04 13:57:42 UTC"}}
33058
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
33059
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
33060
+ Logged in user found, creating associated authentication.
33061
+  (0.1ms) SAVEPOINT active_record_1
33062
+ SQL (0.5ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 04 May 2012 13:57:42 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Fri, 04 May 2012 13:57:42 UTC +00:00], ["user_id", 201799169]]
33063
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33064
+ Redirected to http://test.host/authentications
33065
+ Completed 302 Found in 23ms (ActiveRecord: 0.8ms)
33066
+  (0.1ms) SELECT COUNT(*) FROM "authentications" 
33067
+  (0.7ms) rollback transaction
33068
+  (0.0ms) begin transaction
33069
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
33070
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
33071
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
33072
+ Processing by Contour::AuthenticationsController#destroy as HTML
33073
+ Parameters: {"id"=>"949717663"}
33074
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
33075
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169 AND "authentications"."id" = ? LIMIT 1 [["id", "949717663"]]
33076
+  (0.0ms) SAVEPOINT active_record_1
33077
+ SQL (0.2ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
33078
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33079
+ Redirected to http://test.host/authentications
33080
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
33081
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
33082
+  (0.9ms) rollback transaction
33083
+  (0.0ms) begin transaction
33084
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
33085
+ Authentication Load (0.0ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
33086
+ Processing by Contour::AuthenticationsController#index as HTML
33087
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1
33088
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 201799169
33089
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169
33090
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (2.3ms)
33091
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.4ms)
33092
+ Completed 200 OK in 28ms (Views: 25.8ms | ActiveRecord: 0.4ms)
33093
+  (0.1ms) rollback transaction
33094
+  (0.1ms) begin transaction
33095
+ Processing by Contour::PasswordsController#create as HTML
33096
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
33097
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
33098
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'SDPJSCGSB362kFxkqUVF' LIMIT 1
33099
+  (0.0ms) SAVEPOINT active_record_1
33100
+  (0.3ms) UPDATE "users" SET "reset_password_token" = 'SDPJSCGSB362kFxkqUVF', "reset_password_sent_at" = '2012-05-04 13:57:42.354476', "updated_at" = '2012-05-04 13:57:42.355172' WHERE "users"."id" = 201799169
33101
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33102
+
33103
+ Sent mail to valid@example.com (47ms)
33104
+ Date: Fri, 04 May 2012 09:57:42 -0400
33105
+ From: please-change-me-at-config-initializers-devise@example.com
33106
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
33107
+ To: valid@example.com
33108
+ Message-ID: <4fa3e0567e3b9_28f73fd555434cd82622c@edge.mail>
33109
+ Subject: Reset password instructions
33110
+ Mime-Version: 1.0
33111
+ Content-Type: text/html;
33112
+ charset=UTF-8
33113
+ Content-Transfer-Encoding: 7bit
33114
+
33115
+ <p>Hello valid@example.com!</p>
33116
+
33117
+ <p>Someone has requested a link to change your password, and you can do this through the link below.</p>
33118
+
33119
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=SDPJSCGSB362kFxkqUVF">Change my password</a></p>
33120
+
33121
+ <p>If you didn't request this, please ignore this email.</p>
33122
+ <p>Your password won't change until you access the link above and create a new one.</p>
33123
+
33124
+ Redirected to http://test.host/users/login
33125
+ Completed 302 Found in 184ms (ActiveRecord: 0.0ms)
33126
+  (0.8ms) rollback transaction
33127
+  (0.0ms) begin transaction
33128
+ Processing by Contour::PasswordsController#new as HTML
33129
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (1.8ms)
33130
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (2.0ms)
33131
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.2ms)
33132
+ Completed 200 OK in 14ms (Views: 13.3ms | ActiveRecord: 0.0ms)
33133
+  (0.1ms) rollback transaction
33134
+  (0.1ms) begin transaction
33135
+  (0.0ms) rollback transaction
33136
+  (0.1ms) begin transaction
33137
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
33138
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
33139
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
33140
+
33141
+
33142
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-05-04 09:57:42 -0400
33143
+ Processing by WelcomeController#logged_in_page as HTML
33144
+ Completed 401 Unauthorized in 1ms
33145
+  (0.1ms) SAVEPOINT active_record_1
33146
+ User Exists (0.1ms) SELECT 1 FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
33147
+ Binary data inserted for `string` type on column `encrypted_password`
33148
+ 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", Fri, 04 May 2012 13:57:42 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$GLtaJeJWFdR0COXhWWe7jeGk5l19Dwc/u6C1g5gIXDl1DpJ0w51.O"], ["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", Fri, 04 May 2012 13:57:42 UTC +00:00]]
33149
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33150
+  (0.0ms) SAVEPOINT active_record_1
33151
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
33152
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33153
+  (0.0ms) SAVEPOINT active_record_1
33154
+  (0.3ms) UPDATE "users" SET "status" = 'active', "updated_at" = '2012-05-04 13:57:42.625892' WHERE "users"."id" = 999914116
33155
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33156
+  (0.0ms) SAVEPOINT active_record_1
33157
+  (0.1ms) UPDATE "users" SET "deleted" = 't', "updated_at" = '2012-05-04 13:57:42.627132' WHERE "users"."id" = 999914116
33158
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33159
+
33160
+
33161
+ Started POST "/users/login" for 127.0.0.1 at 2012-05-04 09:57:42 -0400
33162
+ Processing by Contour::SessionsController#create as HTML
33163
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
33164
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
33165
+  (0.1ms) SAVEPOINT active_record_1
33166
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33167
+ Completed 401 Unauthorized in 31ms
33168
+
33169
+
33170
+ Started GET "/users/login" for 127.0.0.1 at 2012-05-04 09:57:42 -0400
33171
+ Processing by Contour::SessionsController#new as HTML
33172
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.7ms)
33173
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.5ms)
33174
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.4ms)
33175
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.1ms)
33176
+ Completed 200 OK in 14ms (Views: 13.0ms | ActiveRecord: 0.0ms)
33177
+  (0.8ms) rollback transaction
33178
+  (0.1ms) begin transaction
33179
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
33180
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
33181
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
33182
+
33183
+
33184
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-05-04 09:57:42 -0400
33185
+ Processing by WelcomeController#logged_in_page as HTML
33186
+ Completed 401 Unauthorized in 0ms
33187
+  (0.1ms) SAVEPOINT active_record_1
33188
+ User Exists (0.1ms) SELECT 1 FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
33189
+ Binary data inserted for `string` type on column `encrypted_password`
33190
+ 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", Fri, 04 May 2012 13:57:42 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$ROfA6FOgP/VpD548Duvi0uVHN45QV5mysVicb2E0W1DvD4fMivnIO"], ["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", Fri, 04 May 2012 13:57:42 UTC +00:00]]
33191
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33192
+  (0.0ms) SAVEPOINT active_record_1
33193
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
33194
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33195
+  (0.0ms) SAVEPOINT active_record_1
33196
+  (0.3ms) UPDATE "users" SET "status" = 'active', "updated_at" = '2012-05-04 13:57:42.703211' WHERE "users"."id" = 999914116
33197
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33198
+  (0.0ms) SAVEPOINT active_record_1
33199
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33200
+
33201
+
33202
+ Started POST "/users/login" for 127.0.0.1 at 2012-05-04 09:57:42 -0400
33203
+ Processing by Contour::SessionsController#create as HTML
33204
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
33205
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
33206
+  (0.0ms) SAVEPOINT active_record_1
33207
+  (0.1ms) UPDATE "users" SET "last_sign_in_at" = '2012-05-04 13:57:42.711399', "current_sign_in_at" = '2012-05-04 13:57:42.711399', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2012-05-04 13:57:42.711882' WHERE "users"."id" = 999914116
33208
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33209
+ Redirected to http://www.example.com/logged_in_page
33210
+ Completed 302 Found in 7ms (ActiveRecord: 0.0ms)
33211
+
33212
+
33213
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-05-04 09:57:42 -0400
33214
+ Processing by WelcomeController#logged_in_page as HTML
33215
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 LIMIT 1
33216
+ Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)
33217
+  (0.7ms) rollback transaction
33218
+  (0.1ms) begin transaction
33219
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
33220
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
33221
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
33222
+
33223
+
33224
+ Started GET "/logged_in_page" for 127.0.0.1 at 2012-05-04 09:57:42 -0400
33225
+ Processing by WelcomeController#logged_in_page as HTML
33226
+ Completed 401 Unauthorized in 0ms
33227
+  (0.1ms) SAVEPOINT active_record_1
33228
+ User Exists (0.1ms) SELECT 1 FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
33229
+ Binary data inserted for `string` type on column `encrypted_password`
33230
+ 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", Fri, 04 May 2012 13:57:42 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["deleted", false], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$Z4pHpgs9Q/7KbRqzLYqajO2chXQ4SsSMt9bJ1sKiybb2rx7Z3VA6q"], ["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", Fri, 04 May 2012 13:57:42 UTC +00:00]]
33231
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33232
+  (0.0ms) SAVEPOINT active_record_1
33233
+  (0.1ms) SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
33234
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33235
+  (0.0ms) SAVEPOINT active_record_1
33236
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33237
+  (0.0ms) SAVEPOINT active_record_1
33238
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33239
+
33240
+
33241
+ Started POST "/users/login" for 127.0.0.1 at 2012-05-04 09:57:42 -0400
33242
+ Processing by Contour::SessionsController#create as HTML
33243
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
33244
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
33245
+  (0.1ms) SAVEPOINT active_record_1
33246
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33247
+ Completed 401 Unauthorized in 4ms
33248
+
33249
+
33250
+ Started GET "/users/login" for 127.0.0.1 at 2012-05-04 09:57:42 -0400
33251
+ Processing by Contour::SessionsController#new as HTML
33252
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.5ms)
33253
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.0ms)
33254
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.4ms)
33255
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.9ms)
33256
+ Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms)
33257
+  (0.8ms) rollback transaction
33258
+  (0.1ms) begin transaction
33259
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
33260
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
33261
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
33262
+
33263
+
33264
+ Started GET "/" for 127.0.0.1 at 2012-05-04 09:57:42 -0400
33265
+ Processing by WelcomeController#index as HTML
33266
+ Completed 401 Unauthorized in 1ms
33267
+  (0.1ms) rollback transaction
33268
+  (0.1ms) begin transaction
33269
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
33270
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
33271
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
33272
+
33273
+
33274
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2012-05-04 09:57:42 -0400
33275
+ Processing by WelcomeController#logged_in_page as JSON
33276
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
33277
+  (0.1ms) SAVEPOINT active_record_1
33278
+  (0.2ms) UPDATE "users" SET "last_sign_in_at" = '2012-05-04 13:57:42.884645', "current_sign_in_at" = '2012-05-04 13:57:42.884645', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2012-05-04 13:57:42.885270' WHERE "users"."id" = 201799169
33279
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33280
+ Completed 200 OK in 80ms (Views: 0.2ms | ActiveRecord: 0.5ms)
33281
+  (5.8ms) rollback transaction
33282
+  (0.1ms) begin transaction
33283
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
33284
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
33285
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
33286
+
33287
+
33288
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2012-05-04 09:57:42 -0400
33289
+ Processing by WelcomeController#logged_in_page as JSON
33290
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
33291
+ Completed 401 Unauthorized in 79ms
33292
+  (0.1ms) rollback transaction
33293
+  (0.0ms) begin transaction
33294
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
33295
+  (0.1ms) rollback transaction
33296
+  (0.0ms) begin transaction
33297
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
33298
+  (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.0.0.beta4
4
+ version: 1.0.0.beta5
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-05-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70364745049700 !ruby/object:Gem::Requirement
16
+ requirement: &70141383964500 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.2.3
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70364745049700
24
+ version_requirements: *70141383964500
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: twitter-bootstrap-rails
27
- requirement: &70364745049200 !ruby/object:Gem::Requirement
27
+ requirement: &70141385459240 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.0.6
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70364745049200
35
+ version_requirements: *70141385459240
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: jquery-rails
38
- requirement: &70364745048740 !ruby/object:Gem::Requirement
38
+ requirement: &70141385458780 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 2.0.2
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70364745048740
46
+ version_requirements: *70141385458780
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: devise
49
- requirement: &70364745048280 !ruby/object:Gem::Requirement
49
+ requirement: &70141385458320 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 2.0.4
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70364745048280
57
+ version_requirements: *70141385458320
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: omniauth
60
- requirement: &70364745047820 !ruby/object:Gem::Requirement
60
+ requirement: &70141385457860 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 1.0.3
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70364745047820
68
+ version_requirements: *70141385457860
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: omniauth-openid
71
- requirement: &70364745047360 !ruby/object:Gem::Requirement
71
+ requirement: &70141385457400 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 1.0.1
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70364745047360
79
+ version_requirements: *70141385457400
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: omniauth-ldap
82
- requirement: &70364745046900 !ruby/object:Gem::Requirement
82
+ requirement: &70141385456940 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: 1.0.2
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *70364745046900
90
+ version_requirements: *70141385456940
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: omniauth-twitter
93
- requirement: &70364743247680 !ruby/object:Gem::Requirement
93
+ requirement: &70141385456480 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: 0.0.11
99
99
  type: :runtime
100
100
  prerelease: false
101
- version_requirements: *70364743247680
101
+ version_requirements: *70141385456480
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: omniauth-facebook
104
- requirement: &70364745065080 !ruby/object:Gem::Requirement
104
+ requirement: &70141385456020 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ~>
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: 1.2.0
110
110
  type: :runtime
111
111
  prerelease: false
112
- version_requirements: *70364745065080
112
+ version_requirements: *70141385456020
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: omniauth-linkedin
115
- requirement: &70364745064620 !ruby/object:Gem::Requirement
115
+ requirement: &70141385455560 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ~>
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: 0.0.6
121
121
  type: :runtime
122
122
  prerelease: false
123
- version_requirements: *70364745064620
123
+ version_requirements: *70141385455560
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: omniauth-cas
126
- requirement: &70364745064160 !ruby/object:Gem::Requirement
126
+ requirement: &70141385455100 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ~>
@@ -131,10 +131,10 @@ dependencies:
131
131
  version: 0.0.6
132
132
  type: :runtime
133
133
  prerelease: false
134
- version_requirements: *70364745064160
134
+ version_requirements: *70141385455100
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: sqlite3
137
- requirement: &70364745063780 !ruby/object:Gem::Requirement
137
+ requirement: &70141385454720 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ! '>='
@@ -142,7 +142,7 @@ dependencies:
142
142
  version: '0'
143
143
  type: :development
144
144
  prerelease: false
145
- version_requirements: *70364745063780
145
+ version_requirements: *70141385454720
146
146
  description: Basic Rails Framework files and assets for layout and authentication
147
147
  email: remosm@gmail.com
148
148
  executables: []