lockup 1.3.2 → 1.3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/helpers/lockup/lockup_helper.rb +1 -3
- data/lib/lockup.rb +1 -3
- data/lib/lockup/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTU5ZDkxYTBhOTQ2ZDU5ODk3N2UyOWM5MmE2NTdhY2EwM2FmMTgzMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
N2QwZDFlZDk0NzFmNWU0NWM4Mjg4NWJkMWVhMjQ1MGViNzgyNGIxYQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YjRmOGM0NmFhNjMxMWMyNjFkYmZjMDYxNTk3Yzc5YWNlODZhYWM1MTMzNGZl
|
10
|
+
ZTZhNzk2OTUyMmZmYTYyN2U4ZDA4YzM0ZGMwNDIwMjNlYjNjZThlMzRlMDk1
|
11
|
+
YTVkYzBiMDVkZTIyY2I2NDFlZjBkOGQwZmQ4OWYwMjNhMjc5OGY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZWExZDZiNDAyODc0MTJiNWM5Yzk0YjZhZjM5NDQzYmExYjYxZDUzMDJlM2U4
|
14
|
+
YzYwYTQ4ZWI4NmViMDU1NzI5N2IyNTIyODU2NDM1YWI5ZDM1NzhlYmFkYmRk
|
15
|
+
ZDM5NjQ4YmQ2OTBmZDFjMzA0OGIyMDE3MTUyNjk0YTI5NjdlOGU=
|
@@ -2,7 +2,7 @@ module Lockup
|
|
2
2
|
module LockupHelper
|
3
3
|
|
4
4
|
def lockup_hint_present?
|
5
|
-
if ENV["LOCKUP_HINT"].present? || ENV["lockup_hint"].present? ||
|
5
|
+
if ENV["LOCKUP_HINT"].present? || ENV["lockup_hint"].present? || ((Rails::VERSION::MAJOR >= 4 && Rails::VERSION::MINOR >= 1) && Rails.application.secrets.lockup_hint.present?)
|
6
6
|
true
|
7
7
|
else
|
8
8
|
false
|
@@ -14,8 +14,6 @@ module Lockup
|
|
14
14
|
ENV["LOCKUP_HINT"].to_s
|
15
15
|
elsif ENV["lockup_hint"].present?
|
16
16
|
ENV["lockup_hint"].to_s
|
17
|
-
elsif Figaro.env.lockup_hint.present?
|
18
|
-
Figaro.env.lockup_hint.to_s
|
19
17
|
elsif (Rails::VERSION::MAJOR >= 4 && Rails::VERSION::MINOR >= 1) && Rails.application.secrets.lockup_hint.present?
|
20
18
|
Rails.application.secrets.lockup_hint.to_s
|
21
19
|
end
|
data/lib/lockup.rb
CHANGED
@@ -24,7 +24,7 @@ module Lockup
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def lockup_codeword_present?
|
27
|
-
if ENV["LOCKUP_CODEWORD"].present? || ENV["lockup_codeword"].present? ||
|
27
|
+
if ENV["LOCKUP_CODEWORD"].present? || ENV["lockup_codeword"].present? || ((Rails::VERSION::MAJOR >= 4 && Rails::VERSION::MINOR >= 1) && Rails.application.secrets.lockup_codeword.present?)
|
28
28
|
true
|
29
29
|
else
|
30
30
|
false
|
@@ -36,8 +36,6 @@ module Lockup
|
|
36
36
|
ENV["LOCKUP_CODEWORD"].to_s.downcase
|
37
37
|
elsif ENV["lockup_codeword"].present?
|
38
38
|
ENV["lockup_codeword"].to_s.downcase
|
39
|
-
elsif Figaro.env.lockup_codeword.present?
|
40
|
-
Figaro.env.lockup_codeword.to_s.downcase
|
41
39
|
elsif (Rails::VERSION::MAJOR >= 4 && Rails::VERSION::MINOR >= 1) && Rails.application.secrets.lockup_codeword.present?
|
42
40
|
Rails.application.secrets.lockup_codeword.to_s.downcase
|
43
41
|
end
|
data/lib/lockup/version.rb
CHANGED