sync_machine 0.6.0 → 0.7.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ca21c3aabdb630357d8ac6cd7327c77f6f584e5b5da12fd2f9ede90b6c63f8f
|
4
|
+
data.tar.gz: 3d95e1f87cff56dd1f60e05c81ca1d5fff6ba0b7aec6fbdba82561e460ebb8de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 228727b827e081785e5e0f3dbef4edd18741b7e2e930518356004d88560dddfe3b8dd631b0dfd40909cd6818bc878f131afb946648875a967145474451cfa8e1
|
7
|
+
data.tar.gz: 15996c327310fec7441d492e4b70bcf84d658d827754b0b7d289c00e537ab8ca96170bfafee192c35242554deadc1898005eca79ba04a5f54456895811183626
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require "active_support/json"
|
2
|
+
require "active_support/core_ext/object/json"
|
1
3
|
require "wisper"
|
2
4
|
|
3
5
|
module SyncMachine
|
@@ -39,7 +41,7 @@ module SyncMachine
|
|
39
41
|
record.class.name,
|
40
42
|
record_id_for_job(record.id),
|
41
43
|
changed_keys(record),
|
42
|
-
Time.now.
|
44
|
+
Time.now.to_json
|
43
45
|
)
|
44
46
|
end
|
45
47
|
|
@@ -23,12 +23,12 @@ module SyncMachine
|
|
23
23
|
|
24
24
|
# :reek:LongParameterList is unavoidable here since this is a Sidekiq
|
25
25
|
# worker
|
26
|
-
def perform(record_class_name, record_id, changed_keys,
|
26
|
+
def perform(record_class_name, record_id, changed_keys, enqueue_time_str)
|
27
27
|
record = record_class_name.constantize.find(record_id)
|
28
28
|
source_ids = find_source_ids(record, changed_keys)
|
29
29
|
(source_ids || []).each do |source_id|
|
30
30
|
self.class.parent.const_get('EnsurePublicationWorker').perform_async(
|
31
|
-
source_id,
|
31
|
+
source_id, enqueue_time_str
|
32
32
|
)
|
33
33
|
end
|
34
34
|
end
|
data/lib/sync_machine/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sync_machine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Francis Hwang
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|