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 +4 -4
- data/.github/workflows/ci.yml +1 -1
- data/.rubocop.yml +1 -1
- data/CHANGELOG.md +17 -0
- data/Gemfile.lock +60 -60
- data/lib/table_sync/publishing/helpers/debounce.rb +5 -1
- data/lib/table_sync/utils/required_validator.rb +1 -1
- data/lib/table_sync/version.rb +1 -1
- data/table_sync.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 188faa6e4d1f0f2c4f75c856a0db87aabafa32f2d52e65365f03f3ce2e683c33
|
4
|
+
data.tar.gz: b9ea561a3f7ad3bf31359d32e81997dd91c6dcdb9beb8f6a90cbbe81955a974b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 228c9b2ec6f2fb08edea95753cd6e05a570ef61358823bc3ab33daf32ec30bfc926dfbcdbcfbe74fb38a850a8afb4e5bc9a71eba43277fc1e52a625e5cf79ee6
|
7
|
+
data.tar.gz: 0c78b40a8a4c2b5d852fcf70559e419dc62a70bc9fc0240d2bd30d9f7145f093bc432a434b0083b8d55975ff9302776c8912b394f67a825148732d6de7430d4c
|
data/.github/workflows/ci.yml
CHANGED
data/.rubocop.yml
CHANGED
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
|
+
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.
|
14
|
-
actionpack (= 7.0.
|
15
|
-
activesupport (= 7.0.
|
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.
|
19
|
-
actionpack (= 7.0.
|
20
|
-
activejob (= 7.0.
|
21
|
-
activerecord (= 7.0.
|
22
|
-
activestorage (= 7.0.
|
23
|
-
activesupport (= 7.0.
|
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.
|
29
|
-
actionpack (= 7.0.
|
30
|
-
actionview (= 7.0.
|
31
|
-
activejob (= 7.0.
|
32
|
-
activesupport (= 7.0.
|
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.
|
39
|
-
actionview (= 7.0.
|
40
|
-
activesupport (= 7.0.
|
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.
|
46
|
-
actionpack (= 7.0.
|
47
|
-
activerecord (= 7.0.
|
48
|
-
activestorage (= 7.0.
|
49
|
-
activesupport (= 7.0.
|
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.
|
53
|
-
activesupport (= 7.0.
|
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.
|
59
|
-
activesupport (= 7.0.
|
58
|
+
activejob (7.0.8.1)
|
59
|
+
activesupport (= 7.0.8.1)
|
60
60
|
globalid (>= 0.3.6)
|
61
|
-
activemodel (7.0.
|
62
|
-
activesupport (= 7.0.
|
63
|
-
activerecord (7.0.
|
64
|
-
activemodel (= 7.0.
|
65
|
-
activesupport (= 7.0.
|
66
|
-
activestorage (7.0.
|
67
|
-
actionpack (= 7.0.
|
68
|
-
activejob (= 7.0.
|
69
|
-
activerecord (= 7.0.
|
70
|
-
activesupport (= 7.0.
|
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.
|
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
|
95
|
-
activesupport (>=
|
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.
|
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.
|
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.
|
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.
|
148
|
-
actioncable (= 7.0.
|
149
|
-
actionmailbox (= 7.0.
|
150
|
-
actionmailer (= 7.0.
|
151
|
-
actionpack (= 7.0.
|
152
|
-
actiontext (= 7.0.
|
153
|
-
actionview (= 7.0.
|
154
|
-
activejob (= 7.0.
|
155
|
-
activemodel (= 7.0.
|
156
|
-
activerecord (= 7.0.
|
157
|
-
activestorage (= 7.0.
|
158
|
-
activesupport (= 7.0.
|
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.
|
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.
|
169
|
-
actionpack (= 7.0.
|
170
|
-
activesupport (= 7.0.
|
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(
|
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.
|
33
|
+
.select { |key, value| key.in?(self.class._required_attributes) && value.nil? }
|
34
34
|
.keys
|
35
35
|
end
|
36
36
|
end
|
data/lib/table_sync/version.rb
CHANGED
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 = ">=
|
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
|
+
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:
|
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:
|
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.
|
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
|