rbsync 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/rbsync.rb +3 -2
  3. data/rbsync.gemspec +1 -1
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.10
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 "#{e}"`
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
- next if dst_size == 0 # preven zero divide
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rbsync}
8
- s.version = "0.0.10"
8
+ s.version = "0.0.11"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["takuya"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbsync
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 10
10
- version: 0.0.10
9
+ - 11
10
+ version: 0.0.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - takuya