quo_vadis 2.2.1 → 2.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f55b91cf69117006b0dce03a6b0d38423b587bf460c05e24984735de6a4cf8a3
4
- data.tar.gz: 6a309a19fd35aaacbf1ec8ff5df7544ab980cecfad30664f6f0abb3778eb1d37
3
+ metadata.gz: f5f77cea22311c350e1a0671c147db092e3e6c46164a468bff88904eb5fdb742
4
+ data.tar.gz: 03f0d04ea03e4e84b45d83fb494959a02f0483b5fd145ff550200fdbb6639ab6
5
5
  SHA512:
6
- metadata.gz: 70bb7a3fc80f540889eb0aff8416d75759e4b2564d17d8605ad368ea8eb53e803bda66b91dd8ba0192ee061148a62fe034d164becfd4b41876100c740edfe008
7
- data.tar.gz: cfaa08ccde542121a46a361dbdbff4a56fd6d77b4295cc1f5e0232b7c94e1514a7a422a7138add4d9e8f964a451e0038fa065f8e49a8d79a5594e180c0bb63a2
6
+ metadata.gz: b96e1e5398ded302e9efb69c6e268307606535fc63346acc4faf0443098eb500c97daa107be2ccced4151078c90aac9917a72e037023aeea7cf460a7c706dde8
7
+ data.tar.gz: 6de70ddbe36d8c5334d1a6ab95da333ab59d28a98a0c1a57ca1c47e1375a156df5c689fbc66f90e70ea44d3e46e2a9af3ad4b4b8a7d8e86fd6ed27e2055ab5e4
data/CHANGELOG.md CHANGED
@@ -4,9 +4,16 @@
4
4
  ## HEAD
5
5
 
6
6
 
