quo_vadis 2.1.9 → 2.1.10

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: 3776f82ebb4987586131a44692de5891ec821e7e82a1de249fc3d8905ef551d8
4
- data.tar.gz: 6914f2e05d50ffbd9451d6e50484674d7bb775d2d871922749cc4be1553e35a6
3
+ metadata.gz: f75e1f5d40a86773e5cec5133d3822431d8ed76e581d7e712912481ae56ec29a
4
+ data.tar.gz: 3789a04b43d20d1c3b4e4aaf6e5c8b88f53c4bc97fce5ee4b546063e1bfa9801
5
5
  SHA512:
6
- metadata.gz: 5229c567fe09a76fad025b0dea0fc36192defd24e04077374816cfb99414b6a9cc3213e8410f5ee23fedb297d1b157d64345c317d646d1226655c5e60e50c1ac
7
- data.tar.gz: 0ace7c8c5c1075eec8a54aa31ba01564a8a9ff0fec23387650a00a1721affca7c9326e083ac9f26a8afdd04bee6f6e8a748ae1c9bbf5b4e9d3b005804362afe6
6
+ metadata.gz: ac21c181a2339c6d515ae2c7defe20ced03c103ac9e144ca4edcf3169d0ea4bafa18f4a2011912c611310e0adf5736285f7d8b2dff5b031468e735940bcbc3b0
7
+ data.tar.gz: 432bb81c9d8de26a659a718a533579bdd982c4565ae5df96511dc5ec60bf84c4d4665c694e1db9b0837434b6a9d5d43a9db7006b6e278a1b9d1c9d8cf2f54c2e
data/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@
4
4
  ## HEAD
5
5
 
6
6
 
7
+ ## 2.1.10 (14 September 2022)
8
+
9
+ * Enable configuration of mailer superclass.
10
+
11
+
7
12
  ## 2.1.9 (13 September 2022)
8
13
 
9
14
  * Enable code to be run after sign up.
data/README.md CHANGED
@@ -466,6 +466,10 @@ __`account_confirmation_token_lifetime`__ (`ActiveSupport::Duration` | integer)
466
466
 
467
467
  The `Duration` or number of seconds for which an account-confirmation token is valid.
468
468
 
469
+ __`mailer_superclass`__ (string)
470
+
471
+ The class from which QuoVadis's mailer inherits.
472
+
469
473
  __`mail_headers`__ (hash)
470
474
 
471
475
  Mail headers which QuoVadis' emails should have.
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module QuoVadis
4
- class Mailer < ::ActionMailer::Base
4
+ class Mailer < QuoVadis.mailer_superclass.constantize
5
5
 
6
6
  def reset_password
7
7
  @url = params[:url]
@@ -10,6 +10,7 @@ QuoVadis.configure do
10
10
  password_reset_token_lifetime 10.minutes
11
11
  accounts_require_confirmation false
12
12
  account_confirmation_token_lifetime 10.minutes
13
+ mailer_superclass 'ApplicationMailer'
13
14
  mail_headers ({ from: 'Example App <support@example.com>' })
14
15
  enqueue_transactional_emails true
15
16
  app_name Rails.app_class.to_s.deconstantize # for the TOTP QR code
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module QuoVadis
4
- VERSION = '2.1.9'
4
+ VERSION = '2.1.10'
5
5
  end
data/lib/quo_vadis.rb CHANGED
@@ -25,6 +25,7 @@ module QuoVadis
25
25
  :session_lifetime_extend_to_end_of_day,# true | false
26
26
  :session_idle_timeout, # :lifetime | ActiveSupport::Duration | [integer] seconds
27
27
  :password_reset_token_lifetime, # ActiveSupport::Duration | [integer] seconds
28
+ :mailer_superclass, # string
28
29
  :mail_headers, # hash
29
30
  :accounts_require_confirmation, # true | false
30
31
  :account_confirmation_token_lifetime, # ActiveSupport::Duration | [integer] seconds
@@ -0,0 +1,2 @@
1
+ class ApplicationMailer < ActionMailer::Base
2
+ 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.1.9
4
+ version: 2.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Stewart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-13 00:00:00.000000000 Z
11
+ date: 2022-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -148,6 +148,7 @@ files:
148
148
  - test/dummy/app/controllers/articles_controller.rb
149
149
  - test/dummy/app/controllers/sign_ups_controller.rb
150
150
  - test/dummy/app/controllers/users_controller.rb
151
+ - test/dummy/app/mailers/application_mailer.rb
151
152
  - test/dummy/app/models/application_record.rb
152
153
  - test/dummy/app/models/article.rb
153
154
  - test/dummy/app/models/person.rb