rbsync 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/rbsync.rb +3 -2
- data/rbsync.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.11
|
data/lib/rbsync.rb
CHANGED
@@ -94,7 +94,7 @@ class RbSync
|
|
94
94
|
paths.join("/")
|
95
95
|
end
|
96
96
|
def FileUtils.mkdir_p(e)
|
97
|
-
`mkdir -p
|
97
|
+
`mkdir -p '#{e}'`
|
98
98
|
end
|
99
99
|
end
|
100
100
|
def initialize()
|
@@ -375,7 +375,8 @@ class RbSync
|
|
375
375
|
end
|
376
376
|
src_size = File.size(e[0]).to_f
|
377
377
|
dst_size = File.size(e[1]).to_f
|
378
|
-
|
378
|
+
break if src_size == 0 # preven zero divide
|
379
|
+
next if dst_size == 0 # preven zero divide
|
379
380
|
percent = dst_size/src_size*100
|
380
381
|
bar.progress(percent.to_int)
|
381
382
|
sleep 0.2
|
data/rbsync.gemspec
CHANGED
metadata
CHANGED