waldit 0.0.15 → 0.0.16

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: b0c671c6e356548b94a0848e8f17e79634e8239113c685995305258c355388ef
4
- data.tar.gz: d3bcc95f82f3230c5a8b50ec7917a74466166685a9685a8715769246e39bda71
3
+ metadata.gz: a323599011304e72762f4fc8662221c438056c64d4bc0e1918f88749c4e4079b
4
+ data.tar.gz: d2495606705b6d2f85eb003a5a56c2be98895f168ec6c4fb5d656f6b4c8f2134
5
5
  SHA512:
6
- metadata.gz: 71a0b50f5ee3d46ddf7bdfe11242d7ac29e1fff2826c0ca63195401a377e39f1066d664c0b268d34a696c2568884b8adada0ed0a99c85cf039be1a018b1ce4a9
7
- data.tar.gz: 87a8ce52ffe1f414d6c529f552bf9deecdbe303fe98be9639cd23944929f6b8770484b25560fcd4a9b76ea78eb31fd92f669478f2c00f9f57e4073251e315917
6
+ metadata.gz: '08cc2d9380a1a4f085657bcc49784b123f73dae3861483c7e19114d67790e7085ba60b7e267df20d438c611b8c2b4b311347d824091f7a74da76ba23f3e3b9de'
7
+ data.tar.gz: 32991fc4275d025c28fea6852f08c052d14f9c1295002252a2f007fdd48dc7341d8a0b2c72ea7af73aacf32b6af680dd110741c37cadc296528f3f9444f6a652
data/lib/waldit/record.rb CHANGED
@@ -4,11 +4,10 @@ module Waldit
4
4
  module Record
5
5
  def self.included(base)
6
6
  base.class_eval do
7
- default_scope { order(:committed_at) }
8
- scope :from_table, -> table { where(table_name: table) }
7
+ scope :from_table, -> table { order(:committed_at).where(table_name: table) }
9
8
  scope :from_model, -> model { from_table(model.table_name) }
10
9
  scope :for, -> record { from_model(record.class).where(primary_key: record.id) }
11
- scope :with_context, -> ctx { where("context @> ?", ctx.to_json) }
10
+ scope :with_context, -> ctx { order(:committed_at).where("context @> ?", ctx.to_json) }
12
11
  end
13
12
  end
14
13
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Waldit
4
- VERSION = "0.0.15"
4
+ VERSION = "0.0.16"
5
5
  end
data/rbi/waldit.rbi CHANGED
@@ -2,7 +2,7 @@
2
2
  module Waldit
3
3
  extend T::Sig
4
4
  extend Waldit::Context
5
- VERSION = "0.0.15"
5
+ VERSION = "0.0.16"
6
6
 
7
7
  class << self
8
8
  sig { returns(String) }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: waldit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Navarro
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-09-01 00:00:00.000000000 Z
10
+ date: 2025-09-05 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: wal