s3cp 1.1.30 → 1.1.31

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.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ === 1.1.31 (2013-05-16)
2
+
3
+ * Fixed: Passing ACLs to s3cp using --header 'x-amz-acl: public-read' was broken
4
+ since 1.1.24.
5
+
1
6
  === 1.1.30 (2013-05-15)
2
7
 
3
8
  * Changed: Improved error handling -- all commands now exit with non-zero exit
data/lib/s3cp/s3cp.rb CHANGED
@@ -261,7 +261,7 @@ def s3_to_s3(bucket_from, key, bucket_to, dest, options = {})
261
261
  s3_dest = @s3.buckets[bucket_to].objects[dest]
262
262
  s3_options = {}
263
263
  S3CP.set_header_options(s3_options, @headers)
264
- s3_options[:acl] = options[:acl]
264
+ s3_options[:acl] = options[:acl] if options[:acl]
265
265
  unless options[:move]
266
266
  s3_source.copy_to(s3_dest, s3_options)
267
267
  else
@@ -306,7 +306,7 @@ def local_to_s3(bucket_to, key, file, options = {})
306
306
 
307
307
  s3_options = {}
308
308
  S3CP.set_header_options(s3_options, @headers)
309
- s3_options[:acl] = options[:acl]
309
+ s3_options[:acl] = options[:acl] if options[:acl]
310
310
  s3_options[:content_length] = File.size(file)
311
311
 
312
312
  multipart_threshold = options[:multipart].is_a?(Fixnum) ? options[:multipart] : AWS.config.s3_multipart_threshold
data/lib/s3cp/s3stat.rb CHANGED
@@ -45,7 +45,7 @@ permission = ARGV.last
45
45
  @bucket, @key = S3CP.bucket_and_key(source)
46
46
  fail "Your URL looks funny, doesn't it?" unless @bucket
47
47
 
48
- S3CP.standard_exception_handling(options) do
48
+ S3CP.standard_exception_handling(@options) do
49
49
  S3CP.load_config()
50
50
 
51
51
  @s3 = S3CP.connect().buckets[@bucket]
data/lib/s3cp/s3up.rb CHANGED
@@ -90,7 +90,7 @@ S3CP.standard_exception_handling(options) do
90
90
  begin
91
91
  s3_options = {}
92
92
  S3CP.set_header_options(s3_options, @headers)
93
- s3_options[:acl] = options[:acl]
93
+ s3_options[:acl] = options[:acl] if options[:acl]
94
94
  @s3.buckets[bucket].objects[key].write(temp, s3_options)
95
95
  $stderr.puts "s3://#{bucket}/#{key} => #{S3CP.format_filesize(temp.size)} "
96
96
  ensure
data/lib/s3cp/version.rb CHANGED
@@ -16,5 +16,5 @@
16
16
  # the License.
17
17
 
18
18
  module S3CP
19
- VERSION = "1.1.30"
19
+ VERSION = "1.1.31"
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: 47
4
+ hash: 45
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 30
10
- version: 1.1.30
9
+ - 31
10
+ version: 1.1.31
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-05-15 00:00:00 Z
18
+ date: 2013-05-16 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  version_requirements: &id001 !ruby/object:Gem::Requirement