table_sync 6.4.1 → 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: '04790df8ae9da785364a1ba3d01c7e167183a3c1334257e245eb74fc2894efc4'
4
- data.tar.gz: e3fc4d152b0734bf90fc6ec2138aaf155a68563c225b1e00e6167f8595a0f1a5
3
+ metadata.gz: 188faa6e4d1f0f2c4f75c856a0db87aabafa32f2d52e65365f03f3ce2e683c33
4
+ data.tar.gz: b9ea561a3f7ad3bf31359d32e81997dd91c6dcdb9beb8f6a90cbbe81955a974b
5
5
  SHA512:
6
- metadata.gz: 0e0559fa23809ca3196ee800c95a29c99f10cd1a96db6a7839e807a4caa3862feb41213c52349cc818a22e5e6e6d926d74d129e7a31bfba7080d5c339dea5789
7
- data.tar.gz: a3b259534e55aa2191f90df43257de259f8e31b9187763b9952d09fb3d2fb4cc81b178d6bf3fd6769089cc7adc361420183878b22cc2e95ff2732c6b33598ae9
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,23 @@
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
+
17
+ ## [6.4.2] - 2023-11-14
18
+ ### Added
19
+ - Required fields allow accepting empty collections.
20
+
4
21
  ## [6.4.1] - 2023-08-15
5
22
  ### Added
6
23
  - Required fields validation for the Raw and Batch publishers.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- table_sync (6.4.1)
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)
14
- actionpack (= 7.0.7)
15
- activesupport (= 7.0.7)
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)
19
- actionpack (= 7.0.7)
20
- activejob (= 7.0.7)
21
- activerecord (= 7.0.7)
22
- activestorage (= 7.0.7)
23
- activesupport (= 7.0.7)
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)
29
- actionpack (= 7.0.7)
30
- actionview (= 7.0.7)
31
- activejob (= 7.0.7)
32
- activesupport (= 7.0.7)
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)
39
- actionview (= 7.0.7)
40
- activesupport (= 7.0.7)
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)
46
- actionpack (= 7.0.7)
47
- activerecord (= 7.0.7)
48
- activestorage (= 7.0.7)
49
- activesupport (= 7.0.7)
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)
53
- activesupport (= 7.0.7)
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)
59
- activesupport (= 7.0.7)
58
+ activejob (7.0.8.1)
59
+ activesupport (= 7.0.8.1)
60
60
  globalid (>= 0.3.6)
61
- activemodel (7.0.7)
62
- activesupport (= 7.0.7)
63
- activerecord (7.0.7)
64
- activemodel (= 7.0.7)
65
- activesupport (= 7.0.7)
66
- activestorage (7.0.7)
67
- actionpack (= 7.0.7)
68
- activejob (= 7.0.7)
69
- activerecord (= 7.0.7)
70
- activesupport (= 7.0.7)
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)
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)
@@ -91,8 +91,8 @@ GEM
91
91
  diff-lcs (1.5.0)
92
92
  docile (1.4.0)
93
93
  erubi (1.12.0)
94
- globalid (1.1.0)
95
- activesupport (>= 5.0)
94
+ globalid (1.2.1)
95
+ activesupport (>= 6.1)
96
96
  i18n (1.14.1)
97
97
  concurrent-ruby (~> 1.0)
98
98
  json (2.6.3)
@@ -106,13 +106,13 @@ 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)
113
113
  mini_mime (1.1.5)
114
114
  mini_portile2 (2.8.4)
115
- minitest (5.19.0)
115
+ minitest (5.20.0)
116
116
  net-imap (0.3.7)
117
117
  date
118
118
  net-protocol
@@ -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)
148
- actioncable (= 7.0.7)
149
- actionmailbox (= 7.0.7)
150
- actionmailer (= 7.0.7)
151
- actionpack (= 7.0.7)
152
- actiontext (= 7.0.7)
153
- actionview (= 7.0.7)
154
- activejob (= 7.0.7)
155
- activemodel (= 7.0.7)
156
- activerecord (= 7.0.7)
157
- activestorage (= 7.0.7)
158
- activesupport (= 7.0.7)
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)
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)
169
- actionpack (= 7.0.7)
170
- activesupport (= 7.0.7)
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
@@ -30,7 +30,7 @@ module TableSync::Utils::RequiredValidator
30
30
 
31
31
  def calculate_not_filled_attributes
32
32
  attributes
33
- .select { |key, value| key.in?(self.class._required_attributes) && value.blank? }
33
+ .select { |key, value| key.in?(self.class._required_attributes) && value.nil? }
34
34
  .keys
35
35
  end
36
36
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TableSync
4
- VERSION = "6.4.1"
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.1
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-08-16 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.16
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