contour 2.0.0.beta.7 → 2.0.0.beta.8

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c10187b97c07a223143576b704f1d1db19cf3f33
4
- data.tar.gz: cd25fe5c231086a2cfe158f52d5e2702ac122582
3
+ metadata.gz: e2e36ff6fe24658f8955b5fda5d6ea360da0b84d
4
+ data.tar.gz: 5350dd27ca6f59ea3851e7a4e26bcdb26808020b
5
5
  SHA512:
6
- metadata.gz: 4786c42aa9d0fbebe519f496c5753cd94c6426653f2f8f8f1cb6612eaaa90fdaf4c06f93291ddeace9f7c997d65cd77d8522d482708715831032dc5f72030665
7
- data.tar.gz: b5fd5727d4f6efff32191295b803e928abc98cf372a1e37c4f5b844db58adebba2e6eaca15309eae9fb928ef4867c5e76160586ee92810482efd5c318cee44fd
6
+ metadata.gz: e4f8c971e946814a4dc6a7ad480a10fb33096984c752e6aeda52061d453d4f9a25b7991fbbef44a4c6d6694050087bd83c466c7e86d89510161d8fc7d14ab892
7
+ data.tar.gz: dd2b57fab4bad2440268a4b40bf67ff54f95873cb8605cb26722de89ff2017187eff7b31ca0377c97b7289b79d9d4a42584724524206d85877a4f895ae3525bd
data/CHANGELOG.md CHANGED
@@ -4,6 +4,7 @@
4
4
  - Use of Ruby 2.0.0-p0 is now recommended
5
5
  - **Gem Changes**
6
6
  - Updated to Rails 4.0.0.rc1
7
+ - Updated to Devise 3.0.0.rc
7
8
  - Added `config.spam_fields` to the configuration allowing application registration pages to be configured with honeypot traps for submitter spam bots
8
9
  - Configuring the invisible `spam_fields` may reduce the number of fake registrations without being a burden to the existing registration process
9
10
  - Ex: `config.spam_fields = [ :address ]`
data/contour.gemspec CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
27
27
  s.add_dependency 'rails', '~> 4.0.0.rc1'
28
28
  s.add_dependency 'jquery-rails', '~> 2.2.1'
29
29
  s.add_dependency 'coffee-rails', '~> 4.0.0'
30
- # s.add_dependency 'devise', '~> 2.2.3' # Currently in Gemfile
30
+ s.add_dependency 'devise', '~> 3.0.0.rc'
31
31
  s.add_dependency 'omniauth', '~> 1.1.3'
32
32
  s.add_dependency 'omniauth-cas', '~> 1.0.1'
33
33
  s.add_dependency 'omniauth-facebook', '~> 1.4.1'
@@ -3,7 +3,7 @@ module Contour
3
3
  MAJOR = 2
4
4
  MINOR = 0
5
5
  TINY = 0
6
- BUILD = "beta.7" # nil, "pre", "rc", "rc2"
6
+ BUILD = "beta.8" # nil, "pre", "rc", "rc2"
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
9
9
  end
Binary file
@@ -77788,6 +77788,402 @@ UserTest: test_should_apply_omniauth
77788
77788
   (0.1ms) begin transaction
77789
77789
  --------------------------------------
77790
77790
  UserTest: test_should_get_reverse_name
