lockup 1.6 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/lockup.rb +1 -1
- data/lib/lockup/version.rb +1 -1
- data/spec/dummy/log/test.log +159 -0
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9850180a23de0a361793e87e23c867dc4347edb264f75cfad05bc1d5c5bbda26
|
4
|
+
data.tar.gz: d9977ff66c249ac82105f976cc2af257a21e538ff46a24828599dc578493cb64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa93235ed9430fbc7e422376d09d3131da939cc086daf68e4eaa101fc72da52b2dc1b1e066f95a11192c158f65ee07df0ae1e20c831a7399ff7e0f29ebf637e9
|
7
|
+
data.tar.gz: 2ff63561c147811d674e0afd64e0f8a249ea2db0c5a2e6d7fdc3725b03fb5c2de28cda2c96493aad13dbe17cd63fd65d0ad55a19ac7f6b4a6c6fb38e832261f4
|
data/lib/lockup.rb
CHANGED
@@ -27,7 +27,7 @@ module Lockup
|
|
27
27
|
|
28
28
|
def check_for_lockup
|
29
29
|
return unless respond_to?(:lockup) && lockup_codeword
|
30
|
-
return if cookies[:lockup].present? && cookies[:lockup] == lockup_codeword.to_s.downcase
|
30
|
+
return if cookies && cookies[:lockup].present? && cookies[:lockup] == lockup_codeword.to_s.downcase
|
31
31
|
|
32
32
|
redirect_to lockup.unlock_path(
|
33
33
|
return_to: request.fullpath.split('?lockup_codeword')[0],
|
data/lib/lockup/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -5980,3 +5980,162 @@ Completed 406 Not Acceptable in 0ms
|
|
5980
5980
|
Processing by Lockup::LockupController#unlock as HTML
|
5981
5981
|
Parameters: {"foo"=>"bar"}
|
5982
5982
|
Completed 200 OK in 0ms
|
5983
|
+
Processing by Lockup::LockupController#unlock as HTML
|
5984
|
+
Parameters: {"foo"=>"bar"}
|
5985
|
+
Completed 200 OK in 0ms
|
5986
|
+
Processing by Lockup::LockupController#unlock as TEXT
|
5987
|
+
Completed 406 Not Acceptable in 0ms
|
5988
|
+
Started GET "/posts" for 127.0.0.1 at 2020-12-08 16:22:44 -0800
|
5989
|
+
Processing by PostsController#index as HTML
|
5990
|
+
Rendering posts/index.html.erb within layouts/application
|
5991
|
+
Rendered posts/index.html.erb within layouts/application (1.0ms)
|
5992
|
+
Completed 200 OK in 108ms (Views: 90.5ms)
|
5993
|
+
Started GET "/posts" for 127.0.0.1 at 2020-12-08 16:22:44 -0800
|
5994
|
+
Processing by PostsController#index as HTML
|
5995
|
+
Redirected to http://www.example.com/lockup/unlock?return_to=%2Fposts
|
5996
|
+
Filter chain halted as :check_for_lockup rendered or redirected
|
5997
|
+
Completed 302 Found in 1ms
|
5998
|
+
Started GET "/lockup/unlock?return_to=%2Fposts" for 127.0.0.1 at 2020-12-08 16:22:44 -0800
|
5999
|
+
Processing by Lockup::LockupController#unlock as HTML
|
6000
|
+
Parameters: {"return_to"=>"/posts"}
|
6001
|
+
Rendering /Users/gblakeman/Dropbox/-Projects/Lockup/Build/Gem/lockup_gem/app/views/lockup/lockup/unlock.html.erb within layouts/lockup/application
|
6002
|
+
Rendered /Users/gblakeman/Dropbox/-Projects/Lockup/Build/Gem/lockup_gem/app/views/lockup/lockup/unlock.html.erb within layouts/lockup/application (4.7ms)
|
6003
|
+
Rendered /Users/gblakeman/Dropbox/-Projects/Lockup/Build/Gem/lockup_gem/app/views/layouts/lockup/_inline_css.html.erb (0.5ms)
|
6004
|
+
Rendered /Users/gblakeman/Dropbox/-Projects/Lockup/Build/Gem/lockup_gem/app/views/layouts/lockup/_inline_js.html.erb (0.1ms)
|
6005
|
+
Completed 200 OK in 19ms (Views: 16.6ms)
|
6006
|
+
Started GET "/posts" for 127.0.0.1 at 2020-12-08 16:22:44 -0800
|
6007
|
+
Processing by PostsController#index as HTML
|
6008
|
+
Redirected to http://www.example.com/lockup/unlock?return_to=%2Fposts
|
6009
|
+
Filter chain halted as :check_for_lockup rendered or redirected
|
6010
|
+
Completed 302 Found in 0ms
|
6011
|
+
Started GET "/lockup/unlock?return_to=%2Fposts" for 127.0.0.1 at 2020-12-08 16:22:44 -0800
|
6012
|
+
Processing by Lockup::LockupController#unlock as HTML
|
6013
|
+
Parameters: {"return_to"=>"/posts"}
|
6014
|
+
Rendering /Users/gblakeman/Dropbox/-Projects/Lockup/Build/Gem/lockup_gem/app/views/lockup/lockup/unlock.html.erb within layouts/lockup/application
|
6015
|
+
Rendered /Users/gblakeman/Dropbox/-Projects/Lockup/Build/Gem/lockup_gem/app/views/lockup/lockup/unlock.html.erb within layouts/lockup/application (0.3ms)
|
6016
|
+
Rendered /Users/gblakeman/Dropbox/-Projects/Lockup/Build/Gem/lockup_gem/app/views/layouts/lockup/_inline_css.html.erb (0.0ms)
|
6017
|
+
Rendered /Users/gblakeman/Dropbox/-Projects/Lockup/Build/Gem/lockup_gem/app/views/layouts/lockup/_inline_js.html.erb (0.0ms)
|
6018
|
+
Completed 200 OK in 1ms (Views: 0.7ms)
|
6019
|
+
Started POST "/lockup/unlock" for 127.0.0.1 at 2020-12-08 16:22:44 -0800
|
6020
|
+
Processing by Lockup::LockupController#unlock as HTML
|
6021
|
+
Parameters: {"utf8"=>"✓", "lockup"=>{"codeword"=>"omgponies", "return_to"=>"/posts"}, "button"=>""}
|
6022
|
+
Redirected to http://www.example.com/posts
|
6023
|
+
Completed 302 Found in 0ms
|
6024
|
+
Started GET "/posts" for 127.0.0.1 at 2020-12-08 16:22:44 -0800
|
6025
|
+
Processing by PostsController#index as HTML
|
6026
|
+
Rendering posts/index.html.erb within layouts/application
|
6027
|
+
Rendered posts/index.html.erb within layouts/application (0.1ms)
|
6028
|
+
Completed 200 OK in 1ms (Views: 0.8ms)
|
6029
|
+
Started GET "/posts?lookup_codeword=lolwut" for 127.0.0.1 at 2020-12-08 16:22:44 -0800
|
6030
|
+
Processing by PostsController#index as HTML
|
6031
|
+
Parameters: {"lookup_codeword"=>"lolwut"}
|
6032
|
+
Redirected to http://www.example.com/lockup/unlock?return_to=%2Fposts%3Flookup_codeword%3Dlolwut
|
6033
|
+
Filter chain halted as :check_for_lockup rendered or redirected
|
6034
|
+
Completed 302 Found in 0ms
|
6035
|
+
Started GET "/lockup/unlock?return_to=%2Fposts%3Flookup_codeword%3Dlolwut" for 127.0.0.1 at 2020-12-08 16:22:44 -0800
|
6036
|
+
Processing by Lockup::LockupController#unlock as HTML
|
6037
|
+
Parameters: {"return_to"=>"/posts?lookup_codeword=lolwut"}
|
6038
|
+
Rendering /Users/gblakeman/Dropbox/-Projects/Lockup/Build/Gem/lockup_gem/app/views/lockup/lockup/unlock.html.erb within layouts/lockup/application
|
6039
|
+
Rendered /Users/gblakeman/Dropbox/-Projects/Lockup/Build/Gem/lockup_gem/app/views/lockup/lockup/unlock.html.erb within layouts/lockup/application (0.3ms)
|
6040
|
+
Rendered /Users/gblakeman/Dropbox/-Projects/Lockup/Build/Gem/lockup_gem/app/views/layouts/lockup/_inline_css.html.erb (0.0ms)
|
6041
|
+
Rendered /Users/gblakeman/Dropbox/-Projects/Lockup/Build/Gem/lockup_gem/app/views/layouts/lockup/_inline_js.html.erb (0.0ms)
|
6042
|
+
Completed 200 OK in 1ms (Views: 0.7ms)
|
6043
|
+
Started GET "/posts" for 127.0.0.1 at 2020-12-08 16:22:44 -0800
|
6044
|
+
Processing by PostsController#index as HTML
|
6045
|
+
Redirected to http://www.example.com/lockup/unlock?return_to=%2Fposts
|
6046
|
+
Filter chain halted as :check_for_lockup rendered or redirected
|
6047
|
+
Completed 302 Found in 0ms
|
6048
|
+
Started GET "/lockup/unlock?return_to=%2Fposts" for 127.0.0.1 at 2020-12-08 16:22:44 -0800
|
6049
|
+
Processing by Lockup::LockupController#unlock as HTML
|
6050
|
+
Parameters: {"return_to"=>"/posts"}
|
6051
|
+
Rendering /Users/gblakeman/Dropbox/-Projects/Lockup/Build/Gem/lockup_gem/app/views/lockup/lockup/unlock.html.erb within layouts/lockup/application
|
6052
|
+
Rendered /Users/gblakeman/Dropbox/-Projects/Lockup/Build/Gem/lockup_gem/app/views/lockup/lockup/unlock.html.erb within layouts/lockup/application (0.3ms)
|
6053
|
+
Rendered /Users/gblakeman/Dropbox/-Projects/Lockup/Build/Gem/lockup_gem/app/views/layouts/lockup/_inline_css.html.erb (0.0ms)
|
6054
|
+
Rendered /Users/gblakeman/Dropbox/-Projects/Lockup/Build/Gem/lockup_gem/app/views/layouts/lockup/_inline_js.html.erb (0.0ms)
|
6055
|
+
Completed 200 OK in 1ms (Views: 0.6ms)
|
6056
|
+
Started POST "/lockup/unlock" for 127.0.0.1 at 2020-12-08 16:22:44 -0800
|
6057
|
+
Processing by Lockup::LockupController#unlock as HTML
|
6058
|
+
Parameters: {"utf8"=>"✓", "lockup"=>{"codeword"=>"lolwut", "return_to"=>"/posts"}, "button"=>""}
|
6059
|
+
Rendering /Users/gblakeman/Dropbox/-Projects/Lockup/Build/Gem/lockup_gem/app/views/lockup/lockup/unlock.html.erb within layouts/lockup/application
|
6060
|
+
Rendered /Users/gblakeman/Dropbox/-Projects/Lockup/Build/Gem/lockup_gem/app/views/lockup/lockup/unlock.html.erb within layouts/lockup/application (0.2ms)
|
6061
|
+
Rendered /Users/gblakeman/Dropbox/-Projects/Lockup/Build/Gem/lockup_gem/app/views/layouts/lockup/_inline_css.html.erb (0.0ms)
|
6062
|
+
Rendered /Users/gblakeman/Dropbox/-Projects/Lockup/Build/Gem/lockup_gem/app/views/layouts/lockup/_inline_js.html.erb (0.0ms)
|
6063
|
+
Completed 200 OK in 1ms (Views: 0.6ms)
|
6064
|
+
Started GET "/posts?lockup_codeword=omgponies" for 127.0.0.1 at 2020-12-08 16:22:44 -0800
|
6065
|
+
Processing by PostsController#index as HTML
|
6066
|
+
Parameters: {"lockup_codeword"=>"omgponies"}
|
6067
|
+
Redirected to http://www.example.com/lockup/unlock?lockup_codeword=omgponies&return_to=%2Fposts
|
6068
|
+
Filter chain halted as :check_for_lockup rendered or redirected
|
6069
|
+
Completed 302 Found in 0ms
|
6070
|
+
Started GET "/lockup/unlock?lockup_codeword=omgponies&return_to=%2Fposts" for 127.0.0.1 at 2020-12-08 16:22:44 -0800
|
6071
|
+
Processing by Lockup::LockupController#unlock as HTML
|
6072
|
+
Parameters: {"lockup_codeword"=>"omgponies", "return_to"=>"/posts"}
|
6073
|
+
Redirected to http://www.example.com/posts
|
6074
|
+
Completed 302 Found in 0ms
|
6075
|
+
Started GET "/posts" for 127.0.0.1 at 2020-12-08 16:22:44 -0800
|
6076
|
+
Processing by PostsController#index as HTML
|
6077
|
+
Rendering posts/index.html.erb within layouts/application
|
6078
|
+
Rendered posts/index.html.erb within layouts/application (0.1ms)
|
6079
|
+
Completed 200 OK in 1ms (Views: 0.8ms)
|
6080
|
+
Started GET "/posts/1" for 127.0.0.1 at 2020-12-08 16:22:44 -0800
|
6081
|
+
Processing by PostsController#show as HTML
|
6082
|
+
Parameters: {"id"=>"1"}
|
6083
|
+
Rendering posts/show.html.erb within layouts/application
|
6084
|
+
Rendered posts/show.html.erb within layouts/application (0.2ms)
|
6085
|
+
Completed 200 OK in 3ms (Views: 0.8ms)
|
6086
|
+
Started GET "/posts?lockup_codeword=omgponies" for 127.0.0.1 at 2020-12-08 16:22:44 -0800
|
6087
|
+
Processing by PostsController#index as HTML
|
6088
|
+
Parameters: {"lockup_codeword"=>"omgponies"}
|
6089
|
+
Redirected to http://www.example.com/lockup/unlock?lockup_codeword=omgponies&return_to=%2Fposts
|
6090
|
+
Filter chain halted as :check_for_lockup rendered or redirected
|
6091
|
+
Completed 302 Found in 0ms
|
6092
|
+
Started GET "/lockup/unlock?lockup_codeword=omgponies&return_to=%2Fposts" for 127.0.0.1 at 2020-12-08 16:22:44 -0800
|
6093
|
+
Processing by Lockup::LockupController#unlock as HTML
|
6094
|
+
Parameters: {"lockup_codeword"=>"omgponies", "return_to"=>"/posts"}
|
6095
|
+
Completed 200 OK in 0ms
|
6096
|
+
Started GET "/this-does-not-exist?lockup_codeword=omgponies" for 127.0.0.1 at 2020-12-08 16:22:44 -0800
|
6097
|
+
Processing by ApplicationController#render_404 as HTML
|
6098
|
+
Parameters: {"lockup_codeword"=>"omgponies", "path"=>"this-does-not-exist"}
|
6099
|
+
Redirected to http://www.example.com/lockup/unlock?lockup_codeword=omgponies&return_to=%2Fthis-does-not-exist
|
6100
|
+
Filter chain halted as :check_for_lockup rendered or redirected
|
6101
|
+
Completed 302 Found in 0ms
|
6102
|
+
Started GET "/lockup/unlock?lockup_codeword=omgponies&return_to=%2Fthis-does-not-exist" for 127.0.0.1 at 2020-12-08 16:22:44 -0800
|
6103
|
+
Processing by Lockup::LockupController#unlock as HTML
|
6104
|
+
Parameters: {"lockup_codeword"=>"omgponies", "return_to"=>"/this-does-not-exist"}
|
6105
|
+
Redirected to http://www.example.com/this-does-not-exist
|
6106
|
+
Completed 302 Found in 0ms
|
6107
|
+
Started GET "/this-does-not-exist" for 127.0.0.1 at 2020-12-08 16:22:44 -0800
|
6108
|
+
Processing by ApplicationController#render_404 as HTML
|
6109
|
+
Parameters: {"path"=>"this-does-not-exist"}
|
6110
|
+
Rendering public/404.html within layouts/application
|
6111
|
+
Rendered public/404.html within layouts/application (0.3ms)
|
6112
|
+
Completed 404 Not Found in 9ms (Views: 8.4ms)
|
6113
|
+
Started GET "/posts" for 127.0.0.1 at 2020-12-08 16:22:44 -0800
|
6114
|
+
Processing by PostsController#index as HTML
|
6115
|
+
Redirected to http://www.example.com/lockup/unlock?return_to=%2Fposts
|
6116
|
+
Filter chain halted as :check_for_lockup rendered or redirected
|
6117
|
+
Completed 302 Found in 0ms
|
6118
|
+
Started GET "/lockup/unlock?return_to=%2Fposts" for 127.0.0.1 at 2020-12-08 16:22:44 -0800
|
6119
|
+
Processing by Lockup::LockupController#unlock as HTML
|
6120
|
+
Parameters: {"return_to"=>"/posts"}
|
6121
|
+
Rendering /Users/gblakeman/Dropbox/-Projects/Lockup/Build/Gem/lockup_gem/app/views/lockup/lockup/unlock.html.erb within layouts/lockup/application
|
6122
|
+
Rendered /Users/gblakeman/Dropbox/-Projects/Lockup/Build/Gem/lockup_gem/app/views/lockup/lockup/unlock.html.erb within layouts/lockup/application (0.4ms)
|
6123
|
+
Rendered /Users/gblakeman/Dropbox/-Projects/Lockup/Build/Gem/lockup_gem/app/views/layouts/lockup/_inline_css.html.erb (0.0ms)
|
6124
|
+
Rendered /Users/gblakeman/Dropbox/-Projects/Lockup/Build/Gem/lockup_gem/app/views/layouts/lockup/_inline_js.html.erb (0.0ms)
|
6125
|
+
Completed 200 OK in 1ms (Views: 0.9ms)
|
6126
|
+
Started GET "/posts?lockup_codeword=omgponies" for 127.0.0.1 at 2020-12-08 16:22:44 -0800
|
6127
|
+
Processing by PostsController#index as HTML
|
6128
|
+
Parameters: {"lockup_codeword"=>"omgponies"}
|
6129
|
+
Redirected to http://www.example.com/lockup/unlock?lockup_codeword=omgponies&return_to=%2Fposts
|
6130
|
+
Filter chain halted as :check_for_lockup rendered or redirected
|
6131
|
+
Completed 302 Found in 0ms
|
6132
|
+
Started GET "/lockup/unlock?lockup_codeword=omgponies&return_to=%2Fposts" for 127.0.0.1 at 2020-12-08 16:22:44 -0800
|
6133
|
+
Processing by Lockup::LockupController#unlock as HTML
|
6134
|
+
Parameters: {"lockup_codeword"=>"omgponies", "return_to"=>"/posts"}
|
6135
|
+
Redirected to http://www.example.com/posts
|
6136
|
+
Completed 302 Found in 0ms
|
6137
|
+
Started GET "/posts" for 127.0.0.1 at 2020-12-08 16:22:44 -0800
|
6138
|
+
Processing by PostsController#index as HTML
|
6139
|
+
Rendering posts/index.html.erb within layouts/application
|
6140
|
+
Rendered posts/index.html.erb within layouts/application (0.1ms)
|
6141
|
+
Completed 200 OK in 1ms (Views: 0.8ms)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lockup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- gb Studio
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-12-
|
11
|
+
date: 2020-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -213,8 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
213
213
|
- !ruby/object:Gem::Version
|
214
214
|
version: '0'
|
215
215
|
requirements: []
|
216
|
-
|
217
|
-
rubygems_version: 2.5.1
|
216
|
+
rubygems_version: 3.1.4
|
218
217
|
signing_key:
|
219
218
|
specification_version: 4
|
220
219
|
summary: Lock staging servers from search engines and prying eyes.
|