vagrant-reflect 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 66d27cb983d7227c7e1c865436870fec9a701e11
4
- data.tar.gz: 32c2febf5d284030c01bcdf65a96d7d5c5605baa
3
+ metadata.gz: 27514930e4a083e72bf754603e5cf8b1a4e4edfe
4
+ data.tar.gz: 143c954865bc3b8d4292eba8fd13e87f8582a70a
5
5
  SHA512:
6
- metadata.gz: 52e52ddd6a1f6e89a25315db18331889084410bd155379fb1ed191347b1158da8ab745374ccd112a6378c17ed878806f69ba9df680f42860c7db389f6a22a65c
7
- data.tar.gz: f6a615a2a60df6b78b5367cdc25275edd40d9b2faf6af354d7e74a4518c1ee39ac2edd8fe18a61394109ef3229cbf5bdb408a931076c6d082aa3f6a3ada2de46
6
+ metadata.gz: 292239d704ae4416df60d289d695456b7d5ae1bf71c743572b78e9a046dabc673d12cf7880443c5a76ea8cfecabb3fb0eb637169d88097f4e56ea951acb5d4a3
7
+ data.tar.gz: 378cfc2e9047b6fa9f3b2b9378e7d9c42b94ffc34beb2326962a5d4257fb53ded9a87428978f0875dab365c1d0f49059b7a5a6e01bd44172c25dfdc5e7c28f41
@@ -243,9 +243,11 @@ module VagrantReflect
243
243
  loop do
244
244
  parent = File.dirname(parent)
245
245
  break if parent == '/'
246
- unless File.exist?(@hostpath + parent) || dirs.key?(parent)
247
- dirs[parent] = @guestpath + parent
248
- end
246
+ next if File.exist?(@hostpath + parent)
247
+ # Insertion order is maintained so ensure we move repeated paths to
248
+ # end so they are deleted last
249
+ dirs.delete parent
250
+ dirs[parent] = @guestpath + parent
249
251
  end
250
252
  end
251
253
 
@@ -1,3 +1,3 @@
1
1
  module VagrantReflect
2
- VERSION = '0.5.0'
2
+ VERSION = '0.6.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-reflect
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
  - Jason Woods