sync_machine 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sync_machine/find_subjects_worker.rb +4 -1
- data/lib/sync_machine/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ff0993b78b5917c0558c23728cb9ba979dd7bbc401882dfb9a0eb30e81235c5
|
4
|
+
data.tar.gz: 5925e563d2a00a97fdfe71c4a44277ce9debeed601cb3253703c11d65f19d956
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71e46f8ea02796d4df3f0f834695636c819968d4c4e5e4feccb598884febaf8b85862bda68f64f950c22aad2cbab6c5a62363ae5743d2d6cf1e6f5bcb6436123
|
7
|
+
data.tar.gz: 39ec534919d564e87cb075e8f6eabc14bb976fd9edbaa76e6e98b31ae26c6ad802eb83a18ffd00a3ad0a24bb393741246d2b80a2d08ab0e6354c8ae0afb0830b
|
@@ -14,7 +14,10 @@ module SyncMachine
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def self.method_missing(meth, *args, &block)
|
17
|
-
if meth.to_s
|
17
|
+
if meth.to_s == "subject_ids_from_#{parent.subject_sym}"
|
18
|
+
block ||= ->(subject) { [subject.id.to_s] }
|
19
|
+
hooks[meth] = Hook.new(block)
|
20
|
+
elsif meth.to_s =~ /^subject_ids_from_.*/
|
18
21
|
hooks[meth] = Hook.new(block)
|
19
22
|
else
|
20
23
|
super
|
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.8.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-
|
11
|
+
date: 2019-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|