simple_sign_in 0.0.1 → 0.0.2

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: 93b490283317296a2ccda347c62f1da0bb28ac67
4
- data.tar.gz: 219f14f347a538158583a2a5445caf9f6db53e27
3
+ metadata.gz: 8d31c3cb490fa709257c6afd0f095707ef054aa9
4
+ data.tar.gz: b4c6b14c2feeb752fa2bdc47828880111b383513
5
5
  SHA512:
6
- metadata.gz: d2166ecba3f3c3441351a2c25d53bc37dc83b04c7389c7813e6b9f2124f2c4d181d17f07c819af8321096d558f366448a9db5e57eb07cc60d2320b3001dd1823
7
- data.tar.gz: 1f732378b933abbb35091005548cb20c1f68f9ef9418f3af90616f08ba11117e1ee6015a5ae00f38b89b3a095c11507a625f7fa1280d397fd31d85d25f74d7a7
6
+ metadata.gz: 6b79762b982427621ceb630630180b418aa2b00d99bea45a24c92b175a0bb974d6ea1ec67353195417ad5506936ef654184d828cbfc9baa02a6e8dbab27efb91
7
+ data.tar.gz: 90024bb541af83495432996a70a991cf3b23a1f5ab3bb1ff692cc133a37c808f09dc3517bab1e9f2fa43339831546f409c4d9717b9f291b518e95cd0895a79b1
@@ -2,7 +2,9 @@ require_dependency "simple_sign_in/application_controller"
2
2
 
3
3
  module SimpleSignIn
4
4
  class LoginController < ApplicationController
5
- skip_before_filter :simple_sign_in_authentication, only: [:new, :create]
5
+ skip_before_filter :simple_sign_in_authentication, except: [:destroy]
6
+ before_filter :raise_missing_environment_variables_error
7
+ before_filter :redirect_to_root_if_user_is_logged_in, except: [:destroy]
6
8
 
7
9
  def new
8
10
  end
@@ -22,5 +24,20 @@ module SimpleSignIn
22
24
  flash[:notice] = 'You have been signed out'
23
25
  redirect_to :root
24
26
  end
27
+
28
+ private
29
+ def raise_missing_environment_variables_error
30
+ unless ENV['SIMPLE_SIGN_IN_LOGIN'] && ENV['SIMPLE_SIGN_IN_PASSWORD']
31
+ raise <<-eos
32
+ simple_sign_in login and password were not specified!
33
+ please make sure that the environment variables SIMPLE_SIGN_IN_LOGIN and SIMPLE_SIGN_IN_PASSWORD
34
+ have been set up as described here: https://github.com/Yud/simple_sign_in#installation
35
+ eos
36
+ end
37
+ end
38
+
39
+ def redirect_to_root_if_user_is_logged_in
40
+ redirect_to "/" if simple_sign_in_user_logged_in?
41
+ end
25
42
  end
26
43
  end
@@ -16,7 +16,7 @@ module SimpleSignIn
16
16
  end
17
17
 
18
18
  def simple_sign_in_user_logged_in?
19
- session[:simple_sign_in_admin] == ENV['SIMPLE_SIGN_IN_LOGIN']
19
+ session[:simple_sign_in_admin] == ENV['SIMPLE_SIGN_IN_LOGIN'] if ENV['SIMPLE_SIGN_IN_LOGIN']
20
20
  end
21
21
 
22
22
  private
@@ -8,11 +8,6 @@ module SimpleSignIn
8
8
 
9
9
  initializer 'simple_sign_in.initialize' do
10
10
  config.to_prepare do
11
- unless ENV['SIMPLE_SIGN_IN_LOGIN'] && ENV['SIMPLE_SIGN_IN_PASSWORD']
12
- raise "simple_sign_in could not be loaded because login and password were not specified!
13
- please make sure that the environment variables SIMPLE_SIGN_IN_LOGIN and SIMPLE_SIGN_IN_PASSWORD
14
- have been set up as described here: https://github.com/Yud/simple_sign_in#installation"
15
- end
16
11
  ActiveSupport.on_load(:action_controller) do
17
12
  include SimpleSignIn::ControllerMethods
18
13
  end
@@ -1,3 +1,3 @@
1
1
  module SimpleSignIn
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -12,6 +12,12 @@ module SimpleSignIn
12
12
  get 'new', use_route: SimpleSignIn
13
13
  response.should be_success
14
14
  end
15
+
16
+ it "should redirect to root if the user is already logged in" do
17
+ session['simple_sign_in_admin'] = @login
18
+ get 'new', use_route: SimpleSignIn
19
+ response.should redirect_to "/"
20
+ end
15
21
  end
16
22
 
17
23
  describe "POST 'create'" do
@@ -28,6 +34,12 @@ module SimpleSignIn
28
34
  session[:simple_sign_in_admin].should be_nil
29
35
  flash[:notice].should == "Incorrect login or password"
30
36
  end
37
+
38
+ it "should redirect to root if the user is already logged in" do
39
+ session['simple_sign_in_admin'] = @login
40
+ post 'create', login: @login, password: @pass, use_route: SimpleSignIn
41
+ response.should redirect_to "/"
42
+ end
31
43
  end
32
44
 
33
45
  describe "DELETE 'destroy'" do
@@ -38,5 +50,12 @@ module SimpleSignIn
38
50
  response.should redirect_to :root
39
51
  end
40
52
  end
53
+
54
+ it "should raise an error if environment variables are nil" do
55
+ ENV['SIMPLE_SIGN_IN_LOGIN'] = nil
56
+ expect { get 'new', use_route: SimpleSignIn }.to raise_error
57
+ expect { post 'create', login: '', password: '', use_route: SimpleSignIn }.to raise_error
58
+ ENV['SIMPLE_SIGN_IN_LOGIN'] = @login
59
+ end
41
60
  end
42
61
  end
@@ -11424,3 +11424,808 @@ Started GET "/assets/simple_sign_in/login.css?body=1" for 127.0.0.1 at 2013-08-0
11424
11424
 
11425
11425
 
11426
11426
  Started GET "/assets/simple_sign_in/application.js?body=1" for 127.0.0.1 at 2013-08-04 13:30:24 +0300
