s3cp 1.1.20 → 1.1.21

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,10 @@
1
+ === 1.1.21 (2013-03-05)
2
+
3
+ * Fixed: s3cp --sync would not correctly copy a file from S3 to local file
4
+ system if the file didn't already exist *and* it had invalid
5
+ MD5 checksum metadata in S3 (from a multi-part upload).
6
+
7
+
1
8
  === 1.1.20 (2013-02-26)
2
9
 
3
10
  * Added: "--header" command-line option to s3cp, s3up, s3mod.
data/lib/s3cp/s3cp.rb CHANGED
@@ -372,7 +372,7 @@ def s3_to_local(bucket_from, key_from, dest, options = {})
372
372
  S3CP.md5(dest)
373
373
  end
374
374
 
375
- if !options[:sync] || (expected_md5 != actual_md5)
375
+ if !options[:sync] || expected_md5.nil? || (expected_md5 != actual_md5)
376
376
  f = File.new(dest, "wb")
377
377
  begin
378
378
  progress_bar = if $stdout.isatty
data/lib/s3cp/version.rb CHANGED
@@ -16,5 +16,5 @@
16
16
  # the License.
17
17
 
18
18
  module S3CP
19
- VERSION = "1.1.20"
19
+ VERSION = "1.1.21"
20
20
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3cp
3
3
  version: !ruby/object:Gem::Version
4
- hash: 59
4
+ hash: 57
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 20
10
- version: 1.1.20
9
+ - 21
10
+ version: 1.1.21
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Boisvert
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-02-27 00:00:00 Z
18
+ date: 2013-03-06 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  version_requirements: &id001 !ruby/object:Gem::Requirement