table_sync 6.4.2 → 6.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 27daf53674269b4dbf6fdf48f461e931fce6e5e39d2cb8b194a5685cc2c2df69
4
- data.tar.gz: 17caea3a4dcbabb976254dcb08a10d72f53d84af5dbb81e5e9e2c3895f3d5c9a
3
+ metadata.gz: 188faa6e4d1f0f2c4f75c856a0db87aabafa32f2d52e65365f03f3ce2e683c33
4
+ data.tar.gz: b9ea561a3f7ad3bf31359d32e81997dd91c6dcdb9beb8f6a90cbbe81955a974b
5
5
  SHA512:
6
- metadata.gz: 0c6e7a9b9d262c70b6cca1e3642ca9b1c03dcbe46e0787be8181311c55e0b0dd7b71ba7a0de589a9815176dc95abc1419033f5d232e8964bd077ac87be0983ff
7
- data.tar.gz: 8108b3d7c88ed2352f379ee639a3f155fc5a9c08c314aa7e843a569c3debc969215790fcff1e3f86c8341a961d4c4f3f9850435d0269d9ba3f5e536347fa9643
6
+ metadata.gz: 228c9b2ec6f2fb08edea95753cd6e05a570ef61358823bc3ab33daf32ec30bfc926dfbcdbcfbe74fb38a850a8afb4e5bc9a71eba43277fc1e52a625e5cf79ee6
7
+ data.tar.gz: 0c78b40a8a4c2b5d852fcf70559e419dc62a70bc9fc0240d2bd30d9f7145f093bc432a434b0083b8d55975ff9302776c8912b394f67a825148732d6de7430d4c
@@ -30,7 +30,7 @@ jobs:
30
30
  strategy:
31
31
  fail-fast: false
32
32
  matrix:
33
- ruby: ["2.7", "3.0", "3.1", "3.2"]
33
+ ruby: ["3.0", "3.1", "3.2", "3.3"]
34
34
 
35
35
  name: ${{ matrix.ruby }}
36
36
 
data/.rubocop.yml CHANGED
@@ -2,7 +2,7 @@ inherit_gem:
2
2
  rubocop-config-umbrellio: lib/rubocop.yml
3
3
 
4
4
  AllCops:
5
- TargetRubyVersion: 2.7
5
+ TargetRubyVersion: 3.0
6
6
  Include:
7
7
  - bin/*
8
8
  - lib/**/*.rb
data/CHANGELOG.md CHANGED
@@ -1,6 +1,19 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [6.5.0] - 2024-03-19
5
+ ### Added
6
+ - Add ruby 3.3 to ci workflow
7
+
8
+ ### Changed
9
+ - Add expiration time for cache used in debouncing sync
10
+ - Update dependencies
11
+ - Fix rubocop issue
12
+ - Drop ruby 2.7 support
13
+
14
+ ### Removed
15
+ - Remove ruby 2.7 from ci workflow
16
+
4
17
  ## [6.4.2] - 2023-11-14
5
18
  ### Added
6
19
  - Required fields allow accepting empty collections.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- table_sync (6.4.2)
4
+ table_sync (6.5.0)
5
5
  memery
6
6
  rabbit_messaging (~> 0.13)
7
7
  rails
@@ -10,67 +10,67 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- actioncable (7.0.7.1)
14
- actionpack (= 7.0.7.1)
15
- activesupport (= 7.0.7.1)
13
+ actioncable (7.0.8.1)
14
+ actionpack (= 7.0.8.1)
15
+ activesupport (= 7.0.8.1)
16
16
  nio4r (~> 2.0)
17
17
  websocket-driver (>= 0.6.1)
18
- actionmailbox (7.0.7.1)
19
- actionpack (= 7.0.7.1)
20
- activejob (= 7.0.7.1)
21
- activerecord (= 7.0.7.1)
22
- activestorage (= 7.0.7.1)
23
- activesupport (= 7.0.7.1)
18
+ actionmailbox (7.0.8.1)
19
+ actionpack (= 7.0.8.1)
20
+ activejob (= 7.0.8.1)
21
+ activerecord (= 7.0.8.1)
22
+ activestorage (= 7.0.8.1)
23
+ activesupport (= 7.0.8.1)
24
24
  mail (>= 2.7.1)
