s3snapshot 0.0.10a → 0.0.10b

Sign up to get free protection for your applications and to get access to all the features.
@@ -63,7 +63,7 @@ module S3snapshot
63
63
  File.open(destination_path, File::RDWR|File::CREAT) do |file|
64
64
  bucket.files.get(remotefile.key) do |chunk, remaining_bytes, total_bytes|
65
65
  file.write(chunk)
66
- percent = (1-remaining_bytes/total_bytes)*100
66
+ percent = ((1-remaining_bytes.to_f/total_bytes.to_f)*100).round
67
67
  puts "#{percent}% complete"
68
68
  end
69
69
  end
@@ -1,3 +1,3 @@
1
1
  module S3snapshot
2
- VERSION = "0.0.10a"
2
+ VERSION = "0.0.10b"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3snapshot
3
3
  version: !ruby/object:Gem::Version
4
- hash: 2
4
+ hash: 3
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
9
  - 10
10
- - a
11
- version: 0.0.10a
10
+ - b
11
+ version: 0.0.10b
12
12
  platform: ruby
13
13
  authors:
14
14
  - Todd