11427
+
11428
+
11429
+ Started GET "/" for 127.0.0.1 at 2013-08-04 18:48:21 +0300
11430
+ Processing by SecretsController#index as HTML
11431
+ Redirected to http://localhost:3000/simple_sign_in
11432
+ Filter chain halted as :simple_sign_in_authentication rendered or redirected
11433
+ Completed 302 Found in 60ms (ActiveRecord: 0.0ms)
11434
+
11435
+
11436
+ Started GET "/simple_sign_in" for 127.0.0.1 at 2013-08-04 18:48:22 +0300
11437
+ Processing by SimpleSignIn::LoginController#new as HTML
11438
+ Rendered /Users/izharg/rails/projects/simple_sign_in/app/views/simple_sign_in/login/new.html.erb within layouts/simple_sign_in/application (3.0ms)
11439
+ Completed 200 OK in 112ms (Views: 111.1ms | ActiveRecord: 0.0ms)
11440
+
11441
+
11442
+ Started GET "/assets/simple_sign_in/application.css?body=1" for 127.0.0.1 at 2013-08-04 18:48:22 +0300
11443
+
11444
+
11445
+ Started GET "/assets/simple_sign_in/login.css?body=1" for 127.0.0.1 at 2013-08-04 18:48:22 +0300
11446
+
11447
+
11448
+ Started GET "/assets/simple_sign_in/application.js?body=1" for 127.0.0.1 at 2013-08-04 18:48:22 +0300
11449
+
11450
+
11451
+ Started GET "/assets/simple_sign_in/login.js?body=1" for 127.0.0.1 at 2013-08-04 18:48:22 +0300
11452
+
11453
+
11454
+ Started POST "/simple_sign_in/login" for 127.0.0.1 at 2013-08-04 18:48:26 +0300
11455
+ Processing by SimpleSignIn::LoginController#create as HTML
11456
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"BmK9cLX+CU6sCGBMY+pb/oEGeUP21YeQf0lHbmkL/XQ=", "login"=>"", "password"=>"[FILTERED]", "commit"=>"Submit"}
11457
+ Redirected to http://localhost:3000/simple_sign_in/
11458
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
11459
+
11460
+
11461
+ Started GET "/simple_sign_in/" for 127.0.0.1 at 2013-08-04 18:48:26 +0300
11462
+ Processing by SimpleSignIn::LoginController#new as HTML
11463
+ Rendered /Users/izharg/rails/projects/simple_sign_in/app/views/simple_sign_in/login/new.html.erb within layouts/simple_sign_in/application (1.2ms)
11464
+ Completed 200 OK in 36ms (Views: 36.0ms | ActiveRecord: 0.0ms)
11465
+
11466
+
11467
+ Started GET "/assets/simple_sign_in/application.css?body=1" for 127.0.0.1 at 2013-08-04 18:48:26 +0300
11468
+
11469
+
11470
+ Started GET "/assets/simple_sign_in/login.js?body=1" for 127.0.0.1 at 2013-08-04 18:48:26 +0300
11471
+
11472
+
11473
+ Started GET "/assets/simple_sign_in/application.js?body=1" for 127.0.0.1 at 2013-08-04 18:48:26 +0300
11474
+
11475
+
11476
+ Started POST "/simple_sign_in/login" for 127.0.0.1 at 2013-08-04 18:48:31 +0300
11477
+ Processing by SimpleSignIn::LoginController#create as HTML
11478
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"BmK9cLX+CU6sCGBMY+pb/oEGeUP21YeQf0lHbmkL/XQ=", "login"=>"admin", "password"=>"[FILTERED]", "commit"=>"Submit"}
11479
+ Redirected to http://localhost:3000/
11480
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
11481
+
11482
+
11483
+ Started GET "/" for 127.0.0.1 at 2013-08-04 18:48:31 +0300
11484
+ Processing by SecretsController#index as HTML
11485
+ Rendered secrets/index.html.erb within layouts/application (0.7ms)
11486
+ Completed 200 OK in 231ms (Views: 230.4ms | ActiveRecord: 0.0ms)
11487
+
11488
+
11489
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-08-04 18:48:32 +0300
11490
+
11491
+
11492
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-08-04 18:48:32 +0300
11493
+
11494
+
11495
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-08-04 18:48:32 +0300
11496
+
11497
+
11498
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-08-04 18:48:32 +0300
11499
+
11500
+
11501
+ Started DELETE "/simple_sign_in/signout" for 127.0.0.1 at 2013-08-04 18:48:34 +0300
11502
+ Processing by SimpleSignIn::LoginController#destroy as HTML
11503
+ Parameters: {"authenticity_token"=>"BmK9cLX+CU6sCGBMY+pb/oEGeUP21YeQf0lHbmkL/XQ="}
11504
+ Redirected to http://localhost:3000/simple_sign_in/
11505
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
11506
+
11507
+
11508
+ Started GET "/simple_sign_in/" for 127.0.0.1 at 2013-08-04 18:48:34 +0300
11509
+ Processing by SimpleSignIn::LoginController#new as HTML
11510
+ Rendered /Users/izharg/rails/projects/simple_sign_in/app/views/simple_sign_in/login/new.html.erb within layouts/simple_sign_in/application (1.1ms)
11511
+ Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.0ms)
11512
+
11513
+
11514
+ Started GET "/assets/simple_sign_in/application.css?body=1" for 127.0.0.1 at 2013-08-04 18:48:34 +0300
11515
+
11516
+
11517
+ Started GET "/assets/simple_sign_in/login.js?body=1" for 127.0.0.1 at 2013-08-04 18:48:34 +0300
11518
+
11519
+
11520
+ Started GET "/assets/simple_sign_in/application.js?body=1" for 127.0.0.1 at 2013-08-04 18:48:34 +0300
11521
+
11522
+
11523
+ Started POST "/simple_sign_in/login" for 127.0.0.1 at 2013-08-04 18:49:51 +0300
11524
+ Processing by SimpleSignIn::LoginController#create as HTML
11525
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"BmK9cLX+CU6sCGBMY+pb/oEGeUP21YeQf0lHbmkL/XQ=", "login"=>"", "password"=>"[FILTERED]", "commit"=>"Submit"}
11526
+ Redirected to http://localhost:3000/simple_sign_in/
11527
+ Completed 302 Found in 36ms (ActiveRecord: 0.0ms)
11528
+
11529
+
11530
+ Started GET "/simple_sign_in/" for 127.0.0.1 at 2013-08-04 18:49:52 +0300
11531
+ Processing by SimpleSignIn::LoginController#new as HTML
11532
+ Rendered /Users/izharg/rails/projects/simple_sign_in/app/views/simple_sign_in/login/new.html.erb within layouts/simple_sign_in/application (4.3ms)
11533
+ Completed 200 OK in 84ms (Views: 84.1ms | ActiveRecord: 0.0ms)
11534
+
11535
+
11536
+ Started GET "/assets/simple_sign_in/application.css?body=1" for 127.0.0.1 at 2013-08-04 18:49:52 +0300
11537
+
11538
+
11539
+ Started GET "/assets/simple_sign_in/application.js?body=1" for 127.0.0.1 at 2013-08-04 18:49:52 +0300
11540
+
11541
+
11542
+ Started GET "/assets/simple_sign_in/login.js?body=1" for 127.0.0.1 at 2013-08-04 18:49:52 +0300
11543
+
11544
+
11545
+ Started POST "/simple_sign_in/login" for 127.0.0.1 at 2013-08-04 18:49:57 +0300
11546
+ Processing by SimpleSignIn::LoginController#create as HTML
11547
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"BmK9cLX+CU6sCGBMY+pb/oEGeUP21YeQf0lHbmkL/XQ=", "login"=>"nil", "password"=>"[FILTERED]", "commit"=>"Submit"}
11548
+ Redirected to http://localhost:3000/simple_sign_in/
11549
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
11550
+
11551
+
11552
+ Started GET "/simple_sign_in/" for 127.0.0.1 at 2013-08-04 18:49:57 +0300
11553
+ Processing by SimpleSignIn::LoginController#new as HTML
11554
+ Rendered /Users/izharg/rails/projects/simple_sign_in/app/views/simple_sign_in/login/new.html.erb within layouts/simple_sign_in/application (1.3ms)
11555
+ Completed 200 OK in 6ms (Views: 5.8ms | ActiveRecord: 0.0ms)
11556
+
11557
+
11558
+ Started GET "/assets/simple_sign_in/login.js?body=1" for 127.0.0.1 at 2013-08-04 18:49:57 +0300
11559
+
11560
+
11561
+ Started GET "/assets/simple_sign_in/application.js?body=1" for 127.0.0.1 at 2013-08-04 18:49:57 +0300
11562
+
11563
+
11564
+ Started GET "/assets/simple_sign_in/application.css?body=1" for 127.0.0.1 at 2013-08-04 18:49:57 +0300
11565
+
11566
+
11567
+ Started POST "/simple_sign_in/login" for 127.0.0.1 at 2013-08-04 18:50:02 +0300
11568
+ Processing by SimpleSignIn::LoginController#create as HTML
11569
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"BmK9cLX+CU6sCGBMY+pb/oEGeUP21YeQf0lHbmkL/XQ=", "login"=>"''", "password"=>"[FILTERED]", "commit"=>"Submit"}
11570
+ Redirected to http://localhost:3000/simple_sign_in/
11571
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
11572
+
11573
+
11574
+ Started GET "/simple_sign_in/" for 127.0.0.1 at 2013-08-04 18:50:02 +0300
11575
+ Processing by SimpleSignIn::LoginController#new as HTML
11576
+ Rendered /Users/izharg/rails/projects/simple_sign_in/app/views/simple_sign_in/login/new.html.erb within layouts/simple_sign_in/application (1.2ms)
11577
+ Completed 200 OK in 5ms (Views: 5.3ms | ActiveRecord: 0.0ms)
11578
+
11579
+
11580
+ Started GET "/assets/simple_sign_in/application.css?body=1" for 127.0.0.1 at 2013-08-04 18:50:02 +0300
11581
+
11582
+
11583
+ Started GET "/assets/simple_sign_in/application.js?body=1" for 127.0.0.1 at 2013-08-04 18:50:02 +0300
11584
+
11585
+
11586
+ Started GET "/assets/simple_sign_in/login.js?body=1" for 127.0.0.1 at 2013-08-04 18:50:02 +0300
11587
+
11588
+
11589
+ Started POST "/simple_sign_in/login" for 127.0.0.1 at 2013-08-04 18:50:08 +0300
11590
+ Processing by SimpleSignIn::LoginController#create as HTML
11591
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"BmK9cLX+CU6sCGBMY+pb/oEGeUP21YeQf0lHbmkL/XQ=", "login"=>"\"\"", "password"=>"[FILTERED]", "commit"=>"Submit"}
11592
+ Redirected to http://localhost:3000/simple_sign_in/
11593
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
11594
+
11595
+
11596
+ Started GET "/simple_sign_in/" for 127.0.0.1 at 2013-08-04 18:50:08 +0300
11597
+ Processing by SimpleSignIn::LoginController#new as HTML
11598
+ Rendered /Users/izharg/rails/projects/simple_sign_in/app/views/simple_sign_in/login/new.html.erb within layouts/simple_sign_in/application (1.4ms)
11599
+ Completed 200 OK in 38ms (Views: 37.7ms | ActiveRecord: 0.0ms)
11600
+
11601
+
11602
+ Started GET "/assets/simple_sign_in/login.js?body=1" for 127.0.0.1 at 2013-08-04 18:50:08 +0300
11603
+
11604
+
11605
+ Started GET "/assets/simple_sign_in/application.css?body=1" for 127.0.0.1 at 2013-08-04 18:50:08 +0300
11606
+
11607
+
11608
+ Started GET "/assets/simple_sign_in/application.js?body=1" for 127.0.0.1 at 2013-08-04 18:50:08 +0300
11609
+
11610
+
11611
+ Started GET "/" for 127.0.0.1 at 2013-08-05 13:31:41 +0300
11612
+ Processing by SecretsController#index as HTML
11613
+ Redirected to http://localhost:3000/simple_sign_in
11614
+ Filter chain halted as :simple_sign_in_authentication rendered or redirected
11615
+ Completed 302 Found in 80ms (ActiveRecord: 0.0ms)
11616
+
11617
+
11618
+ Started GET "/simple_sign_in" for 127.0.0.1 at 2013-08-05 13:31:42 +0300
11619
+ Processing by SimpleSignIn::LoginController#new as HTML
11620
+ Rendered /Users/izharg/rails/projects/simple_sign_in/app/views/simple_sign_in/login/new.html.erb within layouts/simple_sign_in/application (15.7ms)
11621
+ Completed 200 OK in 259ms (Views: 257.9ms | ActiveRecord: 0.0ms)
11622
+
11623
+
11624
+ Started GET "/assets/simple_sign_in/application.css?body=1" for 127.0.0.1 at 2013-08-05 13:31:42 +0300
11625
+
11626
+
11627
+ Started GET "/assets/simple_sign_in/application.js?body=1" for 127.0.0.1 at 2013-08-05 13:31:42 +0300
11628
+
11629
+
11630
+ Started GET "/assets/simple_sign_in/login.css?body=1" for 127.0.0.1 at 2013-08-05 13:31:42 +0300
11631
+
11632
+
11633
+ Started GET "/assets/simple_sign_in/login.js?body=1" for 127.0.0.1 at 2013-08-05 13:31:42 +0300
11634
+
11635
+
11636
+ Started GET "/simple_sign_in" for 127.0.0.1 at 2013-08-05 13:31:45 +0300
11637
+ Processing by SimpleSignIn::LoginController#new as HTML
11638
+ Rendered /Users/izharg/rails/projects/simple_sign_in/app/views/simple_sign_in/login/new.html.erb within layouts/simple_sign_in/application (0.9ms)
11639
+ Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms)
11640
+
11641
+
11642
+ Started GET "/assets/simple_sign_in/login.css?body=1" for 127.0.0.1 at 2013-08-05 13:31:45 +0300
11643
+
11644
+
11645
+ Started GET "/assets/simple_sign_in/application.css?body=1" for 127.0.0.1 at 2013-08-05 13:31:45 +0300
11646
+
11647
+
11648
+ Started GET "/assets/simple_sign_in/application.js?body=1" for 127.0.0.1 at 2013-08-05 13:31:45 +0300
11649
+
11650
+
11651
+ Started GET "/assets/simple_sign_in/login.js?body=1" for 127.0.0.1 at 2013-08-05 13:31:45 +0300
11652
+
11653
+
11654
+ Started POST "/simple_sign_in/login" for 127.0.0.1 at 2013-08-05 13:31:52 +0300
11655
+ Processing by SimpleSignIn::LoginController#create as HTML
11656
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"XEzGXFMk+GI/AsCybmI4tATRSIIBv81qbGhT8oN0F/c=", "login"=>"admin", "password"=>"[FILTERED]", "commit"=>"Submit"}
11657
+ Redirected to http://localhost:3000/
11658
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
11659
+
11660
+
11661
+ Started GET "/" for 127.0.0.1 at 2013-08-05 13:31:52 +0300
11662
+ Processing by SecretsController#index as HTML
11663
+ Rendered secrets/index.html.erb within layouts/application (1.2ms)
11664
+ Completed 200 OK in 340ms (Views: 339.4ms | ActiveRecord: 0.0ms)
11665
+
11666
+
11667
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-08-05 13:31:52 +0300
11668
+
11669
+
11670
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-08-05 13:31:52 +0300
11671
+
11672
+
11673
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-08-05 13:31:52 +0300
11674
+
11675
+
11676
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-08-05 13:31:52 +0300
11677
+
11678
+
11679
+ Started GET "/simple_sign_in" for 127.0.0.1 at 2013-08-05 13:31:58 +0300
11680
+ Processing by SimpleSignIn::LoginController#new as HTML
11681
+ Rendered /Users/izharg/rails/projects/simple_sign_in/app/views/simple_sign_in/login/new.html.erb within layouts/simple_sign_in/application (1.4ms)
11682
+ Completed 200 OK in 74ms (Views: 72.4ms | ActiveRecord: 0.0ms)
11683
+
11684
+
11685
+ Started GET "/assets/simple_sign_in/login.css?body=1" for 127.0.0.1 at 2013-08-05 13:31:59 +0300
11686
+
11687
+
11688
+ Started GET "/assets/simple_sign_in/application.css?body=1" for 127.0.0.1 at 2013-08-05 13:31:59 +0300
11689
+
11690
+
11691
+ Started GET "/assets/simple_sign_in/login.js?body=1" for 127.0.0.1 at 2013-08-05 13:31:59 +0300
11692
+
11693
+
11694
+ Started GET "/assets/simple_sign_in/application.js?body=1" for 127.0.0.1 at 2013-08-05 13:31:59 +0300
11695
+
11696
+
11697
+ Started GET "/simple_sign_in" for 127.0.0.1 at 2013-08-05 13:39:05 +0300
11698
+ Processing by SimpleSignIn::LoginController#new as HTML
11699
+ Completed 500 Internal Server Error in 2ms
11700
+
11701
+ NameError (uninitialized constant SimpleSignIn::LoginController::SIMPLE_SIGN_IN_LOGIN):
11702
+ /Users/izharg/rails/projects/simple_sign_in/app/controllers/simple_sign_in/login_controller.rb:30:in `raise_missing_environment_variables_error'
11703
+ activesupport (4.0.0) lib/active_support/callbacks.rb:387:in `_run__4152367879690589391__process_action__callbacks'
11704
+ activesupport (4.0.0) lib/active_support/callbacks.rb:80:in `run_callbacks'
11705
+ actionpack (4.0.0) lib/abstract_controller/callbacks.rb:17:in `process_action'
11706
+ actionpack (4.0.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
11707
+ actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
11708
+ activesupport (4.0.0) lib/active_support/notifications.rb:159:in `block in instrument'
11709
+ activesupport (4.0.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
11710
+ activesupport (4.0.0) lib/active_support/notifications.rb:159:in `instrument'
11711
+ actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
11712
+ actionpack (4.0.0) lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
11713
+ activerecord (4.0.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
11714
+ actionpack (4.0.0) lib/abstract_controller/base.rb:136:in `process'
11715
+ actionpack (4.0.0) lib/abstract_controller/rendering.rb:44:in `process'
11716
+ actionpack (4.0.0) lib/action_controller/metal.rb:195:in `dispatch'
11717
+ actionpack (4.0.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
11718
+ actionpack (4.0.0) lib/action_controller/metal.rb:231:in `block in action'
11719
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:80:in `call'
11720
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
11721
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:48:in `call'
11722
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
11723
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `each'
11724
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `call'
11725
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:655:in `call'
11726
+ railties (4.0.0) lib/rails/engine.rb:511:in `call'
11727
+ railties (4.0.0) lib/rails/railtie/configurable.rb:30:in `method_missing'
11728
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
11729
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `each'
11730
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `call'
11731
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:655:in `call'
11732
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
11733
+ rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
11734
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
11735
+ actionpack (4.0.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
11736
+ actionpack (4.0.0) lib/action_dispatch/middleware/flash.rb:241:in `call'
11737
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
11738
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
11739
+ actionpack (4.0.0) lib/action_dispatch/middleware/cookies.rb:486:in `call'
11740
+ activerecord (4.0.0) lib/active_record/query_cache.rb:36:in `call'
11741
+ activerecord (4.0.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
11742
+ activerecord (4.0.0) lib/active_record/migration.rb:369:in `call'
11743
+ actionpack (4.0.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
11744
+ activesupport (4.0.0) lib/active_support/callbacks.rb:373:in `_run__1831821388214318271__call__callbacks'
11745
+ activesupport (4.0.0) lib/active_support/callbacks.rb:80:in `run_callbacks'
11746
+ actionpack (4.0.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
11747
+ actionpack (4.0.0) lib/action_dispatch/middleware/reloader.rb:64:in `call'
11748
+ actionpack (4.0.0) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
11749
+ actionpack (4.0.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
11750
+ actionpack (4.0.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
11751
+ railties (4.0.0) lib/rails/rack/logger.rb:38:in `call_app'
11752
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `block in call'
11753
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `block in tagged'
11754
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:25:in `tagged'
11755
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `tagged'
11756
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `call'
11757
+ actionpack (4.0.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
11758
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
11759
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
11760
+ activesupport (4.0.0) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
11761
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
11762
+ actionpack (4.0.0) lib/action_dispatch/middleware/static.rb:64:in `call'
11763
+ railties (4.0.0) lib/rails/engine.rb:511:in `call'
11764
+ railties (4.0.0) lib/rails/application.rb:97:in `call'
11765
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
11766
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
11767
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
11768
+ /Users/izharg/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
11769
+ /Users/izharg/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
11770
+ /Users/izharg/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
11771
+
11772
+
11773
+ Rendered /Users/izharg/.rvm/gems/ruby-2.0.0-p195@simple_sign_in/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.7ms)
11774
+ Rendered /Users/izharg/.rvm/gems/ruby-2.0.0-p195@simple_sign_in/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
11775
+ Rendered /Users/izharg/.rvm/gems/ruby-2.0.0-p195@simple_sign_in/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.3ms)
11776
+ Rendered /Users/izharg/.rvm/gems/ruby-2.0.0-p195@simple_sign_in/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (19.2ms)
11777
+
11778
+
11779
+ Started GET "/simple_sign_in" for 127.0.0.1 at 2013-08-05 13:39:21 +0300
11780
+ Processing by SimpleSignIn::LoginController#new as HTML
11781
+ Completed 500 Internal Server Error in 1ms
11782
+
11783
+ NameError (uninitialized constant SimpleSignIn::LoginController::SIMPLE_SIGN_IN_LOGIN):
11784
+ /Users/izharg/rails/projects/simple_sign_in/app/controllers/simple_sign_in/login_controller.rb:30:in `raise_missing_environment_variables_error'
11785
+ activesupport (4.0.0) lib/active_support/callbacks.rb:387:in `_run__4152367879690589391__process_action__callbacks'
11786
+ activesupport (4.0.0) lib/active_support/callbacks.rb:80:in `run_callbacks'
11787
+ actionpack (4.0.0) lib/abstract_controller/callbacks.rb:17:in `process_action'
11788
+ actionpack (4.0.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
11789
+ actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
11790
+ activesupport (4.0.0) lib/active_support/notifications.rb:159:in `block in instrument'
11791
+ activesupport (4.0.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
11792
+ activesupport (4.0.0) lib/active_support/notifications.rb:159:in `instrument'
11793
+ actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
11794
+ actionpack (4.0.0) lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
11795
+ activerecord (4.0.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
11796
+ actionpack (4.0.0) lib/abstract_controller/base.rb:136:in `process'
11797
+ actionpack (4.0.0) lib/abstract_controller/rendering.rb:44:in `process'
11798
+ actionpack (4.0.0) lib/action_controller/metal.rb:195:in `dispatch'
11799
+ actionpack (4.0.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
11800
+ actionpack (4.0.0) lib/action_controller/metal.rb:231:in `block in action'
11801
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:80:in `call'
11802
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
11803
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:48:in `call'
11804
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
11805
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `each'
11806
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `call'
11807
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:655:in `call'
11808
+ railties (4.0.0) lib/rails/engine.rb:511:in `call'
11809
+ railties (4.0.0) lib/rails/railtie/configurable.rb:30:in `method_missing'
11810
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
11811
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `each'
11812
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `call'
11813
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:655:in `call'
11814
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
11815
+ rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
11816
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
11817
+ actionpack (4.0.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
11818
+ actionpack (4.0.0) lib/action_dispatch/middleware/flash.rb:241:in `call'
11819
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
11820
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
11821
+ actionpack (4.0.0) lib/action_dispatch/middleware/cookies.rb:486:in `call'
11822
+ activerecord (4.0.0) lib/active_record/query_cache.rb:36:in `call'
11823
+ activerecord (4.0.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
11824
+ activerecord (4.0.0) lib/active_record/migration.rb:369:in `call'
11825
+ actionpack (4.0.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
11826
+ activesupport (4.0.0) lib/active_support/callbacks.rb:373:in `_run__1831821388214318271__call__callbacks'
11827
+ activesupport (4.0.0) lib/active_support/callbacks.rb:80:in `run_callbacks'
11828
+ actionpack (4.0.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
11829
+ actionpack (4.0.0) lib/action_dispatch/middleware/reloader.rb:64:in `call'
11830
+ actionpack (4.0.0) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
11831
+ actionpack (4.0.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
11832
+ actionpack (4.0.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
11833
+ railties (4.0.0) lib/rails/rack/logger.rb:38:in `call_app'
11834
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `block in call'
11835
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `block in tagged'
11836
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:25:in `tagged'
11837
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `tagged'
11838
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `call'
11839
+ actionpack (4.0.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
11840
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
11841
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
11842
+ activesupport (4.0.0) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
11843
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
11844
+ actionpack (4.0.0) lib/action_dispatch/middleware/static.rb:64:in `call'
11845
+ railties (4.0.0) lib/rails/engine.rb:511:in `call'
11846
+ railties (4.0.0) lib/rails/application.rb:97:in `call'
11847
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
11848
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
11849
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
11850
+ /Users/izharg/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
11851
+ /Users/izharg/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
11852
+ /Users/izharg/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
11853
+
11854
+
11855
+ Rendered /Users/izharg/.rvm/gems/ruby-2.0.0-p195@simple_sign_in/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (1.0ms)
11856
+ Rendered /Users/izharg/.rvm/gems/ruby-2.0.0-p195@simple_sign_in/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.5ms)
11857
+ Rendered /Users/izharg/.rvm/gems/ruby-2.0.0-p195@simple_sign_in/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.2ms)
11858
+ Rendered /Users/izharg/.rvm/gems/ruby-2.0.0-p195@simple_sign_in/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (17.1ms)
11859
+
11860
+
11861
+ Started GET "/" for 127.0.0.1 at 2013-08-05 13:39:25 +0300
11862
+ Processing by SecretsController#index as HTML
11863
+ Rendered secrets/index.html.erb within layouts/application (0.3ms)
11864
+ Completed 200 OK in 140ms (Views: 138.8ms | ActiveRecord: 0.0ms)
11865
+
11866
+
11867
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-08-05 13:39:25 +0300
11868
+
11869
+
11870
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-08-05 13:39:25 +0300
11871
+
11872
+
11873
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-08-05 13:39:25 +0300
11874
+
11875
+
11876
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-08-05 13:39:25 +0300
11877
+
11878
+
11879
+ Started DELETE "/simple_sign_in/signout" for 127.0.0.1 at 2013-08-05 13:39:27 +0300
11880
+ Processing by SimpleSignIn::LoginController#destroy as HTML
11881
+ Parameters: {"authenticity_token"=>"XEzGXFMk+GI/AsCybmI4tATRSIIBv81qbGhT8oN0F/c="}
11882
+ Completed 500 Internal Server Error in 2ms
11883
+
11884
+ NameError (uninitialized constant SimpleSignIn::LoginController::SIMPLE_SIGN_IN_LOGIN):
11885
+ /Users/izharg/rails/projects/simple_sign_in/app/controllers/simple_sign_in/login_controller.rb:30:in `raise_missing_environment_variables_error'
11886
+ activesupport (4.0.0) lib/active_support/callbacks.rb:387:in `_run__4152367879690589391__process_action__callbacks'
11887
+ activesupport (4.0.0) lib/active_support/callbacks.rb:80:in `run_callbacks'
11888
+ actionpack (4.0.0) lib/abstract_controller/callbacks.rb:17:in `process_action'
11889
+ actionpack (4.0.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
11890
+ actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
11891
+ activesupport (4.0.0) lib/active_support/notifications.rb:159:in `block in instrument'
11892
+ activesupport (4.0.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
11893
+ activesupport (4.0.0) lib/active_support/notifications.rb:159:in `instrument'
11894
+ actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
11895
+ actionpack (4.0.0) lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
11896
+ activerecord (4.0.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
11897
+ actionpack (4.0.0) lib/abstract_controller/base.rb:136:in `process'
11898
+ actionpack (4.0.0) lib/abstract_controller/rendering.rb:44:in `process'
11899
+ actionpack (4.0.0) lib/action_controller/metal.rb:195:in `dispatch'
11900
+ actionpack (4.0.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
11901
+ actionpack (4.0.0) lib/action_controller/metal.rb:231:in `block in action'
11902
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:80:in `call'
11903
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
11904
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:48:in `call'
11905
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
11906
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `each'
11907
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `call'
11908
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:655:in `call'
11909
+ railties (4.0.0) lib/rails/engine.rb:511:in `call'
11910
+ railties (4.0.0) lib/rails/railtie/configurable.rb:30:in `method_missing'
11911
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
11912
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `each'
11913
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `call'
11914
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:655:in `call'
11915
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
11916
+ rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
11917
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
11918
+ actionpack (4.0.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
11919
+ actionpack (4.0.0) lib/action_dispatch/middleware/flash.rb:241:in `call'
11920
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
11921
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
11922
+ actionpack (4.0.0) lib/action_dispatch/middleware/cookies.rb:486:in `call'
11923
+ activerecord (4.0.0) lib/active_record/query_cache.rb:36:in `call'
11924
+ activerecord (4.0.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
11925
+ activerecord (4.0.0) lib/active_record/migration.rb:369:in `call'
11926
+ actionpack (4.0.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
11927
+ activesupport (4.0.0) lib/active_support/callbacks.rb:373:in `_run__1831821388214318271__call__callbacks'
11928
+ activesupport (4.0.0) lib/active_support/callbacks.rb:80:in `run_callbacks'
11929
+ actionpack (4.0.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
11930
+ actionpack (4.0.0) lib/action_dispatch/middleware/reloader.rb:64:in `call'
11931
+ actionpack (4.0.0) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
11932
+ actionpack (4.0.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
11933
+ actionpack (4.0.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
11934
+ railties (4.0.0) lib/rails/rack/logger.rb:38:in `call_app'
11935
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `block in call'
11936
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `block in tagged'
11937
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:25:in `tagged'
11938
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `tagged'
11939
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `call'
11940
+ actionpack (4.0.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
11941
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
11942
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
11943
+ activesupport (4.0.0) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
11944
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
11945
+ actionpack (4.0.0) lib/action_dispatch/middleware/static.rb:64:in `call'
11946
+ railties (4.0.0) lib/rails/engine.rb:511:in `call'
11947
+ railties (4.0.0) lib/rails/application.rb:97:in `call'
11948
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
11949
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
11950
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
11951
+ /Users/izharg/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
11952
+ /Users/izharg/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
11953
+ /Users/izharg/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
11954
+
11955
+
11956
+ Rendered /Users/izharg/.rvm/gems/ruby-2.0.0-p195@simple_sign_in/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.6ms)
11957
+ Rendered /Users/izharg/.rvm/gems/ruby-2.0.0-p195@simple_sign_in/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
11958
+ Rendered /Users/izharg/.rvm/gems/ruby-2.0.0-p195@simple_sign_in/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
11959
+ Rendered /Users/izharg/.rvm/gems/ruby-2.0.0-p195@simple_sign_in/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (12.8ms)
11960
+
11961
+
11962
+ Started DELETE "/simple_sign_in/signout" for 127.0.0.1 at 2013-08-05 13:40:04 +0300
11963
+ Processing by SimpleSignIn::LoginController#destroy as HTML
11964
+ Parameters: {"authenticity_token"=>"XEzGXFMk+GI/AsCybmI4tATRSIIBv81qbGhT8oN0F/c="}
11965
+ Redirected to http://localhost:3000/simple_sign_in/
11966
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
11967
+
11968
+
11969
+ Started GET "/simple_sign_in/" for 127.0.0.1 at 2013-08-05 13:40:04 +0300
11970
+ Processing by SimpleSignIn::LoginController#new as HTML
11971
+ Rendered /Users/izharg/rails/projects/simple_sign_in/app/views/simple_sign_in/login/new.html.erb within layouts/simple_sign_in/application (1.8ms)
11972
+ Completed 200 OK in 84ms (Views: 83.6ms | ActiveRecord: 0.0ms)
11973
+
11974
+
11975
+ Started GET "/assets/simple_sign_in/application.css?body=1" for 127.0.0.1 at 2013-08-05 13:40:04 +0300
11976
+
11977
+
11978
+ Started GET "/assets/simple_sign_in/login.css?body=1" for 127.0.0.1 at 2013-08-05 13:40:04 +0300
11979
+
11980
+
11981
+ Started GET "/assets/simple_sign_in/login.js?body=1" for 127.0.0.1 at 2013-08-05 13:40:04 +0300
11982
+
11983
+
11984
+ Started GET "/assets/simple_sign_in/application.js?body=1" for 127.0.0.1 at 2013-08-05 13:40:04 +0300
11985
+
11986
+
11987
+ Started POST "/simple_sign_in/login" for 127.0.0.1 at 2013-08-05 13:40:12 +0300
11988
+ Processing by SimpleSignIn::LoginController#create as HTML
11989
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"XEzGXFMk+GI/AsCybmI4tATRSIIBv81qbGhT8oN0F/c=", "login"=>"admin", "password"=>"[FILTERED]", "commit"=>"Submit"}
11990
+ Redirected to http://localhost:3000/
11991
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
11992
+
11993
+
11994
+ Started GET "/" for 127.0.0.1 at 2013-08-05 13:40:12 +0300
11995
+ Processing by SecretsController#index as HTML
11996
+ Rendered secrets/index.html.erb within layouts/application (0.1ms)
11997
+ Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)
11998
+
11999
+
12000
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-08-05 13:40:12 +0300
12001
+
12002
+
12003
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-08-05 13:40:12 +0300
12004
+
12005
+
12006
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-08-05 13:40:12 +0300
12007
+
12008
+
12009
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-08-05 13:40:12 +0300
12010
+
12011
+
12012
+ Started GET "/simple_sign_in" for 127.0.0.1 at 2013-08-05 13:40:15 +0300
12013
+ Processing by SimpleSignIn::LoginController#new as HTML
12014
+ Redirected to http://localhost:3000/
12015
+ Filter chain halted as :redirect_to_root_if_user_is_logged_in rendered or redirected
12016
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
12017
+
12018
+
12019
+ Started GET "/simple_sign_in" for 127.0.0.1 at 2013-08-05 13:40:16 +0300
12020
+ Processing by SimpleSignIn::LoginController#new as HTML
12021
+ Redirected to http://localhost:3000/
12022
+ Filter chain halted as :redirect_to_root_if_user_is_logged_in rendered or redirected
12023
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
12024
+
12025
+
12026
+ Started GET "/" for 127.0.0.1 at 2013-08-05 13:40:16 +0300
12027
+ Processing by SecretsController#index as HTML
12028
+ Rendered secrets/index.html.erb within layouts/application (0.2ms)
12029
+ Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms)
12030
+
12031
+
12032
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-08-05 13:40:16 +0300
12033
+
12034
+
12035
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-08-05 13:40:16 +0300
12036
+
12037
+
12038
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-08-05 13:40:16 +0300
12039
+
12040
+
12041
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-08-05 13:40:16 +0300
12042
+
12043
+
12044
+ Started DELETE "/simple_sign_in/signout" for 127.0.0.1 at 2013-08-05 13:40:20 +0300
12045
+ Processing by SimpleSignIn::LoginController#destroy as HTML
12046
+ Parameters: {"authenticity_token"=>"XEzGXFMk+GI/AsCybmI4tATRSIIBv81qbGhT8oN0F/c="}
12047
+ Redirected to http://localhost:3000/simple_sign_in/
12048
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
12049
+
12050
+
12051
+ Started GET "/simple_sign_in/" for 127.0.0.1 at 2013-08-05 13:40:20 +0300
12052
+ Processing by SimpleSignIn::LoginController#new as HTML
12053
+ Rendered /Users/izharg/rails/projects/simple_sign_in/app/views/simple_sign_in/login/new.html.erb within layouts/simple_sign_in/application (1.0ms)
12054
+ Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
12055
+
12056
+
12057
+ Started GET "/assets/simple_sign_in/login.css?body=1" for 127.0.0.1 at 2013-08-05 13:40:20 +0300
12058
+
12059
+
12060
+ Started GET "/assets/simple_sign_in/application.css?body=1" for 127.0.0.1 at 2013-08-05 13:40:20 +0300
12061
+
12062
+
12063
+ Started GET "/assets/simple_sign_in/application.js?body=1" for 127.0.0.1 at 2013-08-05 13:40:20 +0300
12064
+
12065
+
12066
+ Started GET "/assets/simple_sign_in/login.js?body=1" for 127.0.0.1 at 2013-08-05 13:40:20 +0300
12067
+
12068
+
12069
+ Started GET "/simple_sign_in/" for 127.0.0.1 at 2013-08-05 13:42:41 +0300
12070
+ Processing by SimpleSignIn::LoginController#new as HTML
12071
+ Rendered /Users/izharg/rails/projects/simple_sign_in/app/views/simple_sign_in/login/new.html.erb within layouts/simple_sign_in/application (3.7ms)
12072
+ Completed 200 OK in 134ms (Views: 63.9ms | ActiveRecord: 0.0ms)
12073
+
12074
+
12075
+ Started GET "/assets/simple_sign_in/application.css?body=1" for 127.0.0.1 at 2013-08-05 13:42:41 +0300
12076
+
12077
+
12078
+ Started GET "/assets/simple_sign_in/login.css?body=1" for 127.0.0.1 at 2013-08-05 13:42:41 +0300
12079
+
12080
+
12081
+ Started GET "/assets/simple_sign_in/application.js?body=1" for 127.0.0.1 at 2013-08-05 13:42:41 +0300
12082
+
12083
+
12084
+ Started GET "/assets/simple_sign_in/login.js?body=1" for 127.0.0.1 at 2013-08-05 13:42:41 +0300
12085
+
12086
+
12087
+ Started GET "/simple_sign_in/" for 127.0.0.1 at 2013-08-05 13:42:43 +0300
12088
+ Processing by SimpleSignIn::LoginController#new as HTML
12089
+ Rendered /Users/izharg/rails/projects/simple_sign_in/app/views/simple_sign_in/login/new.html.erb within layouts/simple_sign_in/application (0.9ms)
12090
+ Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms)
12091
+
12092
+
12093
+ Started GET "/assets/simple_sign_in/login.css?body=1" for 127.0.0.1 at 2013-08-05 13:42:44 +0300
12094
+
12095
+
12096
+ Started GET "/assets/simple_sign_in/application.css?body=1" for 127.0.0.1 at 2013-08-05 13:42:44 +0300
12097
+
12098
+
12099
+ Started GET "/assets/simple_sign_in/login.js?body=1" for 127.0.0.1 at 2013-08-05 13:42:44 +0300
12100
+
12101
+
12102
+ Started GET "/assets/simple_sign_in/application.js?body=1" for 127.0.0.1 at 2013-08-05 13:42:44 +0300
12103
+
12104
+
12105
+ Started GET "/" for 127.0.0.1 at 2013-08-05 13:42:47 +0300
12106
+ Processing by SecretsController#index as HTML
12107
+ Redirected to http://localhost:3000/simple_sign_in
12108
+ Filter chain halted as :simple_sign_in_authentication rendered or redirected
12109
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
12110
+
12111
+
12112
+ Started GET "/simple_sign_in" for 127.0.0.1 at 2013-08-05 13:42:47 +0300
12113
+ Processing by SimpleSignIn::LoginController#new as HTML
12114
+ Rendered /Users/izharg/rails/projects/simple_sign_in/app/views/simple_sign_in/login/new.html.erb within layouts/simple_sign_in/application (1.3ms)
12115
+ Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.0ms)
12116
+
12117
+
12118
+ Started GET "/assets/simple_sign_in/login.css?body=1" for 127.0.0.1 at 2013-08-05 13:42:47 +0300
12119
+
12120
+
12121
+ Started GET "/assets/simple_sign_in/application.js?body=1" for 127.0.0.1 at 2013-08-05 13:42:47 +0300
12122
+
12123
+
12124
+ Started GET "/assets/simple_sign_in/application.css?body=1" for 127.0.0.1 at 2013-08-05 13:42:47 +0300
12125
+
12126
+
12127
+ Started GET "/assets/simple_sign_in/login.js?body=1" for 127.0.0.1 at 2013-08-05 13:42:47 +0300
12128
+
12129
+
12130
+ Started GET "/" for 127.0.0.1 at 2013-08-05 13:45:08 +0300
12131
+ Processing by SecretsController#index as HTML
12132
+ Rendered secrets/index.html.erb within layouts/application (1.2ms)
12133
+ Completed 200 OK in 171ms (Views: 152.6ms | ActiveRecord: 0.0ms)
12134
+
12135
+
12136
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-08-05 13:45:09 +0300
12137
+
12138
+
12139
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-08-05 13:45:09 +0300
12140
+
12141
+
12142
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-08-05 13:45:09 +0300
12143
+
12144
+
12145
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-08-05 13:45:09 +0300
12146
+
12147
+
12148
+ Started DELETE "/simple_sign_in/signout" for 127.0.0.1 at 2013-08-05 13:45:11 +0300
12149
+ Processing by SimpleSignIn::LoginController#destroy as HTML
12150
+ Parameters: {"authenticity_token"=>"XEzGXFMk+GI/AsCybmI4tATRSIIBv81qbGhT8oN0F/c="}
12151
+ Completed 500 Internal Server Error in 1ms
12152
+
12153
+ RuntimeError ( simple_sign_in login and password were not specified!
12154
+ please make sure that the environment variables SIMPLE_SIGN_IN_LOGIN and SIMPLE_SIGN_IN_PASSWORD
12155
+ have been set up as described here: https://github.com/Yud/simple_sign_in#installation
12156
+ ):
12157
+ /Users/izharg/rails/projects/simple_sign_in/app/controllers/simple_sign_in/login_controller.rb:31:in `raise_missing_environment_variables_error'
12158
+ activesupport (4.0.0) lib/active_support/callbacks.rb:387:in `_run__517479386274481355__process_action__callbacks'
12159
+ activesupport (4.0.0) lib/active_support/callbacks.rb:80:in `run_callbacks'
12160
+ actionpack (4.0.0) lib/abstract_controller/callbacks.rb:17:in `process_action'
12161
+ actionpack (4.0.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
12162
+ actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
12163
+ activesupport (4.0.0) lib/active_support/notifications.rb:159:in `block in instrument'
12164
+ activesupport (4.0.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
12165
+ activesupport (4.0.0) lib/active_support/notifications.rb:159:in `instrument'
12166
+ actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
12167
+ actionpack (4.0.0) lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
12168
+ activerecord (4.0.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
12169
+ actionpack (4.0.0) lib/abstract_controller/base.rb:136:in `process'
12170
+ actionpack (4.0.0) lib/abstract_controller/rendering.rb:44:in `process'
12171
+ actionpack (4.0.0) lib/action_controller/metal.rb:195:in `dispatch'
12172
+ actionpack (4.0.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
12173
+ actionpack (4.0.0) lib/action_controller/metal.rb:231:in `block in action'
12174
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:80:in `call'
12175
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
12176
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:48:in `call'
12177
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
12178
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `each'
12179
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `call'
12180
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:655:in `call'
12181
+ railties (4.0.0) lib/rails/engine.rb:511:in `call'
12182
+ railties (4.0.0) lib/rails/railtie/configurable.rb:30:in `method_missing'
12183
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
12184
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `each'
12185
+ actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `call'
12186
+ actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:655:in `call'
12187
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
12188
+ rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
12189
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
12190
+ actionpack (4.0.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
12191
+ actionpack (4.0.0) lib/action_dispatch/middleware/flash.rb:241:in `call'
12192
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
12193
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
12194
+ actionpack (4.0.0) lib/action_dispatch/middleware/cookies.rb:486:in `call'
12195
+ activerecord (4.0.0) lib/active_record/query_cache.rb:36:in `call'
12196
+ activerecord (4.0.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
12197
+ activerecord (4.0.0) lib/active_record/migration.rb:369:in `call'
12198
+ actionpack (4.0.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
12199
+ activesupport (4.0.0) lib/active_support/callbacks.rb:373:in `_run__3051491456373656018__call__callbacks'
12200
+ activesupport (4.0.0) lib/active_support/callbacks.rb:80:in `run_callbacks'
12201
+ actionpack (4.0.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
12202
+ actionpack (4.0.0) lib/action_dispatch/middleware/reloader.rb:64:in `call'
12203
+ actionpack (4.0.0) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
12204
+ actionpack (4.0.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
12205
+ actionpack (4.0.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
12206
+ railties (4.0.0) lib/rails/rack/logger.rb:38:in `call_app'
12207
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `block in call'
12208
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `block in tagged'
12209
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:25:in `tagged'
12210
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `tagged'
12211
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `call'
12212
+ actionpack (4.0.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
12213
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
12214
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
12215
+ activesupport (4.0.0) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
12216
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
12217
+ actionpack (4.0.0) lib/action_dispatch/middleware/static.rb:64:in `call'
12218
+ railties (4.0.0) lib/rails/engine.rb:511:in `call'
12219
+ railties (4.0.0) lib/rails/application.rb:97:in `call'
12220
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
12221
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
12222
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
12223
+ /Users/izharg/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
12224
+ /Users/izharg/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
12225
+ /Users/izharg/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
12226
+
12227
+
12228
+ Rendered /Users/izharg/.rvm/gems/ruby-2.0.0-p195@simple_sign_in/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.5ms)
12229
+ Rendered /Users/izharg/.rvm/gems/ruby-2.0.0-p195@simple_sign_in/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.9ms)
12230
+ Rendered /Users/izharg/.rvm/gems/ruby-2.0.0-p195@simple_sign_in/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.1ms)
12231
+ Rendered /Users/izharg/.rvm/gems/ruby-2.0.0-p195@simple_sign_in/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (18.8ms)