bullet_train 1.7.18 → 1.7.20

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: b320d698758f75305f86ac7b4ada2612e653ca6c4a04cdd410e9d9fa8d0629f6
4
- data.tar.gz: 0f10e28a5eb11f9cc9cd86e36a6631d5c3bcacf3fb2247f1ce2c6947f13b42d0
3
+ metadata.gz: a0938e72d54cee53af1f66a9447a1f2f2d78b7359f08a3cfa02fabb99db7c50f
4
+ data.tar.gz: 6faee1f6d9a7645712e3c8ef2c63b2da939a2730dccb23ead8d70e9d47b648b7
5
5
  SHA512:
6
- metadata.gz: ac58948d400949f48b1c9c08ed0a1e4c32eb22210303dd474d659c92b18c784bcf6d33d42cf4a2d671a61989c1c13a200f09ce296ed88054b4b46ec97f158440
7
- data.tar.gz: 4bb2275c8958996bc7279c66a59b4757c10353f893561716f3bc42325b0cc6e0919e08af2c2b0374ac1d723e163c8cf80ac289bccc66cf7dedd804f47670b435
6
+ metadata.gz: f8da94a8984e5c580ccb059b7ddf8a630f7da3802494d53a6693da1f720f060bd44af24a58f6d3258e83485f67a53812ae847f9bfa78b640fd7c091d2dffdd3d
7
+ data.tar.gz: b08bfe4c81049cdcf91305585c7055db167486801249d784c828a8e75ef04fc7f3a24ae0dc415b28c932adda923427200213bab3f6a878f1d946a8a91021521a
@@ -0,0 +1,3 @@
1
+ <p><%= t('.hello', email: @resource.email) %></p>
2
+
3
+ <p><%= t('.description', email: @resource.try(:unconfirmed_email?) ? @resource.unconfirmed_email : @resource.email) %></p>
@@ -73,6 +73,11 @@ en:
73
73
  subject: "Password Changed"
74
74
  hello: Hello %{email}!
75
75
  description: We're contacting you to notify you that your password has been changed.
76
+ email_changed:
77
+ subject: "Email Changed"
78
+ hello: Hello %{email}!
79
+ description: We're contacting you to notify you that your email has been changed to %{email}
80
+
76
81
  omniauth_callbacks:
77
82
  failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
78
83
  success: "Successfully authenticated from %{kind} account."
@@ -1,3 +1,3 @@
1
1
  module BulletTrain
2
- VERSION = "1.7.18"
2
+ VERSION = "1.7.20"
3
3
  end
data/lib/bullet_train.rb CHANGED
@@ -128,7 +128,7 @@ def cloudinary_enabled?
128
128
  end
129
129
 
130
130
  def two_factor_authentication_enabled?
131
- Rails.application.credentials.active_record_encryption&.primary_key.present?
131
+ Rails.application.credentials.active_record_encryption&.primary_key.present? || Rails.configuration&.active_record&.encryption&.primary_key.present?
132
132
  end
133
133
 
134
134
  # Don't redefine this if an application redefines it locally.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.18
4
+ version: 1.7.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-15 00:00:00.000000000 Z
11
+ date: 2024-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard
@@ -636,6 +636,7 @@ files:
636
636
  - app/views/bullet_train/partial_resolver.html.erb
637
637
  - app/views/devise/confirmations/new.html.erb
638
638
  - app/views/devise/mailer/confirmation_instructions.html.erb
639
+ - app/views/devise/mailer/email_changed.html.erb
639
640
  - app/views/devise/mailer/password_change.html.erb
640
641
  - app/views/devise/mailer/reset_password_instructions.html.erb
641
642
  - app/views/devise/mailer/unlock_instructions.html.erb