contour 1.0.0.beta4 → 1.0.0.beta5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.rdoc +2 -0
- data/app/views/contour/registrations/new.html.erb +9 -0
- data/lib/contour.rb +5 -0
- data/lib/contour/engine.rb +5 -0
- data/lib/contour/version.rb +1 -1
- data/lib/generators/templates/contour.rb +4 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +264 -0
- metadata +25 -25
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
|
data/lib/contour/engine.rb
CHANGED
@@ -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
|
data/lib/contour/version.rb
CHANGED
@@ -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
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -33032,3 +33032,267 @@ Completed 401 Unauthorized in 84ms
|
|
33032
33032
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
33033
33033
|
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
33034
33034
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33035
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
33036
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "authentications"
|
33037
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
33038
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT 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)[0m
|
33040
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "users"
|
33041
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
33042
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
33044
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (2.2ms)[0m [1mcommit transaction[0m
|
33046
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33047
|
+
[1m[36mAuthentication Load (0.3ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 876923740]]
|
33048
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33049
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33050
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
33051
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33052
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33053
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
33054
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
33055
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications" [0m
|
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
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
|
33059
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1[0m
|
33060
|
+
Logged in user found, creating associated authentication.
|
33061
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
33062
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33064
|
+
Redirected to http://test.host/authentications
|
33065
|
+
Completed 302 Found in 23ms (ActiveRecord: 0.8ms)
|
33066
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications" [0m
|
33067
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
33068
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33069
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
33070
|
+
[1m[36mAuthentication Load (0.0ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1[0m [["id", 949717663]]
|
33071
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
33072
|
+
Processing by Contour::AuthenticationsController#destroy as HTML
|
33073
|
+
Parameters: {"id"=>"949717663"}
|
33074
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1[0m
|
33075
|
+
[1m[35mAuthentication Load (0.1ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169 AND "authentications"."id" = ? LIMIT 1 [["id", "949717663"]]
|
33076
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33077
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
|
33078
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33079
|
+
Redirected to http://test.host/authentications
|
33080
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
|
33081
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications"
|
33082
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
33083
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33084
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
33085
|
+
[1m[35mAuthentication Load (0.0ms)[0m SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
|
33086
|
+
Processing by Contour::AuthenticationsController#index as HTML
|
33087
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 201799169 LIMIT 1[0m
|
33088
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 201799169
|
33089
|
+
[1m[36mAuthentication Load (0.1ms)[0m [1mSELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = 201799169[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33094
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
33095
|
+
Processing by Contour::PasswordsController#create as HTML
|
33096
|
+
Parameters: {"user"=>{"email"=>"valid@example.com"}}
|
33097
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
33098
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'SDPJSCGSB362kFxkqUVF' LIMIT 1[0m
|
33099
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33100
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "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[0m
|
33101
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
33127
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33134
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33135
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
33136
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33137
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
33138
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
33139
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
33146
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
33147
|
+
Binary data inserted for `string` type on column `encrypted_password`
|
33148
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33150
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33151
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116[0m
|
33152
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33153
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33154
|
+
[1m[35m (0.3ms)[0m UPDATE "users" SET "status" = 'active', "updated_at" = '2012-05-04 13:57:42.625892' WHERE "users"."id" = 999914116
|
33155
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33156
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33157
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "deleted" = 't', "updated_at" = '2012-05-04 13:57:42.627132' WHERE "users"."id" = 999914116[0m
|
33158
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1[0m
|
33165
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
33166
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
33178
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
33179
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
33180
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
33181
|
+
[1m[35mUser Load (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
33188
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33192
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33193
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
|
33194
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33195
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33196
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "users" SET "status" = 'active', "updated_at" = '2012-05-04 13:57:42.703211' WHERE "users"."id" = 999914116[0m
|
33197
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33198
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33199
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1[0m
|
33206
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33207
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "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[0m
|
33208
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 999914116 LIMIT 1[0m
|
33216
|
+
Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)
|
33217
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
33218
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
33219
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
33220
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
33221
|
+
[1m[35mUser Load (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
33228
|
+
[1m[35mUser Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33232
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
33233
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "authentications" WHERE "authentications"."user_id" = 999914116
|
33234
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33235
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33236
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
33237
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
33238
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
|
33245
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
33246
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
33258
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33259
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
33260
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
33261
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33268
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
33269
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
33270
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 349534908]]
|
33271
|
+
[1m[35mUser Load (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1[0m
|
33277
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
33278
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "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[0m
|
33279
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
33280
|
+
Completed 200 OK in 80ms (Views: 0.2ms | ActiveRecord: 0.5ms)
|
33281
|
+
[1m[36m (5.8ms)[0m [1mrollback transaction[0m
|
33282
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33283
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
33284
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
|
33285
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
|
33291
|
+
Completed 401 Unauthorized in 79ms
|
33292
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
33293
|
+
[1m[35m (0.0ms)[0m begin transaction
|
33294
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 201799169]]
|
33295
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
33296
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33297
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
|
33298
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
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.
|
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: &
|
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: *
|
24
|
+
version_requirements: *70141383964500
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: twitter-bootstrap-rails
|
27
|
-
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: *
|
35
|
+
version_requirements: *70141385459240
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: jquery-rails
|
38
|
-
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: *
|
46
|
+
version_requirements: *70141385458780
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: devise
|
49
|
-
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: *
|
57
|
+
version_requirements: *70141385458320
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: omniauth
|
60
|
-
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: *
|
68
|
+
version_requirements: *70141385457860
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: omniauth-openid
|
71
|
-
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: *
|
79
|
+
version_requirements: *70141385457400
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: omniauth-ldap
|
82
|
-
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: *
|
90
|
+
version_requirements: *70141385456940
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: omniauth-twitter
|
93
|
-
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: *
|
101
|
+
version_requirements: *70141385456480
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: omniauth-facebook
|
104
|
-
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: *
|
112
|
+
version_requirements: *70141385456020
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: omniauth-linkedin
|
115
|
-
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: *
|
123
|
+
version_requirements: *70141385455560
|
124
124
|
- !ruby/object:Gem::Dependency
|
125
125
|
name: omniauth-cas
|
126
|
-
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: *
|
134
|
+
version_requirements: *70141385455100
|
135
135
|
- !ruby/object:Gem::Dependency
|
136
136
|
name: sqlite3
|
137
|
-
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: *
|
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: []
|