lockup 1.4.4 → 1.4.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/app/views/lockup/lockup/unlock.html.erb +2 -2
- data/lib/lockup/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 136130a926ef1ba34eacc2fb2fa5c367417dc852
|
4
|
+
data.tar.gz: f285ee4b493050e53a5698391cc7749db14d936f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7efd1f4da8f13bc233e28cadee641a3fb4c46e17242d101b9a7149fe74c67f9871b55dc2f79606d5255176b5b0142bc64a75110ef5cffc7dc1a09e5cbdce9b0d
|
7
|
+
data.tar.gz: 49b27bd4332c9e80ba08e33baca06adff6663030ac7038720aca7c341d6362dee5a9ce6dce38580b1937e8ae73476f7659bf2767e79632042999ea8150e280b3
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
# Lockup
|
4
4
|
|
5
|
-
[![Gem Version](https://badge.fury.io/rb/lockup.
|
5
|
+
[![Gem Version](https://badge.fury.io/rb/lockup.svg)](http://badge.fury.io/rb/lockup)
|
6
6
|
|
7
7
|
A simple gem to more elegantly place a staging server or other in-progress rails application behind a basic codeword. It’s easy to implement, share with clients/collaborators, and more beautiful than the typical password-protection sheet.
|
8
8
|
|
@@ -58,7 +58,7 @@ If you’re using [Figaro](https://github.com/laserlemon/figaro), set your Locku
|
|
58
58
|
|
59
59
|
2. In your application_controller.rb file, add:
|
60
60
|
|
61
|
-
skip_before_action :check_for_lockup
|
61
|
+
skip_before_action :check_for_lockup, raise: false
|
62
62
|
|
63
63
|
4. In the controller(s) you would like to restrict:
|
64
64
|
|
@@ -8,9 +8,9 @@
|
|
8
8
|
|
9
9
|
<%= form_for :lockup, url: { action: 'unlock' } do |form| %>
|
10
10
|
<% unless @wrong == true %>
|
11
|
-
<p><%= form.password_field "codeword", placeholder: "code word" %></p>
|
11
|
+
<p><%= form.password_field "codeword", placeholder: "code word", autofocus: true %></p>
|
12
12
|
<% else %>
|
13
|
-
<p><%= form.password_field "codeword", value: @codeword, class: 'nope' %></p>
|
13
|
+
<p><%= form.password_field "codeword", value: @codeword, class: 'nope', autofocus: true %></p>
|
14
14
|
<% end %>
|
15
15
|
|
16
16
|
<% if lockup_hint_present? %>
|
data/lib/lockup/version.rb
CHANGED
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: 1.4.
|
4
|
+
version: 1.4.5.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:
|
11
|
+
date: 2019-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|