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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20f167db2c6a1a7bc112e5c52d77adcc443fcc86773480007cdf9a879b8bfe67
4
- data.tar.gz: d68458164ee30c246a84ca24b36b3dffdf574d754f566d535249bc605edc3bf9
3
+ metadata.gz: d6cfcb3d813ef94aa1c1f92cb16f2a4957c97333a80f93db7743b5be737807a6
4
+ data.tar.gz: 91c4999ee8be9ccb65c2e4fdba90a2db94eeaedcb443e5e47804fc8eb55cf867
5
5
  SHA512:
6
- metadata.gz: a349b6a2e8157fde78f141620e3434b1475ad5cf3eb13fe4125df858e9f37b44686ce0c5abc5711fa934ac0c3560d89a4524a7539c50a19d113f6ded620cef25
7
- data.tar.gz: 31dd69e95f1866354070fbd94d70960aba196960a466f941e7e02dba8c21b206cb4bc86a7f7b16ffc2ae31c0f47d165730e668e0da849ad7da9aa1ae43fdb4d8
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,6 +2,7 @@
2
2
  require "active_record"
3
3
 
4
4
  class Seshlock::AccessToken < ActiveRecord::Base
5
+ self.table_name = "seshlock_access_tokens"
5
6
  # Validations
6
7
  validates :token_digest, presence: true, uniqueness: true
7
8
 
@@ -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) }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Seshlock
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seshlock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Inoa