entrance 0.6.2 → 0.6.3
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 +4 -4
- data/lib/entrance/addons/omniauth.rb +1 -1
- data/lib/entrance/controller.rb +4 -2
- data/lib/entrance/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: d5759bb6246fff29f44e5fe68a89f03055669e8f
|
|
4
|
+
data.tar.gz: bfdb45a1d698eb949e8c7b9d2bd3f12a0e8b200b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8eb94d24ffd6a5d83f01bc57bcc607fd52da9ad39a24811d297bc9b54da0d4bc3b5ab50e3fbdbdf457dcf62f2d5878d2abf04f7626b8442c29cbc268bb28dc7b
|
|
7
|
+
data.tar.gz: 70bc8573bd81574d1a90fc9502d922c16b66777d2255f8654987ddd72897647959f9c239b78fd9453fde5f4392666565672a609bcec202f7bb3c660725ffb993
|
data/lib/entrance/controller.rb
CHANGED
|
@@ -107,9 +107,11 @@ module Entrance
|
|
|
107
107
|
end
|
|
108
108
|
end
|
|
109
109
|
|
|
110
|
+
SKIP_STORE_PATHS = ['/favicon.ico']
|
|
111
|
+
|
|
110
112
|
def store_location
|
|
111
|
-
path = request.fullpath
|
|
112
|
-
session[:return_to] = path unless
|
|
113
|
+
path = request.get? ? request.fullpath : request.env['HTTP_REFERER']
|
|
114
|
+
session[:return_to] = path unless path.blank? || SKIP_STORE_PATHS.include?(path)
|
|
113
115
|
end
|
|
114
116
|
|
|
115
117
|
def redirect_to_stored_or(default_path)
|
data/lib/entrance/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: entrance
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tomás Pollak
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-09-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bcrypt
|