seshlock 0.1.0 → 0.1.2
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 +4 -4
- data/CHANGELOG.md +15 -0
- data/lib/seshlock/access_token.rb +1 -0
- data/lib/seshlock/refresh_token.rb +2 -1
- data/lib/seshlock/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d6cfcb3d813ef94aa1c1f92cb16f2a4957c97333a80f93db7743b5be737807a6
|
|
4
|
+
data.tar.gz: 91c4999ee8be9ccb65c2e4fdba90a2db94eeaedcb443e5e47804fc8eb55cf867
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 94416fa5470e6684db3943fd053a6f89b907087bb44722b8a620a1f944d48ed0027e08a6e43ae39939f91a4bbbf709a64204aeda6601bad43bc98181ee515d07
|
|
7
|
+
data.tar.gz: d076424c00799b4e8d862ea252754bbf238c3d0e18a38206db60f96044e363529dd8b465b8a1b3d05d47832d4d607a9368a0f8eea8563ff0e88ab5073c497e6c
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.1.2] - 2025-12-11
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Explicit table name configuration for token models to match migrations (`seshlock_access_tokens`, `seshlock_refresh_tokens`).
|
|
13
|
+
- Fix `has_many :access_tokens` association to reference `Seshlock::AccessToken` (class_name), preventing missing table/class lookup errors.
|
|
14
|
+
|
|
15
|
+
## [0.1.1] - 2025-12-11
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- Added CI badge to README
|
|
20
|
+
- Added GitHub Actions workflow for tests
|
|
21
|
+
- Code style improvements
|
|
22
|
+
|
|
8
23
|
## [0.1.0] - 2025-12-11
|
|
9
24
|
|
|
10
25
|
### Added
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
require "active_record"
|
|
3
3
|
|
|
4
4
|
class Seshlock::RefreshToken < ActiveRecord::Base
|
|
5
|
+
self.table_name = "seshlock_refresh_tokens"
|
|
5
6
|
# Validations
|
|
6
7
|
validates :token_digest, uniqueness: true, presence: true
|
|
7
8
|
|
|
8
9
|
# Associations
|
|
9
10
|
belongs_to :user, class_name: "User", inverse_of: :seshlock_refresh_tokens
|
|
10
|
-
has_many :access_tokens, dependent: :destroy, inverse_of: :refresh_token
|
|
11
|
+
has_many :access_tokens, class_name: "Seshlock::AccessToken", dependent: :destroy, inverse_of: :refresh_token
|
|
11
12
|
|
|
12
13
|
# Scopes
|
|
13
14
|
scope :not_expired, -> { where("expires_at > ?", Time.current) }
|
data/lib/seshlock/version.rb
CHANGED