77791
+ --------------------------------------
77792
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
77793
+  (0.1ms) rollback transaction
77794
+  (0.8ms) begin transaction
77795
+ Fixture Delete (0.6ms) DELETE FROM "authentications"
77796
+ Fixture Insert (0.3ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('open_id', 'open_id@open_id.com', '2013-05-07 17:36:21', '2013-05-07 17:36:21', 949717663, 201799169)
77797
+ Fixture Insert (0.1ms) INSERT INTO "authentications" ("provider", "uid", "created_at", "updated_at", "id", "user_id") VALUES ('google_apps', 'test@gmail.com', '2013-05-07 17:36:21', '2013-05-07 17:36:21', 876923740, 201799169)
77798
+ 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', '2013-05-07 17:36:21', '2013-05-07 17:36:21', 864673665, 201799169)
77799
+ Fixture Delete (0.3ms) DELETE FROM "users"
77800
+ 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 ('FirstName', 'LastName', 'active', 'f', 'valid@example.com', '$2a$10$ZgXIxDCn.TjuCgsnS9iEp.Z1LlmQ71FGKgZe/kdCaVvgvnAAcUaz2', 'ResetTokenOne', 'MyDate', 'MyDate', 0, 'MyDate', 'MyDate', 'MyString', 'MyString', '2013-05-07 17:36:21', '2013-05-07 17:36:21', 201799169)
77801
+ 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', '2013-05-07 17:36:21', '2013-05-07 17:36:21', 999914115)
77802
+ 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 ('Deleted', 'User', 'active', 't', 'deleted@example.com', 'MyString', 'ResetTokenFive', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-05-07 17:36:21', '2013-05-07 17:36:21', 725306934)
77803
+ 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', 'pending', 'f', 'pending@example.com', 'MyString', 'ResetTokenFour', 'MyDate', '2011-02-23', 0, '2011-02-23', '2011-02-23', 'MyString', 'MyString', '2013-05-07 17:36:21', '2013-05-07 17:36:21', 349534908)
77804
+  (1.6ms) commit transaction
77805
+  (0.2ms) begin transaction
77806
+ -------------------------------------------------
77807
+ AuthenticationTest: test_should_get_provider_name
77808
+ -------------------------------------------------
77809
+ Authentication Load (0.4ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 876923740]]
77810
+  (0.2ms) rollback transaction
77811
+  (0.1ms) begin transaction
77812
+ --------------------------------------------------------------------------------
77813
+ AuthenticationTest: test_should_get_provider_name_and_handle_OpenID_special_case
77814
+ --------------------------------------------------------------------------------
77815
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
77816
+  (0.1ms) rollback transaction
77817
+  (0.1ms) begin transaction
77818
+ -------------------------------------------------------------------------
77819
+ Contour::AuthenticationsControllerTest: test_should_create_authentication
77820
+ -------------------------------------------------------------------------
77821
+ User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
77822
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
77823
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
77824
+ Processing by Contour::AuthenticationsController#create as HTML
77825
+ Parameters: {"authentication"=>{"id"=>"949717663", "user_id"=>"201799169", "provider"=>"open_id", "uid"=>"open_id@open_id.com", "created_at"=>"2013-05-07 17:36:21 UTC", "updated_at"=>"2013-05-07 17:36:21 UTC"}}
77826
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."provider" = 'google_apps' AND "authentications"."uid" = 'test@example.com' LIMIT 1
77827
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
77828
+ Logged in user found, creating associated authentication.
77829
+  (0.1ms) SAVEPOINT active_record_1
77830
+ SQL (0.5ms) INSERT INTO "authentications" ("created_at", "provider", "uid", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 17:36:21 UTC +00:00], ["provider", "google_apps"], ["uid", "test@example.com"], ["updated_at", Tue, 07 May 2013 17:36:21 UTC +00:00], ["user_id", 201799169]]
77831
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77832
+ Redirected to http://test.host/authentications
77833
+ Completed 302 Found in 52ms (ActiveRecord: 1.0ms)
77834
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
77835
+  (0.8ms) rollback transaction
77836
+  (0.1ms) begin transaction
77837
+ --------------------------------------------------------------------------
77838
+ Contour::AuthenticationsControllerTest: test_should_destroy_authentication
77839
+ --------------------------------------------------------------------------
77840
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
77841
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
77842
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
77843
+ Processing by Contour::AuthenticationsController#destroy as HTML
77844
+ Parameters: {"id"=>"949717663"}
77845
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
77846
+ Authentication Load (0.2ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? AND "authentications"."id" = ? LIMIT 1 [["user_id", 201799169], ["id", "949717663"]]
77847
+  (0.1ms) SAVEPOINT active_record_1
77848
+ SQL (0.2ms) DELETE FROM "authentications" WHERE "authentications"."id" = ? [["id", 949717663]]
77849
+  (0.0ms) RELEASE SAVEPOINT active_record_1
77850
+ Redirected to http://test.host/authentications
77851
+ Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
77852
+  (0.1ms) SELECT COUNT(*) FROM "authentications"
77853
+  (1.1ms) rollback transaction
77854
+  (0.1ms) begin transaction
77855
+ -------------------------------------------------------------
77856
+ Contour::AuthenticationsControllerTest: test_should_get_index
77857
+ -------------------------------------------------------------
77858
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
77859
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."id" = ? LIMIT 1 [["id", 949717663]]
77860
+ Processing by Contour::AuthenticationsController#index as HTML
77861
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 201799169 ORDER BY "users"."id" ASC LIMIT 1
77862
+ Authentication Exists (0.2ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 201799169]]
77863
+ Authentication Load (0.1ms) SELECT "authentications".* FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
77864
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_index.html.erb (53.4ms)
77865
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.0ms)
77866
+ Completed 200 OK in 211ms (Views: 208.8ms | ActiveRecord: 0.5ms)
77867
+  (0.1ms) rollback transaction
77868
+  (0.1ms) begin transaction
77869
+ -----------------------------------------------------------------------------
77870
+ Contour::PasswordsControllerTest: test_should_be_able_to_request_new_password
77871
+ -----------------------------------------------------------------------------
77872
+ Processing by Contour::PasswordsController#create as HTML
77873
+ Parameters: {"user"=>{"email"=>"valid@example.com"}}
77874
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
77875
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."reset_password_token" = 'gbfZEKyjU9gRoTBxFUqd' LIMIT 1
77876
+  (0.1ms) SAVEPOINT active_record_1
77877
+ SQL (0.6ms) UPDATE "users" SET "reset_password_token" = ?, "reset_password_sent_at" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["reset_password_token", "gbfZEKyjU9gRoTBxFUqd"], ["reset_password_sent_at", Tue, 07 May 2013 17:36:22 UTC +00:00], ["updated_at", Tue, 07 May 2013 17:36:22 UTC +00:00]]
77878
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77879
+
77880
+ Sent mail to valid@example.com (38.6ms)
77881
+ Date: Tue, 07 May 2013 13:36:22 -0400
77882
+ From: please-change-me-at-config-initializers-devise@example.com
77883
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
77884
+ To: valid@example.com
77885
+ Message-ID: <51893b9640550_f4213fd0d54606782431f@edge.partners.org.mail>
77886
+ Subject: Reset password instructions
77887
+ Mime-Version: 1.0
77888
+ Content-Type: text/html;
77889
+ charset=UTF-8
77890
+ Content-Transfer-Encoding: 7bit
77891
+
77892
+ <p>Hello valid@example.com!</p>
77893
+
77894
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
77895
+
77896
+ <p><a href="http://localhost:3000/users/password/edit?reset_password_token=gbfZEKyjU9gRoTBxFUqd">Change my password</a></p>
77897
+
77898
+ <p>If you didn't request this, please ignore this email.</p>
77899
+ <p>Your password won't change until you access the link above and create a new one.</p>
77900
+
77901
+ Redirected to http://test.host/users/login
77902
+ Completed 302 Found in 194ms (ActiveRecord: 1.1ms)
77903
+  (0.7ms) rollback transaction
77904
+  (0.1ms) begin transaction
77905
+ -----------------------------------------------------------------------------
77906
+ Contour::PasswordsControllerTest: test_should_be_able_to_view_forget_password
77907
+ -----------------------------------------------------------------------------
77908
+ Processing by Contour::PasswordsController#new as HTML
77909
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (2.2ms)
77910
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (10.2ms)
77911
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (12.9ms)
77912
+ Completed 200 OK in 96ms (Views: 95.5ms | ActiveRecord: 0.0ms)
77913
+  (0.1ms) rollback transaction
77914
+  (0.1ms) begin transaction
77915
+ -------------------------------------------------------------------------------
77916
+ Contour::RegistrationsControllerTest: test_a_new_user_should_be_able_to_sign_up
77917
+ -------------------------------------------------------------------------------
77918
+  (0.2ms) SELECT COUNT(*) FROM "users"
77919
+ Processing by Contour::RegistrationsController#create as HTML
77920
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "spam"=>""}}
77921
+ Unpermitted parameters: spam
77922
+  (0.1ms) SAVEPOINT active_record_1
77923
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_user@example.com' LIMIT 1
77924
+ Binary data inserted for `string` type on column `encrypted_password`
77925
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 17:36:22 UTC +00:00], ["email", "new_user@example.com"], ["encrypted_password", "$2a$04$ZHSWMDgAaBJV/6P.2BvKM.Gl4Ev3SzOZTn206/zPrSb/asNn4ufgO"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 07 May 2013 17:36:22 UTC +00:00]]
77926
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77927
+ Redirected to http://test.host/users/login
77928
+ Completed 302 Found in 21ms (ActiveRecord: 0.8ms)
77929
+  (0.1ms) SELECT COUNT(*) FROM "users"
77930
+  (0.8ms) rollback transaction
77931
+  (0.1ms) begin transaction
77932
+ --------------------------------------------------------------------------------------------
77933
+ Contour::RegistrationsControllerTest: test_a_new_user_should_not_be_able_to_set_their_status
77934
+ --------------------------------------------------------------------------------------------
77935
+  (0.1ms) SELECT COUNT(*) FROM "users"
77936
+ Processing by Contour::RegistrationsController#create as HTML
77937
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "status"=>"active", "email"=>"new_registration@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
77938
+ Unpermitted parameters: status
77939
+  (0.1ms) SAVEPOINT active_record_1
77940
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'new_registration@example.com' LIMIT 1
77941
+ Binary data inserted for `string` type on column `encrypted_password`
77942
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 17:36:22 UTC +00:00], ["email", "new_registration@example.com"], ["encrypted_password", "$2a$04$I.PWYhnS/dYqegIkndJQ2eic/VlbIX9XJiX16wkG.dgbZr8BmKyGm"], ["first_name", "First Name"], ["last_name", "Last Name"], ["updated_at", Tue, 07 May 2013 17:36:22 UTC +00:00]]
77943
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77944
+ Redirected to http://test.host/users/login
77945
+ Completed 302 Found in 10ms (ActiveRecord: 0.8ms)
77946
+  (0.1ms) SELECT COUNT(*) FROM "users"
77947
+  (0.6ms) rollback transaction
77948
+  (0.1ms) begin transaction
77949
+ ---------------------------------------------------------------------------------------------
77950
+ Contour::RegistrationsControllerTest: test_a_submitter_spam_bot_should_not_be_able_to_sign_up
77951
+ ---------------------------------------------------------------------------------------------
77952
+  (0.2ms) SELECT COUNT(*) FROM "users"
77953
+ Processing by Contour::RegistrationsController#create as HTML
77954
+ Parameters: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "spam"=>"http://buystuffhere.com"}}
77955
+ SPAM BOT SIGNUP: {"user"=>{"first_name"=>"First Name", "last_name"=>"Last Name", "email"=>"new_user@example.com", "password"=>"password", "password_confirmation"=>"password", "spam"=>"http://buystuffhere.com"}, "controller"=>"contour/registrations", "action"=>"create"}
77956
+ Unpermitted parameters: spam
77957
+ Redirected to http://test.host/users/login
77958
+ Completed 302 Found in 5ms (ActiveRecord: 0.0ms)
77959
+  (0.1ms) SELECT COUNT(*) FROM "users"
77960
+  (0.1ms) rollback transaction
77961
+  (0.1ms) begin transaction
77962
+ ----------------------------------------------------------------------
77963
+ Contour::SessionsControllerTest: test_return_user_json_object_on_login
77964
+ ----------------------------------------------------------------------
77965
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
77966
+ Processing by Contour::SessionsController#create as JSON
77967
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
77968
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
77969
+  (0.1ms) SAVEPOINT active_record_1
77970
+ SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Tue, 07 May 2013 17:36:22 UTC +00:00], ["current_sign_in_at", Tue, 07 May 2013 17:36:22 UTC +00:00], ["current_sign_in_ip", "0.0.0.0"], ["sign_in_count", 1], ["updated_at", Tue, 07 May 2013 17:36:22 UTC +00:00]]
77971
+  (0.1ms) RELEASE SAVEPOINT active_record_1
77972
+ Completed 200 OK in 79ms (Views: 0.4ms | ActiveRecord: 0.8ms)
77973
+  (0.9ms) rollback transaction
77974
+  (0.1ms) begin transaction
77975
+ ----------------------------------------------------------------------------------------------------------
77976
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_google_apps_through_secondary_email
77977
+ ----------------------------------------------------------------------------------------------------------
77978
+ Processing by Contour::SessionsController#create as HTML
77979
+ Parameters: {"user"=>{"email"=>"test@gmail.com", "password"=>"[FILTERED]"}}
77980
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'test@gmail.com' LIMIT 1
77981
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = 'test@gmail.com'
77982
+ Redirected to http://test.host/auth/google_apps
77983
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
77984
+  (0.1ms) rollback transaction
77985
+  (0.1ms) begin transaction
77986
+ ----------------------------------------------------------------------------------------------
77987
+ Contour::SessionsControllerTest: test_should_do_a_graceful_redirect_to_ldap_with_primary_email
77988
+ ----------------------------------------------------------------------------------------------
77989
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
77990
+ Processing by Contour::SessionsController#create as HTML
77991
+ Parameters: {"user"=>{"email"=>"valid@example.com", "password"=>"[FILTERED]"}}
77992
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
77993
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."user_id" = ? [["user_id", 201799169]]
77994
+ Redirected to http://test.host/auth/ldap
77995
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
77996
+  (0.1ms) rollback transaction
77997
+  (0.1ms) begin transaction
77998
+ --------------------------------------------------------------------------
77999
+ Contour::SessionsControllerTest: test_should_not_login_invalid_credentials
78000
+ --------------------------------------------------------------------------
78001
+ Processing by Contour::SessionsController#create as HTML
78002
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
78003
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = '' LIMIT 1
78004
+  (0.1ms) SELECT "authentications"."provider" FROM "authentications" WHERE "authentications"."uid" = ''
78005
+ Completed 401 Unauthorized in 3ms
78006
+ Processing by Contour::SessionsController#new as HTML
78007
+ Parameters: {"user"=>{"email"=>"", "password"=>"[FILTERED]"}}
78008
+ Unpermitted parameters: password
78009
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.9ms)
78010
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (1.9ms)
78011
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.5ms)
78012
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.5ms)
78013
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (3.2ms)
78014
+ Completed 200 OK in 90ms (Views: 89.0ms | ActiveRecord: 0.0ms)
78015
+  (0.1ms) rollback transaction
78016
+  (0.1ms) begin transaction
78017
+ -----------------------------------------------------
78018
+ ContourHelperTest: test_should_show_sort_field_helper
78019
+ -----------------------------------------------------
78020
+  (0.1ms) rollback transaction
78021
+  (0.1ms) begin transaction
78022
+ ---------------------------------------------------------------------
78023
+ ContourHelperTest: test_should_show_sort_field_helper_with_same_order
78024
+ ---------------------------------------------------------------------
78025
+  (0.1ms) rollback transaction
78026
+  (0.1ms) begin transaction
78027
+ -----------------------
78028
+ ContourTest: test_truth
78029
+ -----------------------
78030
+  (0.1ms) rollback transaction
78031
+  (0.1ms) begin transaction
78032
+ --------------------------------------------------------------------
78033
+ NavigationTest: test_deleted_users_should_be_not_be_allowed_to_login
78034
+ --------------------------------------------------------------------
78035
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
78036
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
78037
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
78038
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-05-07 13:36:22 -0400
78039
+ Processing by WelcomeController#logged_in_page as HTML
78040
+ Completed 401 Unauthorized in 36ms
78041
+  (0.1ms) SAVEPOINT active_record_1
78042
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
78043
+ Binary data inserted for `string` type on column `encrypted_password`
78044
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 17:36:23 UTC +00:00], ["email", "deleted-2@example.com"], ["encrypted_password", "$2a$04$mQEW0xkP/6c1TQeRyBOvceKSMYzzCXV81i3DdGn/I2F5bxCPQYwwi"], ["first_name", "Deleted"], ["last_name", "User"], ["updated_at", Tue, 07 May 2013 17:36:23 UTC +00:00]]
78045
+  (0.1ms) RELEASE SAVEPOINT active_record_1
78046
+  (0.0ms) SAVEPOINT active_record_1
78047
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
78048
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
78049
+  (0.0ms) RELEASE SAVEPOINT active_record_1
78050
+ SQL (0.3ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
78051
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 't' WHERE "users"."id" = 999914116
78052
+ Started POST "/users/login" for 127.0.0.1 at 2013-05-07 13:36:23 -0400
78053
+ Processing by Contour::SessionsController#create as HTML
78054
+ Parameters: {"user"=>{"email"=>"deleted-2@example.com", "password"=>"[FILTERED]"}}
78055
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'deleted-2@example.com' LIMIT 1
78056
+  (0.1ms) SAVEPOINT active_record_1
78057
+  (0.1ms) RELEASE SAVEPOINT active_record_1
78058
+ Completed 401 Unauthorized in 6ms
78059
+ Started GET "/users/login" for 127.0.0.1 at 2013-05-07 13:36:23 -0400
78060
+ Processing by Contour::SessionsController#new as HTML
78061
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.4ms)
78062
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (1.2ms)
78063
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.1ms)
78064
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.2ms)
78065
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (2.7ms)
78066
+ Completed 200 OK in 12ms (Views: 10.8ms | ActiveRecord: 0.0ms)
78067
+  (0.8ms) rollback transaction
78068
+  (0.1ms) begin transaction
78069
+ --------------------------------------------------------
78070
+ NavigationTest: test_friendly_url_forwarding_after_login
78071
+ --------------------------------------------------------
78072
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
78073
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
78074
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
78075
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-05-07 13:36:23 -0400
78076
+ Processing by WelcomeController#logged_in_page as HTML
78077
+ Completed 401 Unauthorized in 1ms
78078
+  (0.1ms) SAVEPOINT active_record_1
78079
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
78080
+ Binary data inserted for `string` type on column `encrypted_password`
78081
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 17:36:23 UTC +00:00], ["email", "valid-2@example.com"], ["encrypted_password", "$2a$04$GBqz5y/7TLxPgeD3c0IQ/.dRQVE/jUSBgQJ/UbaovUNGaO62xUlo."], ["first_name", "FirstName"], ["last_name", "LastName"], ["updated_at", Tue, 07 May 2013 17:36:23 UTC +00:00]]
78082
+  (0.1ms) RELEASE SAVEPOINT active_record_1
78083
+  (0.0ms) SAVEPOINT active_record_1
78084
+ Authentication Exists (0.1ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
78085
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
78086
+  (0.0ms) RELEASE SAVEPOINT active_record_1
78087
+ SQL (0.2ms) UPDATE "users" SET "status" = 'active' WHERE "users"."id" = 999914116
78088
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
78089
+ Started POST "/users/login" for 127.0.0.1 at 2013-05-07 13:36:23 -0400
78090
+ Processing by Contour::SessionsController#create as HTML
78091
+ Parameters: {"user"=>{"email"=>"valid-2@example.com", "password"=>"[FILTERED]"}}
78092
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid-2@example.com' LIMIT 1
78093
+  (0.1ms) SAVEPOINT active_record_1
78094
+ SQL (0.2ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 999914116 [["last_sign_in_at", Tue, 07 May 2013 17:36:23 UTC +00:00], ["current_sign_in_at", Tue, 07 May 2013 17:36:23 UTC +00:00], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 07 May 2013 17:36:23 UTC +00:00]]
78095
+  (0.0ms) RELEASE SAVEPOINT active_record_1
78096
+ Redirected to http://www.example.com/logged_in_page
78097
+ Completed 302 Found in 9ms (ActiveRecord: 0.5ms)
78098
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-05-07 13:36:23 -0400
78099
+ Processing by WelcomeController#logged_in_page as HTML
78100
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 999914116 ORDER BY "users"."id" ASC LIMIT 1
78101
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
78102
+  (0.6ms) rollback transaction
78103
+  (0.2ms) begin transaction
78104
+ --------------------------------------------------------------------
78105
+ NavigationTest: test_pending_users_should_be_not_be_allowed_to_login
78106
+ --------------------------------------------------------------------
78107
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
78108
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
78109
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
78110
+ Started GET "/logged_in_page" for 127.0.0.1 at 2013-05-07 13:36:23 -0400
78111
+ Processing by WelcomeController#logged_in_page as HTML
78112
+ Completed 401 Unauthorized in 1ms
78113
+  (0.1ms) SAVEPOINT active_record_1
78114
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
78115
+ Binary data inserted for `string` type on column `encrypted_password`
78116
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 May 2013 17:36:23 UTC +00:00], ["email", "pending-2@example.com"], ["encrypted_password", "$2a$04$CnokUXJWD68LDyqxPlf26.y7n5EeCb2Y/dW.PKMotlYBKt7ZjAdQq"], ["first_name", "MyString"], ["last_name", "MyString"], ["updated_at", Tue, 07 May 2013 17:36:23 UTC +00:00]]
78117
+  (0.1ms) RELEASE SAVEPOINT active_record_1
78118
+  (0.0ms) SAVEPOINT active_record_1
78119
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
78120
+ Authentication Exists (0.0ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = ? LIMIT 1 [["user_id", 999914116]]
78121
+  (0.1ms) RELEASE SAVEPOINT active_record_1
78122
+ SQL (0.3ms) UPDATE "users" SET "status" = 'pending' WHERE "users"."id" = 999914116
78123
+ SQL (0.1ms) UPDATE "users" SET "deleted" = 'f' WHERE "users"."id" = 999914116
78124
+ Started POST "/users/login" for 127.0.0.1 at 2013-05-07 13:36:23 -0400
78125
+ Processing by Contour::SessionsController#create as HTML
78126
+ Parameters: {"user"=>{"email"=>"pending-2@example.com", "password"=>"[FILTERED]"}}
78127
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'pending-2@example.com' LIMIT 1
78128
+  (0.1ms) SAVEPOINT active_record_1
78129
+  (0.0ms) RELEASE SAVEPOINT active_record_1
78130
+ Completed 401 Unauthorized in 5ms
78131
+ Started GET "/users/login" for 127.0.0.1 at 2013-05-07 13:36:23 -0400
78132
+ Processing by Contour::SessionsController#new as HTML
78133
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/_links.html.erb (0.4ms)
78134
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_login_table.html.erb (1.1ms)
78135
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_latest_news.html.erb (0.0ms)
78136
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/authentications/_menu.html.erb (1.8ms)
78137
+ Rendered /Users/remo/code/ruby/gems/contour/app/views/contour/layouts/_menu.html.erb (4.2ms)
78138
+ Completed 200 OK in 14ms (Views: 12.7ms | ActiveRecord: 0.0ms)
78139
+  (0.9ms) rollback transaction
78140
+  (0.1ms) begin transaction
78141
+ -------------------------------------------------------------
78142
+ NavigationTest: test_root_navigation_redirected_to_login_page
78143
+ -------------------------------------------------------------
78144
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
78145
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
78146
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
78147
+ Started GET "/" for 127.0.0.1 at 2013-05-07 13:36:23 -0400
78148
+ Processing by WelcomeController#index as HTML
78149
+ Completed 401 Unauthorized in 1ms
78150
+  (0.1ms) rollback transaction
78151
+  (0.1ms) begin transaction
78152
+ -------------------------------------------------------------------------
78153
+ NavigationTest: test_valid_users_should_be_able_to_login_using_basic_http
78154
+ -------------------------------------------------------------------------
78155
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
78156
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
78157
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
78158
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-05-07 13:36:23 -0400
78159
+ Processing by WelcomeController#logged_in_page as JSON
78160
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
78161
+  (0.1ms) SAVEPOINT active_record_1
78162
+ SQL (0.4ms) UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = 201799169 [["last_sign_in_at", Tue, 07 May 2013 17:36:23 UTC +00:00], ["current_sign_in_at", Tue, 07 May 2013 17:36:23 UTC +00:00], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", Tue, 07 May 2013 17:36:23 UTC +00:00]]
78163
+  (0.1ms) RELEASE SAVEPOINT active_record_1
78164
+ Completed 200 OK in 78ms (Views: 0.2ms | ActiveRecord: 0.7ms)
78165
+  (0.9ms) rollback transaction
78166
+  (0.1ms) begin transaction
78167
+ ------------------------------------------------------------------------------------------------
78168
+ NavigationTest: test_valid_users_should_not_be_able_to_login_using_basic_http_and_wrong_password
78169
+ ------------------------------------------------------------------------------------------------
78170
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
78171
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 349534908]]
78172
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 725306934]]
78173
+ Started GET "/logged_in_page.json" for 127.0.0.1 at 2013-05-07 13:36:23 -0400
78174
+ Processing by WelcomeController#logged_in_page as JSON
78175
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = 'valid@example.com' LIMIT 1
78176
+ Completed 401 Unauthorized in 76ms
78177
+  (0.1ms) rollback transaction
78178
+  (0.1ms) begin transaction
78179
+ ------------------------------------
78180
+ UserTest: test_should_apply_omniauth
78181
+ ------------------------------------
78182
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
78183
+  (0.1ms) rollback transaction
78184
+  (0.1ms) begin transaction
78185
+ --------------------------------------
78186
+ UserTest: test_should_get_reverse_name
77791
78187
  --------------------------------------
77792
78188
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 201799169]]
77793
78189
   (0.1ms) 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: 2.0.0.beta.7
4
+ version: 2.0.0.beta.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Remo Mueller
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: 4.0.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: devise
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 3.0.0.rc
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: 3.0.0.rc
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: omniauth
57
71
  requirement: !ruby/object:Gem::Requirement