table_sync 6.6.1 → 6.6.2
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.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +0 -1
- data/Gemfile +0 -1
- data/Gemfile.lock +2 -6
- data/Rakefile +0 -2
- data/lib/table_sync/publishing/helpers/debounce.rb +5 -5
- data/lib/table_sync/version.rb +1 -1
- metadata +3 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 854d7166424d48ce354bac8c7ccbc9c93a452bb7582356ab30cda49e4c764e94
|
4
|
+
data.tar.gz: ea93b2e0cecc02a135e03e72caebc14f684a338efcff1876f1ad76b52e73db72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce0b254960759e00fa22c05a5eb3f631f86f7a446d18666c95cf06a0ffbb899fb44991603f6a833c99061adf210b69efaff08065f0f09b69512baecff10e5dd7
|
7
|
+
data.tar.gz: 26b182c2ee3fd0cb46f3c40f56257298e02e89bc29e96f4b402956586c18074970541155443b8b450d7b9ba3301feb8e3ca360ceb4ce2e5346c07edd833c21a3
|
data/.github/workflows/ci.yml
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
table_sync (6.6.
|
4
|
+
table_sync (6.6.2)
|
5
5
|
memery
|
6
6
|
rabbit_messaging (>= 1.1.0)
|
7
7
|
rails
|
@@ -93,9 +93,6 @@ GEM
|
|
93
93
|
benchmark (0.4.0)
|
94
94
|
bigdecimal (3.1.8)
|
95
95
|
builder (3.3.0)
|
96
|
-
bundler-audit (0.9.1)
|
97
|
-
bundler (>= 1.2.0, < 3)
|
98
|
-
thor (~> 1.0)
|
99
96
|
bunny (2.23.0)
|
100
97
|
amq-protocol (~> 2.3, >= 2.3.1)
|
101
98
|
sorted_set (~> 1, >= 1.0.2)
|
@@ -308,7 +305,6 @@ DEPENDENCIES
|
|
308
305
|
activejob
|
309
306
|
activerecord
|
310
307
|
bundler
|
311
|
-
bundler-audit
|
312
308
|
pg
|
313
309
|
pry
|
314
310
|
rake
|
@@ -321,4 +317,4 @@ DEPENDENCIES
|
|
321
317
|
timecop
|
322
318
|
|
323
319
|
BUNDLED WITH
|
324
|
-
2.
|
320
|
+
2.6.9
|
data/Rakefile
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "bundler/gem_tasks"
|
4
|
-
require "bundler/audit/task"
|
5
4
|
require "rspec/core/rake_task"
|
6
5
|
require "rubocop"
|
7
6
|
require "rubocop-rspec"
|
@@ -17,6 +16,5 @@ RuboCop::RakeTask.new(:rubocop) do |t|
|
|
17
16
|
end
|
18
17
|
|
19
18
|
RSpec::Core::RakeTask.new(:rspec)
|
20
|
-
Bundler::Audit::Task.new
|
21
19
|
|
22
20
|
task default: :rspec
|
@@ -124,11 +124,11 @@ module TableSync::Publishing::Helpers
|
|
124
124
|
end
|
125
125
|
|
126
126
|
def cache_next_sync_time
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
)
|
127
|
+
expires_at = next_sync_time + debounce_time.seconds
|
128
|
+
expires_in = expires_at - Time.current
|
129
|
+
return if expires_in.negative?
|
130
|
+
|
131
|
+
Rails.cache.write(cache_key, next_sync_time, expires_in:)
|
132
132
|
end
|
133
133
|
|
134
134
|
def cache_key
|
data/lib/table_sync/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: table_sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.6.
|
4
|
+
version: 6.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Umbrellio
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: memery
|
@@ -135,7 +134,6 @@ homepage: https://github.com/umbrellio/table_sync
|
|
135
134
|
licenses:
|
136
135
|
- MIT
|
137
136
|
metadata: {}
|
138
|
-
post_install_message:
|
139
137
|
rdoc_options: []
|
140
138
|
require_paths:
|
141
139
|
- lib
|
@@ -150,8 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
148
|
- !ruby/object:Gem::Version
|
151
149
|
version: '0'
|
152
150
|
requirements: []
|
153
|
-
rubygems_version: 3.
|
154
|
-
signing_key:
|
151
|
+
rubygems_version: 3.6.9
|
155
152
|
specification_version: 4
|
156
153
|
summary: DB Table synchronization between microservices based on Model's event system
|
157
154
|
and RabbitMQ messaging
|