authtrail 0.7.1 → 1.0.0

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: 396162cdf3bcc3f4ba7047056d649819ef06d4eb55b2f7886fec2e9fda0f3574
4
- data.tar.gz: 1773336cfc454e2479b1c10670010b3090a650a67fbd5769a76bddeaf26f38a1
3
+ metadata.gz: 915e73984eb62ee6814dc16243de12f632389f281bff364c92f5464113793039
4
+ data.tar.gz: 4decb1a4c28c79a3e4fb8fca043a9f5692a24ff0fb850bd5e165592943ad7f80
5
5
  SHA512:
6
- metadata.gz: 2aa7b7946be5e4b3d425c8885bf02efdb3f2cb99859642fa9982672517e74c19c1495d205522670e6b153e0ded1b61e89df3160c9c5229cac7c0fa1e768a46fc
7
- data.tar.gz: f7c033aa8618da88112a1f39427143d4bddc94028a09f902a4ea7b6c015b652765d461e87bd48ea9dd74764224fbbea4d8ec6301edf14c3261f29340439da536
6
+ metadata.gz: a8b8c04951c3a3cbca03f02a0fa1232d1c035570be4f5f499c6862cf0320a07130ae775e44081acc380a49e6d4ac00d183d1e7e40c19c44c0f2edea22d92d0ca
7
+ data.tar.gz: f19af6abc5becffe844cd67f9c915ec54cd400aa0dccefc9d6454122193881fc5314e95ef1634c432ca4e6223741c57375be028ed775965d867a46cb24379d8c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.0.0 (2026-04-04)
2
+
3
+ - Removed support for Rails < 7.2 and Ruby < 3.3
4
+
1
5
  ## 0.7.1 (2026-02-07)
2
6
 
3
7
  - Fixed error with certain custom Warden strategies
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2017-2025 Andrew Kane
1
+ Copyright (c) 2017-2026 Andrew Kane
2
2
 
3
3
  MIT License
4
4
 
@@ -1,3 +1,3 @@
1
1
  module AuthTrail
2
- VERSION = "0.7.1"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -20,7 +20,7 @@ module Authtrail
20
20
  def generate_model
21
21
  case encryption
22
22
  when "lockbox"
23
- template "model_lockbox.rb", "app/models/login_activity.rb", lockbox_method: lockbox_method
23
+ template "model_lockbox.rb", "app/models/login_activity.rb"
24
24
  when "activerecord"
25
25
  template "model_activerecord.rb", "app/models/login_activity.rb"
26
26
  else
@@ -63,14 +63,6 @@ module Authtrail
63
63
  end
64
64
  end
65
65
 
66
- def lockbox_method
67
- if defined?(Lockbox::VERSION) && Lockbox::VERSION.to_i < 1
68
- "encrypts"
69
- else
70
- "has_encrypted"
71
- end
72
- end
73
-
74
66
  def mysql?
75
67
  adapter =~ /mysql|trilogy/i
76
68
  end
@@ -1,7 +1,7 @@
1
1
  class LoginActivity < ApplicationRecord
2
2
  belongs_to :user, polymorphic: true, optional: true
3
3
 
4
- <%= lockbox_method %> :identity, :ip
4
+ has_encrypted :identity, :ip
5
5
  blind_index :identity, :ip
6
6
 
7
7
  before_save :reduce_precision
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authtrail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - ">="
17
17
  - !ruby/object:Gem::Version
18
- version: '7.1'
18
+ version: '7.2'
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - ">="
24
24
  - !ruby/object:Gem::Version
25
- version: '7.1'
25
+ version: '7.2'
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: warden
28
28
  requirement: !ruby/object:Gem::Requirement
@@ -66,14 +66,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: '3.2'
69
+ version: '3.3'
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - ">="
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 4.0.3
76
+ rubygems_version: 4.0.6
77
77
  specification_version: 4
78
78
  summary: Track Devise login activity
79
79
  test_files: []