7
+ ## 2.2.2 (30 April 2024)
8
+
9
+ * Do not update last activity time for ActiveStorage (#23).
10
+ * Fix login success-flash to not be reset (#37).
11
+ * Add issue numbers to changelog entries.
12
+
13
+
7
14
  ## 2.2.1 (1 August 2023)
8
15
 
9
- * Do not clear application session data on logout.
16
+ * Do not clear application session data on logout (#34).
10
17
  * Use 'email' type for email input fields.
11
18
  * Document how to log out.
12
19
 
@@ -14,10 +21,10 @@
14
21
  ## 2.2.0 (17 April 2023)
15
22
 
16
23
  * Improve the readme with internal links and more section headings.
17
- * Rename `password_reset_token_lifetime` to `password_reset_otp_lifetime`.
18
- * Use OTP instead of link for password reset.
19
- * Rename `account_confirmation_token_lifetime` to `account_confirmation_otp_lifetime`.
20
- * Use OTP instead of link for account confirmation.
24
+ * Rename `password_reset_token_lifetime` to `password_reset_otp_lifetime` (#28).
25
+ * Use OTP instead of link for password reset (#28).
26
+ * Rename `account_confirmation_token_lifetime` to `account_confirmation_otp_lifetime` (#28).
27
+ * Use OTP instead of link for account confirmation (#28).
21
28
 
22
29
 
23
30
  ## 2.1.11 (14 September 2022)
@@ -27,18 +34,18 @@
27
34
 
28
35
  ## 2.1.10 (14 September 2022)
29
36
 
30
- * Enable configuration of mailer superclass.
37
+ * Enable configuration of mailer superclass (#30).
31
38
 
32
39
 
33
40
  ## 2.1.9 (13 September 2022)
34
41
 
35
- * Enable code to be run after sign up.
42
+ * Enable code to be run after sign up (#29).
36
43
 
37
44
 
38
45
  ## 2.1.8 (18 June 2022)
39
46
 
40
- * Extract convenience method for has authentication account.
41
- * Only authenticating models react to email change.
47
+ * Extract convenience method for has authentication account (#26).
48
+ * Only authenticating models react to email change (#26).
42
49
 
43
50
 
44
51
  ## 2.1.7 (30 May 2022)
@@ -54,7 +61,7 @@
54
61
 
55
62
  ## 2.1.5 (27 May 2022)
56
63
 
57
- * Order sessions list and display more information.
64
+ * Order sessions list and display more information (#25).
58
65
  * Set status 303 See Other on destroy redirects.
59
66
  * Streamline bundler instructions.
60
67
 
@@ -66,7 +73,7 @@
66
73
 
67
74
  ## 2.1.3 (30 September 2021)
68
75
 
69
- * Pass IP and timestamp as parameters to mailer.
76
+ * Pass IP and timestamp as parameters to mailer (#24).
70
77
 
71
78
 
72
79
  ## 2.1.2 (30 September 2021)
@@ -78,8 +85,8 @@
78
85
 
79
86
  * Remove unnecessary route names.
80
87
  * Add user revocation.
81
- * Ensure password is only updated via #change or #reset.
82
- * Move views into gem's app/views/ directory.
88
+ * Ensure password is only updated via #change or #reset (#15).
89
+ * Move views into gem's app/views/ directory (#22).
83
90
 
84
91
 
85
92
  ## 2.1.0 (25 June 2021)
@@ -97,8 +104,8 @@
97
104
 
98
105
  ## 2.0.2 (24 May 2021)
99
106
 
100
- * Account confirmation: enable updating of email address.
101
- * Account confirmation: enable direct resending of email.
107
+ * Account confirmation: enable updating of email address (#21).
108
+ * Account confirmation: enable direct resending of email (#21).
102
109
  * Log unknown identifier in metadata.
103
110
 
104
111
 
data/README.md CHANGED
@@ -248,7 +248,7 @@ button_to 'Log out', quo_vadis.logout_path, method: :delete
248
248
 
249
249
  Note you are responsible for removing any application session data you want removed. To do so, subclass `QuoVadis::SessionsController` and override the `destroy` method:
250
250
 
251
- ````ruby
251
+ ```ruby
252
252
  # app/controllers/custom_sessions_controller.rb
253
253
  class CustomSessionsController < QuoVadis::SessionsController
254
254
  def destroy
@@ -39,10 +39,10 @@ module QuoVadis
39
39
  # params[:remember] == 1 => use QuoVadis.session_lifetime
40
40
  browser_session = params[:remember] == '0'
41
41
 
42
- flash[:notice] = QuoVadis.translate 'flash.login.success'
43
-
44
42
  login account.model, browser_session
45
43
 
44
+ flash[:notice] = QuoVadis.translate 'flash.login.success'
45
+
46
46
  redirect_to qv.path_after_authentication
47
47
  end
48
48
 
@@ -11,7 +11,13 @@ module QuoVadis
11
11
  # Remember the last activity time so we can timeout idle sessions.
12
12
  # This has to be done after that timestamp is checked (in `#authenticated_model`)
13
13
  # otherwise sessions could never look idle.
14
- base.after_action { |controller| controller.qv.touch_session_last_seen_at }
14
+ #
15
+ # Ignores ActiveStorage requests.
16
+ base.after_action { |controller|
17
+ if !defined?(::ActiveStorage) || !controller.class.module_parents.include?(::ActiveStorage)
18
+ controller.qv.touch_session_last_seen_at
19
+ end
20
+ }
15
21
  end
16
22
 
17
23
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module QuoVadis
4
- VERSION = '2.2.1'
4
+ VERSION = '2.2.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quo_vadis
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Stewart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-01 00:00:00.000000000 Z
11
+ date: 2024-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -219,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
219
219
  - !ruby/object:Gem::Version
220
220
  version: '0'
221
221
  requirements: []
222
- rubygems_version: 3.4.10
222
+ rubygems_version: 3.5.3
223
223
  signing_key:
224
224
  specification_version: 4
225
225
  summary: Multifactor authentication for Rails 6 and 7.