Skip to content

Commit ac8eb1f

Browse files
AS-AlStar0exp
andauthored
Added custom version for handlers (#87)
* table-sync-custom-version * bump rabbit_messaging * fix * fix * rubocop * Set table_name and schema_name as required for TableSync::Publishing::Raw * changelog * Update rails to 7.1.5.1 * fix --------- Co-authored-by: Rustam Ibragimov <iamdaiver@gmail.com>
1 parent 29ce301 commit ac8eb1f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+291
-252
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
strategy:
3131
fail-fast: false
3232
matrix:
33-
ruby: ["3.0", "3.1", "3.2", "3.3"]
33+
ruby: ["3.1", "3.2", "3.3"]
3434

3535
name: ${{ matrix.ruby }}
3636

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ inherit_gem:
22
rubocop-config-umbrellio: lib/rubocop.yml
33

44
AllCops:
5-
TargetRubyVersion: 3.0
5+
TargetRubyVersion: 3.1
66
Include:
77
- bin/*
88
- lib/**/*.rb

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## [6.6.0] - 2024-12-06
5+
### Added
6+
- Add custom version attributes
7+
- Set table_name and schema_name as required for TableSync::Publishing::Raw
8+
9+
### Changed
10+
- `rabbit_messaging` gem version is locked on `~> 1.1.0` in order to provide a way to keep "up-to-date"
11+
the actual rabbit_messaging gem version on our projects with table_sync update;
12+
13+
### Removed
14+
- Remove ruby 3.0 from ci workflow
15+
416
## [6.5.0] - 2024-03-19
517
### Added
618
- Add ruby 3.3 to ci workflow

Gemfile.lock

Lines changed: 96 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -1,105 +1,109 @@
11
PATH
22
remote: .
33
specs:
4-
table_sync (6.5.1)
4+
table_sync (6.6.0)
55
memery
6-
rabbit_messaging (>= 0.13)
6+
rabbit_messaging (>= 1.1.0)
77
rails
88
self_data
99

1010
GEM
1111
remote: https://rubygems.org/
1212
specs:
13-
actioncable (7.1.4.1)
14-
actionpack (= 7.1.4.1)
15-
activesupport (= 7.1.4.1)
13+
actioncable (7.1.5.1)
14+
actionpack (= 7.1.5.1)
15+
activesupport (= 7.1.5.1)
1616
nio4r (~> 2.0)
1717
websocket-driver (>= 0.6.1)
1818
zeitwerk (~> 2.6)
19-
actionmailbox (7.1.4.1)
20-
actionpack (= 7.1.4.1)
21-
activejob (= 7.1.4.1)
22-
activerecord (= 7.1.4.1)
23-
activestorage (= 7.1.4.1)
24-
activesupport (= 7.1.4.1)
19+
actionmailbox (7.1.5.1)
20+
actionpack (= 7.1.5.1)
21+
activejob (= 7.1.5.1)
22+
activerecord (= 7.1.5.1)
23+
activestorage (= 7.1.5.1)
24+
activesupport (= 7.1.5.1)
2525
mail (>= 2.7.1)
2626
net-imap
2727
net-pop
2828
net-smtp
29-
actionmailer (7.1.4.1)
30-
actionpack (= 7.1.4.1)
31-
actionview (= 7.1.4.1)
32-
activejob (= 7.1.4.1)
33-
activesupport (= 7.1.4.1)
29+
actionmailer (7.1.5.1)
30+
actionpack (= 7.1.5.1)
31+
actionview (= 7.1.5.1)
32+
activejob (= 7.1.5.1)
33+
activesupport (= 7.1.5.1)
3434
mail (~> 2.5, >= 2.5.4)
3535
net-imap
3636
net-pop
3737
net-smtp
3838
rails-dom-testing (~> 2.2)
39-
actionpack (7.1.4.1)
40-
actionview (= 7.1.4.1)
41-
activesupport (= 7.1.4.1)
39+
actionpack (7.1.5.1)
40+
actionview (= 7.1.5.1)
41+
activesupport (= 7.1.5.1)
4242
nokogiri (>= 1.8.5)
4343
racc
4444
rack (>= 2.2.4)
4545
rack-session (>= 1.0.1)
4646
rack-test (>= 0.6.3)
4747
rails-dom-testing (~> 2.2)
4848
rails-html-sanitizer (~> 1.6)
49-
actiontext (7.1.4.1)
50-
actionpack (= 7.1.4.1)
51-
activerecord (= 7.1.4.1)
52-
activestorage (= 7.1.4.1)
53-
activesupport (= 7.1.4.1)
49+
actiontext (7.1.5.1)
50+
actionpack (= 7.1.5.1)
51+
activerecord (= 7.1.5.1)
52+
activestorage (= 7.1.5.1)
53+
activesupport (= 7.1.5.1)
5454
globalid (>= 0.6.0)
5555
nokogiri (>= 1.8.5)
56-
actionview (7.1.4.1)
57-
activesupport (= 7.1.4.1)
56+
actionview (7.1.5.1)
57+
activesupport (= 7.1.5.1)
5858
builder (~> 3.1)
5959
erubi (~> 1.11)
6060
rails-dom-testing (~> 2.2)
6161
rails-html-sanitizer (~> 1.6)
62-
activejob (7.1.4.1)
63-
activesupport (= 7.1.4.1)
62+
activejob (7.1.5.1)
63+
activesupport (= 7.1.5.1)
6464
globalid (>= 0.3.6)
65-
activemodel (7.1.4.1)
66-
activesupport (= 7.1.4.1)
67-
activerecord (7.1.4.1)
68-
activemodel (= 7.1.4.1)
69-
activesupport (= 7.1.4.1)
65+
activemodel (7.1.5.1)
66+
activesupport (= 7.1.5.1)
67+
activerecord (7.1.5.1)
68+
activemodel (= 7.1.5.1)
69+
activesupport (= 7.1.5.1)
7070
timeout (>= 0.4.0)
71-
activestorage (7.1.4.1)
72-
actionpack (= 7.1.4.1)
73-
activejob (= 7.1.4.1)
74-
activerecord (= 7.1.4.1)
75-
activesupport (= 7.1.4.1)
71+
activestorage (7.1.5.1)
72+
actionpack (= 7.1.5.1)
73+
activejob (= 7.1.5.1)
74+
activerecord (= 7.1.5.1)
75+
activesupport (= 7.1.5.1)
7676
marcel (~> 1.0)
77-
activesupport (7.1.4.1)
77+
activesupport (7.1.5.1)
7878
base64
79+
benchmark (>= 0.3)
7980
bigdecimal
8081
concurrent-ruby (~> 1.0, >= 1.0.2)
8182
connection_pool (>= 2.2.5)
8283
drb
8384
i18n (>= 1.6, < 2)
85+
logger (>= 1.4.2)
8486
minitest (>= 5.1)
8587
mutex_m
88+
securerandom (>= 0.3)
8689
tzinfo (~> 2.0)
8790
amq-protocol (2.3.2)
8891
ast (2.4.2)
8992
base64 (0.2.0)
93+
benchmark (0.4.0)
9094
bigdecimal (3.1.8)
9195
builder (3.3.0)
9296
bundler-audit (0.9.1)
9397
bundler (>= 1.2.0, < 3)
9498
thor (~> 1.0)
95-
bunny (2.22.0)
99+
bunny (2.23.0)
96100
amq-protocol (~> 2.3, >= 2.3.1)
97101
sorted_set (~> 1, >= 1.0.2)
98102
coderay (1.1.3)
99103
concurrent-ruby (1.3.4)
100104
connection_pool (2.4.1)
101105
crass (1.0.6)
102-
date (3.3.4)
106+
date (3.4.1)
103107
diff-lcs (1.5.0)
104108
docile (1.4.0)
105109
drb (2.2.1)
@@ -108,14 +112,21 @@ GEM
108112
activesupport (>= 6.1)
109113
i18n (1.14.6)
110114
concurrent-ruby (~> 1.0)
111-
io-console (0.7.2)
112-
irb (1.14.1)
115+
io-console (0.8.0)
116+
irb (1.14.2)
113117
rdoc (>= 4.0.0)
114118
reline (>= 0.4.2)
115119
json (2.6.3)
116-
lamian (1.7.0)
120+
kicks (3.1.1)
121+
bunny (~> 2.19)
122+
concurrent-ruby (~> 1.0)
123+
rake (>= 12.3, < 14.0)
124+
serverengine (~> 2.1)
125+
thor
126+
lamian (1.10.0)
117127
rails (>= 4.2)
118-
loofah (2.22.0)
128+
logger (1.6.3)
129+
loofah (2.23.1)
119130
crass (~> 1.0.2)
120131
nokogiri (>= 1.12.0)
121132
mail (2.8.1)
@@ -128,10 +139,10 @@ GEM
128139
ruby2_keywords (~> 0.0.2)
129140
method_source (1.1.0)
130141
mini_mime (1.1.5)
131-
mini_portile2 (2.8.7)
132-
minitest (5.25.1)
133-
mutex_m (0.2.0)
134-
net-imap (0.4.17)
142+
mini_portile2 (2.8.8)
143+
minitest (5.25.4)
144+
mutex_m (0.3.0)
145+
net-imap (0.5.2)
135146
date
136147
net-protocol
137148
net-pop (0.1.2)
@@ -140,8 +151,8 @@ GEM
140151
timeout
141152
net-smtp (0.5.0)
142153
net-protocol
143-
nio4r (2.7.3)
144-
nokogiri (1.16.7)
154+
nio4r (2.7.4)
155+
nokogiri (1.17.2)
145156
mini_portile2 (~> 2.8.2)
146157
racc (~> 1.4)
147158
parallel (1.23.0)
@@ -152,47 +163,47 @@ GEM
152163
pry (0.14.2)
153164
coderay (~> 1.1)
154165
method_source (~> 1.0)
155-
psych (5.1.2)
166+
psych (5.2.1)
167+
date
156168
stringio
157-
rabbit_messaging (0.13.0)
169+
rabbit_messaging (1.1.0)
158170
bunny (~> 2.0)
171+
kicks (~> 3)
159172
lamian
160-
rails (>= 5.2)
161-
sneakers (~> 2.0)
173+
rails (>= 6.1)
162174
tainbox
163175
racc (1.8.1)
164176
rack (3.1.8)
165177
rack-session (2.0.0)
166178
rack (>= 3.0.0)
167179
rack-test (2.1.0)
168180
rack (>= 1.3)
169-
rackup (2.1.0)
181+
rackup (2.2.1)
170182
rack (>= 3)
171-
webrick (~> 1.8)
172-
rails (7.1.4.1)
173-
actioncable (= 7.1.4.1)
174-
actionmailbox (= 7.1.4.1)
175-
actionmailer (= 7.1.4.1)
176-
actionpack (= 7.1.4.1)
177-
actiontext (= 7.1.4.1)
178-
actionview (= 7.1.4.1)
179-
activejob (= 7.1.4.1)
180-
activemodel (= 7.1.4.1)
181-
activerecord (= 7.1.4.1)
182-
activestorage (= 7.1.4.1)
183-
activesupport (= 7.1.4.1)
183+
rails (7.1.5.1)
184+
actioncable (= 7.1.5.1)
185+
actionmailbox (= 7.1.5.1)
186+
actionmailer (= 7.1.5.1)
187+
actionpack (= 7.1.5.1)
188+
actiontext (= 7.1.5.1)
189+
actionview (= 7.1.5.1)
190+
activejob (= 7.1.5.1)
191+
activemodel (= 7.1.5.1)
192+
activerecord (= 7.1.5.1)
193+
activestorage (= 7.1.5.1)
194+
activesupport (= 7.1.5.1)
184195
bundler (>= 1.15.0)
185-
railties (= 7.1.4.1)
196+
railties (= 7.1.5.1)
186197
rails-dom-testing (2.2.0)
187198
activesupport (>= 5.0.0)
188199
minitest
189200
nokogiri (>= 1.6)
190-
rails-html-sanitizer (1.6.0)
201+
rails-html-sanitizer (1.6.2)
191202
loofah (~> 2.21)
192-
nokogiri (~> 1.14)
193-
railties (7.1.4.1)
194-
actionpack (= 7.1.4.1)
195-
activesupport (= 7.1.4.1)
203+
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
204+
railties (7.1.5.1)
205+
actionpack (= 7.1.5.1)
206+
activesupport (= 7.1.5.1)
196207
irb
197208
rackup (>= 1.0.0)
198209
rake (>= 12.2)
@@ -201,12 +212,12 @@ GEM
201212
rainbow (3.1.1)
202213
rake (13.2.1)
203214
rbtree (0.4.6)
204-
rdoc (6.7.0)
215+
rdoc (6.9.1)
205216
psych (>= 4.0.0)
206217
regexp_parser (2.8.1)
207-
reline (0.5.10)
218+
reline (0.6.0)
208219
io-console (~> 0.5)
209-
rexml (3.3.8)
220+
rexml (3.3.9)
210221
rspec (3.12.0)
211222
rspec-core (~> 3.12.0)
212223
rspec-expectations (~> 3.12.0)
@@ -257,11 +268,14 @@ GEM
257268
rubocop (~> 1.0)
258269
ruby-progressbar (1.13.0)
259270
ruby2_keywords (0.0.5)
271+
securerandom (0.4.1)
260272
self_data (1.3.0)
261273
sequel (5.71.0)
262-
serverengine (2.0.7)
274+
serverengine (2.4.0)
275+
base64 (~> 0.1)
276+
logger (~> 1.4)
263277
sigdump (~> 0.2.2)
264-
set (1.0.3)
278+
set (1.1.1)
265279
sigdump (0.2.5)
266280
simplecov (0.22.0)
267281
docile (~> 1.1)
@@ -270,25 +284,18 @@ GEM
270284
simplecov-html (0.12.3)
271285
simplecov-lcov (0.8.0)
272286
simplecov_json_formatter (0.1.4)
273-
sneakers (2.11.0)
274-
bunny (~> 2.12)
275-
concurrent-ruby (~> 1.0)
276-
rake
277-
serverengine (~> 2.0.5)
278-
thor
279287
sorted_set (1.0.3)
280288
rbtree
281289
set (~> 1.0)
282-
stringio (3.1.1)
290+
stringio (3.1.2)
283291
tainbox (2.1.2)
284292
activesupport
285293
thor (1.3.2)
286294
timecop (0.9.7)
287-
timeout (0.4.1)
295+
timeout (0.4.3)
288296
tzinfo (2.0.6)
289297
concurrent-ruby (~> 1.0)
290298
unicode-display_width (2.4.2)
291-
webrick (1.8.2)
292299
websocket-driver (0.7.6)
293300
websocket-extensions (>= 0.1.0)
294301
websocket-extensions (0.1.5)

lib/table_sync.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class << self
4747

4848
def sync(object_class, **options)
4949
setup.new(
50-
object_class: object_class,
50+
object_class:,
5151
on: options[:on],
5252
if_condition: options[:if],
5353
unless_condition: options[:unless],

lib/table_sync/instrument_adapter/active_support.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ module ActiveSupport
66

77
def notify(table:, schema:, event:, direction:, count: 1)
88
::ActiveSupport::Notifications.instrument "tablesync.#{direction}.#{event}",
9-
count: count,
9+
count:,
1010
table: table.to_s,
1111
schema: schema.to_s,
12-
event: event,
13-
direction: direction
12+
event:,
13+
direction:
1414
end
1515
end
1616
end

0 commit comments

Comments
 (0)