25
25
  net-imap
26
26
  net-pop
27
27
  net-smtp
28
- actionmailer (7.0.7.1)
29
- actionpack (= 7.0.7.1)
30
- actionview (= 7.0.7.1)
31
- activejob (= 7.0.7.1)
32
- activesupport (= 7.0.7.1)
28
+ actionmailer (7.0.8.1)
29
+ actionpack (= 7.0.8.1)
30
+ actionview (= 7.0.8.1)
31
+ activejob (= 7.0.8.1)
32
+ activesupport (= 7.0.8.1)
33
33
  mail (~> 2.5, >= 2.5.4)
34
34
  net-imap
35
35
  net-pop
36
36
  net-smtp
37
37
  rails-dom-testing (~> 2.0)
38
- actionpack (7.0.7.1)
39
- actionview (= 7.0.7.1)
40
- activesupport (= 7.0.7.1)
38
+ actionpack (7.0.8.1)
39
+ actionview (= 7.0.8.1)
40
+ activesupport (= 7.0.8.1)
41
41
  rack (~> 2.0, >= 2.2.4)
42
42
  rack-test (>= 0.6.3)
43
43
  rails-dom-testing (~> 2.0)
44
44
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
45
- actiontext (7.0.7.1)
46
- actionpack (= 7.0.7.1)
47
- activerecord (= 7.0.7.1)
48
- activestorage (= 7.0.7.1)
49
- activesupport (= 7.0.7.1)
45
+ actiontext (7.0.8.1)
46
+ actionpack (= 7.0.8.1)
47
+ activerecord (= 7.0.8.1)
48
+ activestorage (= 7.0.8.1)
49
+ activesupport (= 7.0.8.1)
50
50
  globalid (>= 0.6.0)
51
51
  nokogiri (>= 1.8.5)
52
- actionview (7.0.7.1)
53
- activesupport (= 7.0.7.1)
52
+ actionview (7.0.8.1)
53
+ activesupport (= 7.0.8.1)
54
54
  builder (~> 3.1)
55
55
  erubi (~> 1.4)
56
56
  rails-dom-testing (~> 2.0)
57
57
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
58
- activejob (7.0.7.1)
59
- activesupport (= 7.0.7.1)
58
+ activejob (7.0.8.1)
59
+ activesupport (= 7.0.8.1)
60
60
  globalid (>= 0.3.6)
61
- activemodel (7.0.7.1)
62
- activesupport (= 7.0.7.1)
63
- activerecord (7.0.7.1)
64
- activemodel (= 7.0.7.1)
65
- activesupport (= 7.0.7.1)
66
- activestorage (7.0.7.1)
67
- actionpack (= 7.0.7.1)
68
- activejob (= 7.0.7.1)
69
- activerecord (= 7.0.7.1)
70
- activesupport (= 7.0.7.1)
61
+ activemodel (7.0.8.1)
62
+ activesupport (= 7.0.8.1)
63
+ activerecord (7.0.8.1)
64
+ activemodel (= 7.0.8.1)
65
+ activesupport (= 7.0.8.1)
66
+ activestorage (7.0.8.1)
67
+ actionpack (= 7.0.8.1)
68
+ activejob (= 7.0.8.1)
69
+ activerecord (= 7.0.8.1)
70
+ activesupport (= 7.0.8.1)
71
71
  marcel (~> 1.0)
72
72
  mini_mime (>= 1.1.0)
73
- activesupport (7.0.7.1)
73
+ activesupport (7.0.8.1)
74
74
  concurrent-ruby (~> 1.0, >= 1.0.2)
75
75
  i18n (>= 1.6, < 2)
76
76
  minitest (>= 5.1)
@@ -106,7 +106,7 @@ GEM
106
106
  net-imap
107
107
  net-pop
108
108
  net-smtp
109
- marcel (1.0.2)
109
+ marcel (1.0.4)
110
110
  memery (1.5.0)
111
111
  ruby2_keywords (~> 0.0.2)
112
112
  method_source (1.0.0)
@@ -123,7 +123,7 @@ GEM
123
123
  net-smtp (0.3.3)
124
124
  net-protocol
125
125
  nio4r (2.5.9)
126
- nokogiri (1.15.4)
126
+ nokogiri (1.16.3)
127
127
  mini_portile2 (~> 2.8.2)
128
128
  racc (~> 1.4)
129
129
  parallel (1.23.0)
@@ -141,23 +141,23 @@ GEM
141
141
  sneakers (~> 2.0)
142
142
  tainbox
143
143
  racc (1.7.1)
144
- rack (2.2.8)
144
+ rack (2.2.8.1)
145
145
  rack-test (2.1.0)
146
146
  rack (>= 1.3)
147
- rails (7.0.7.1)
148
- actioncable (= 7.0.7.1)
149
- actionmailbox (= 7.0.7.1)
150
- actionmailer (= 7.0.7.1)
151
- actionpack (= 7.0.7.1)
152
- actiontext (= 7.0.7.1)
153
- actionview (= 7.0.7.1)
154
- activejob (= 7.0.7.1)
155
- activemodel (= 7.0.7.1)
156
- activerecord (= 7.0.7.1)
157
- activestorage (= 7.0.7.1)
158
- activesupport (= 7.0.7.1)
147
+ rails (7.0.8.1)
148
+ actioncable (= 7.0.8.1)
149
+ actionmailbox (= 7.0.8.1)
150
+ actionmailer (= 7.0.8.1)
151
+ actionpack (= 7.0.8.1)
152
+ actiontext (= 7.0.8.1)
153
+ actionview (= 7.0.8.1)
154
+ activejob (= 7.0.8.1)
155
+ activemodel (= 7.0.8.1)
156
+ activerecord (= 7.0.8.1)
157
+ activestorage (= 7.0.8.1)
158
+ activesupport (= 7.0.8.1)
159
159
  bundler (>= 1.15.0)
160
- railties (= 7.0.7.1)
160
+ railties (= 7.0.8.1)
161
161
  rails-dom-testing (2.2.0)
162
162
  activesupport (>= 5.0.0)
163
163
  minitest
@@ -165,9 +165,9 @@ GEM
165
165
  rails-html-sanitizer (1.6.0)
166
166
  loofah (~> 2.21)
167
167
  nokogiri (~> 1.14)
168
- railties (7.0.7.1)
169
- actionpack (= 7.0.7.1)
170
- activesupport (= 7.0.7.1)
168
+ railties (7.0.8.1)
169
+ actionpack (= 7.0.8.1)
170
+ activesupport (= 7.0.8.1)
171
171
  method_source
172
172
  rake (>= 12.2)
173
173
  thor (~> 1.0)
@@ -124,7 +124,11 @@ module TableSync::Publishing::Helpers
124
124
  end
125
125
 
126
126
  def cache_next_sync_time
127
- Rails.cache.write(cache_key, next_sync_time)
127
+ Rails.cache.write(
128
+ cache_key,
129
+ next_sync_time,
130
+ expires_at: next_sync_time + debounce_time.seconds,
131
+ )
128
132
  end
129
133
 
130
134
  def cache_key
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TableSync
4
- VERSION = "6.4.2"
4
+ VERSION = "6.5.0"
5
5
  end
data/table_sync.gemspec CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
  require "table_sync/version"
6
6
 
7
7
  Gem::Specification.new do |spec|
8
- spec.required_ruby_version = ">= 2.7.0"
8
+ spec.required_ruby_version = ">= 3.0.0"
9
9
 
10
10
  spec.name = "table_sync"
11
11
  spec.version = TableSync::VERSION
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: table_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.4.2
4
+ version: 6.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Umbrellio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-17 00:00:00.000000000 Z
11
+ date: 2024-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: memery
@@ -143,14 +143,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
143
143
  requirements:
144
144
  - - ">="
145
145
  - !ruby/object:Gem::Version
146
- version: 2.7.0
146
+ version: 3.0.0
147
147
  required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  requirements:
149
149
  - - ">="
150
150
  - !ruby/object:Gem::Version
151
151
  version: '0'
152
152
  requirements: []
153
- rubygems_version: 3.4.21
153
+ rubygems_version: 3.5.3
154
154
  signing_key:
155
155
  specification_version: 4
156
156
  summary: DB Table synchronization between microservices based on Model's event system