sync_machine 0.5.0 → 0.6.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: e8f915bfedcd7574bb9914b6ec0ae326f11c23ccf76593802cfe30290ef443e4
4
- data.tar.gz: 4d87008448a205b0e231b11a8386f44a757533de95657b682966c9d94668b17f
3
+ metadata.gz: be99f96327affef1097f4dcf927db31bedff2700557fa76b2b1c70d6a71a4431
4
+ data.tar.gz: 6c829c978d69f98f77b501634fa92650ca870aabd223c6b262c46da5cbfdb1c3
5
5
  SHA512:
6
- metadata.gz: c01e4a2ccb436bf1538c287f6c9a54464fbaefb5b6416fa6441ab0b5556137c9c9fff4ec8229a00383a4527fd0b71b5210915f7be1052083b0d5a8d46e57ead2
7
- data.tar.gz: 4b810e9338f11d0e554c3d20717b4dde9dd3a400613149dd2ed25b9f89c4505118f912e2ac79d286f23e38ad848962d768191bce5a9cee927c9f1c3208be96d1
6
+ metadata.gz: 033f4eaec503eb4768aa88d48307f2f5dc06314f3ad5240f4f26e226456fa4c2be2801063d5b11769459da7e62536acdecfcd9aca4a243ce418f2ddecbe3b742
7
+ data.tar.gz: 760e0804e9e674feed39e1b5f9b9d283081349cffac49286deeca35a177504b48af5c67165d99e6fbf598d38aab9e46fec9cea341eb72997f9bfbbeabce9cabf
@@ -32,7 +32,7 @@ module SyncMachine
32
32
  end
33
33
 
34
34
  def after_record_saved(record)
35
- return unless changed_keys(record).present?
35
+ return unless orm_adapter.sufficient_changes_to_find_subjects?(record)
36
36
  sync_module = SyncMachine.sync_module(self.class)
37
37
  finder_class = sync_module.const_get('FindSubjectsWorker')
38
38
  finder_class.perform_async(
@@ -1,3 +1,3 @@
1
1
  module SyncMachine
2
- VERSION = "0.5.0".freeze
2
+ VERSION = "0.6.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.5.0
4
+ version: 0.6.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-09-25 00:00:00.000000000 Z
11
+ date: 2019-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport