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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d74bceb28bab77aa858ac307a674420bc7bef4c8
4
- data.tar.gz: 52d6e619d17684d439e9f3c703d434cb0d764804
3
+ metadata.gz: 612709c8c6ba1a45b4995e518df50c8b4ac0110d
4
+ data.tar.gz: 34f0f19fa22c221bf957990eef8abc3e9818da72
5
5
  SHA512:
6
- metadata.gz: 6ae2fe29952618002248d724d9a7b321235a8017cdfb3a451d3ed7a2798f608d5b5bdb941ee5e354f19a3d8e3a6545eec983b6837cdd4af7e022b379df07c8e6
7
- data.tar.gz: 56858e70722dc43e387f624c31019094ead0385d13da73d1d346844d9f36141ef63006205d46dffcc3d893a2919079c0cb7fa1b62515577933de2ddace7a5559
6
+ metadata.gz: c9c7baa10434904eb55a4484b0e45978d73a495d4f63e64552a39188ab8990a936dfbb7dc9ddfeb3ad65bba13255cf5d77d0905af1c3158197ba6fd2e9d23964
7
+ data.tar.gz: 1647a2b6fc6cb2a17c19cf87351536b2d11ddee55cd669c495f7dc58f3597da3cc8dcceeb625d545d2c12b2427c1f70c9717209aa24d3ff6e3fce167467f243a
@@ -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|
@@ -1,3 +1,3 @@
1
1
  module Syncify
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
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.3
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-16 00:00:00.000000000 Z
11
+ date: 2019-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler