syncify 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/syncify/sync.rb +8 -1
- data/lib/syncify/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 612709c8c6ba1a45b4995e518df50c8b4ac0110d
|
4
|
+
data.tar.gz: 34f0f19fa22c221bf957990eef8abc3e9818da72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9c7baa10434904eb55a4484b0e45978d73a495d4f63e64552a39188ab8990a936dfbb7dc9ddfeb3ad65bba13255cf5d77d0905af1c3158197ba6fd2e9d23964
|
7
|
+
data.tar.gz: 1647a2b6fc6cb2a17c19cf87351536b2d11ddee55cd669c495f7dc58f3597da3cc8dcceeb625d545d2c12b2427c1f70c9717209aa24d3ff6e3fce167467f243a
|
data/lib/syncify/sync.rb
CHANGED
@@ -26,9 +26,15 @@ module Syncify
|
|
26
26
|
sync_records
|
27
27
|
end
|
28
28
|
|
29
|
+
private
|
30
|
+
|
31
|
+
def print_status
|
32
|
+
print "\rIdentified #{identified_records.size} records..."
|
33
|
+
end
|
34
|
+
|
29
35
|
def identify_associated_records(root, associations)
|
30
|
-
print '.'
|
31
36
|
identified_records << root
|
37
|
+
print_status
|
32
38
|
|
33
39
|
standard_associations = associations.reject(&method(:includes_polymorphic_association))
|
34
40
|
polymorphic_associations = associations.select(&method(:includes_polymorphic_association))
|
@@ -64,6 +70,7 @@ module Syncify
|
|
64
70
|
records = Array(records)
|
65
71
|
|
66
72
|
identified_records.merge records
|
73
|
+
print_status
|
67
74
|
|
68
75
|
records.each do |record|
|
69
76
|
associations.each do |association, nested_associations|
|
data/lib/syncify/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: syncify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Doug Hughes
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|