passwordless 0.8.0 → 0.8.1

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
  SHA256:
3
- metadata.gz: 5f6c0006a3a1aa712922ef4c48b3afc4b5f1b722d9f37f624b367cb2e66ea895
4
- data.tar.gz: 2c06ad86a47e11757a978fd879b7ab23e888589ecc1e734740886f148d1abb5a
3
+ metadata.gz: 804b060cf61c385d7ea03251dc823732fdef08019793f7c5e537c5711cfba2cb
4
+ data.tar.gz: 9b4510883e6d796f263701ca4f04669a2c215e36752c1b7a1aa7a302ce9bea1d
5
5
  SHA512:
6
- metadata.gz: 1cecfce2bcc7a6427cd037123aa4733c034126f2f55d47445d8439144db325aa00796cadfa9da40daa429a54073a7fc5c4e61d6f088fd2c8feb8fc653cd593fb
7
- data.tar.gz: 673f6c504efd94c5f01f2bd073c427012e91d4c6bacf1a113cdc851b1bcb083183a7634ded733ac22f307e9ef4ccf4fbd2a30919dddce5ce0683e3c61b04380e
6
+ metadata.gz: 6768a39dabea6bc87b205b3648d5a8d9d0b50c9d864fca8e60508a3be7a9567a9edc3807cc067f006eba0d719252f1302f6adcafd69c8ce0d4ba7039b6a8c0d7
7
+ data.tar.gz: 0f1365cb5443a3418f2377bb6be5e22520715e3430df12df0c38d197ed4c7c17885e01a1602969e340f909cf9114454ee6ea374418aa5189001c2aff37e940bf
@@ -45,7 +45,7 @@ module Passwordless
45
45
 
46
46
  destination =
47
47
  Passwordless.redirect_back_after_sign_in &&
48
- reset_passwordless_redirect_location!(User)
48
+ reset_passwordless_redirect_location!(authenticatable_class)
49
49
 
50
50
  sign_in passwordless_session
51
51
 
@@ -132,6 +132,10 @@ module Passwordless
132
132
  :"passwordless_session_id--#{authenticatable_class_parameterized(authenticatable_class)}"
133
133
  end
134
134
 
135
+ def redirect_session_key(authenticatable_class)
136
+ :"passwordless_prev_location--#{authenticatable_class_parameterized(authenticatable_class)}"
137
+ end
138
+
135
139
  private
136
140
 
137
141
  def authenticatable_class_parameterized(authenticatable_class)
@@ -142,10 +146,6 @@ module Passwordless
142
146
  authenticatable_class.base_class.to_s.parameterize
143
147
  end
144
148
 
145
- def redirect_session_key(authenticatable_class)
146
- :"passwordless_prev_location--#{authenticatable_class_parameterized(authenticatable_class)}"
147
- end
148
-
149
149
  # Deprecated
150
150
  def cookie_name(authenticatable_class)
151
151
  :"#{authenticatable_class.base_class.to_s.underscore}_id"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Passwordless
4
- VERSION = "0.8.0" # :nodoc:
4
+ VERSION = "0.8.1" # :nodoc:
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: passwordless
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikkel Malmberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-30 00:00:00.000000000 Z
11
+ date: 2019-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails