wal 0.0.18 → 0.0.19

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/exe/wal +4 -4
  3. data/lib/wal/version.rb +1 -1
  4. data/rbi/wal.rbi +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d279bf26f64494f4f52cff1122ade2a9435cd3942be615a92a49f7a5dd64b5d6
4
- data.tar.gz: 6b899eacde8085da1ab80bd9cb63741f9b0a7357c1fc86f7821d52d07fbbe48f
3
+ metadata.gz: 8547683e990bc915e382feecac5220a3b6b31a3d7e59c0891511f30c2eec5d19
4
+ data.tar.gz: e1bbac497d67a1cf76c8e56a002f45bf12849fe4fdfb4415ea3d8ee573e44e81
5
5
  SHA512:
6
- metadata.gz: 8ad343f0b1a3468cf4707e68fcda76ba9859dbba1243c2dfa90c33eef1d0ea50e2791d57ca824163c4f1c7f231ddfeea0c3919400ecba3836c5314947caab6ad
7
- data.tar.gz: d5975b490f804064db2e1fba3dd02821d2877927d9333cbc8aa780a347295dd6816eb35a9468163c0d5f301a66d494504b4c195f79f30deb52f56cf48ef2b75a
6
+ metadata.gz: f119216774509c4056ed84ccd29d43c9d743d67c3365289b2b18be0b92dd2117f543bf282fb6071abdf27d3774a2e1326238ab73e37c4c7e55bd5267c6583b96
7
+ data.tar.gz: d938d438d7d7b79457dba62a4460fba9e9523f953a618eacf4706ac1cf01293aafdbbf71ec35cf8a0a5156ea4b38a4e138c0cc7a373c38f6208f6136d926bd17
data/exe/wal CHANGED
@@ -75,10 +75,10 @@ if cli["watch"]
75
75
  replication_slot = cli["--slot"]
76
76
  replication_slot = replication_slot.presence || "wal_watcher_#{SecureRandom.alphanumeric(4)}" if use_temporary_slot
77
77
  publications = cli["--publication"] || []
78
- replicator = cli["--replicator"].presence&.constantize || Wal::Replicator
78
+ replicator_class = cli["--replicator"].presence&.constantize || Wal::Replicator
79
79
 
80
80
  puts "Watcher started for #{replication_slot} slot (#{publications.join(", ")})"
81
- replicator = replicator.new(replication_slot:, use_temporary_slot:, db_config:)
81
+ replicator = replicator_class.new(replication_slot:, use_temporary_slot:, db_config:)
82
82
  replicator = Wal::LoggingReplicator.new(replication_slot, replicator)
83
83
  replicator.replicate_forever(watcher, publications:)
84
84
  puts "Watcher finished for #{replication_slot}"
@@ -90,14 +90,14 @@ elsif cli["start"]
90
90
  watcher = config["watcher"].constantize.new
91
91
  temporary = config["temporary"] || false
92
92
  publications = config["publications"] || []
93
- replicator = config["replicator"].presence&.constantize || Wal::Replicator
93
+ replicator_class = config["replicator"].presence&.constantize || Wal::Replicator
94
94
  retries = config["retries"]&.to_i || 5
95
95
 
96
96
  Thread.new(slot, watcher, temporary, publications) do |replication_slot, watcher, use_temporary_slot, publications|
97
97
  replication_slot = "#{replication_slot}_#{SecureRandom.alphanumeric(4)}" if use_temporary_slot
98
98
  puts "Watcher started for #{replication_slot} slot (#{publications.join(", ")})"
99
99
 
100
- replicator = replicator.new(replication_slot:, use_temporary_slot:, db_config:)
100
+ replicator = replicator_class.new(replication_slot:, use_temporary_slot:, db_config:)
101
101
  replicator = Wal::LoggingReplicator.new(replication_slot, replicator)
102
102
 
103
103
  begin
data/lib/wal/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Wal
4
- VERSION = "0.0.18"
4
+ VERSION = "0.0.19"
5
5
  end
data/rbi/wal.rbi CHANGED
@@ -7,7 +7,7 @@ module Wal
7
7
  UpdateEvent,
8
8
  DeleteEvent,
9
9
  ) }
10
- VERSION = "0.0.18"
10
+ VERSION = "0.0.19"
11
11
 
12
12
  class << self
13
13
  sig { returns(T.class_of(Logger)) }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Navarro
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-09-19 00:00:00.000000000 Z
10
+ date: 2025-09-20 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: pg