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: be99f96327affef1097f4dcf927db31bedff2700557fa76b2b1c70d6a71a4431
4
- data.tar.gz: 6c829c978d69f98f77b501634fa92650ca870aabd223c6b262c46da5cbfdb1c3
3
+ metadata.gz: 9ca21c3aabdb630357d8ac6cd7327c77f6f584e5b5da12fd2f9ede90b6c63f8f
4
+ data.tar.gz: 3d95e1f87cff56dd1f60e05c81ca1d5fff6ba0b7aec6fbdba82561e460ebb8de
5
5
  SHA512:
6
- metadata.gz: 033f4eaec503eb4768aa88d48307f2f5dc06314f3ad5240f4f26e226456fa4c2be2801063d5b11769459da7e62536acdecfcd9aca4a243ce418f2ddecbe3b742
7
- data.tar.gz: 760e0804e9e674feed39e1b5f9b9d283081349cffac49286deeca35a177504b48af5c67165d99e6fbf598d38aab9e46fec9cea341eb72997f9bfbbeabce9cabf
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.iso8601
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, enqueue_time)
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, enqueue_time
31
+ source_id, enqueue_time_str
32
32
  )
33
33
  end
34
34
  end
@@ -1,3 +1,3 @@
1
1
  module SyncMachine
2
- VERSION = "0.6.0".freeze
2
+ VERSION = "0.7.0".freeze
3
3
  end
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.6.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-29 00:00:00.000000000 Z
11
+ date: 2019-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport