s3cp 1.1.6 → 1.1.7

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ === 1.1.7 (2012-10-17)
2
+
3
+ * Fixed: s3cp -r (recursive) would fail with "uninitialized constant FileUtils (NameError)"
4
+ if destination directory didn't exist.
5
+
1
6
  === 1.1.6 (2012-10-09)
2
7
 
3
8
  * Fixed: Potential error: utils.rb:58:in `join': can't convert nil into String (TypeError)
@@ -1,35 +1 @@
1
- def set_header_options(options, headers)
2
- return options unless headers
3
-
4
- # legacy options that were previously passed as headers
5
- # are now passed explicitly as options/metadata.
6
- mappings = {
7
- "Content-Type" => :content_type,
8
- "x-amz-acl" => :acl,
9
- "Cache-Control" => :cache_control,
10
- "x-amz-storage-class" => :reduced_redundancy
11
- }
12
-
13
- lambdas = {
14
- "x-amz-storage-class" => lambda { |v| (v =~ /^REDUCED_REDUNDANCY$/i) ? true : false }
15
- }
16
-
17
- remaining = headers.dup
18
- headers.each do |hk, hv|
19
- mappings.each do |mk, mv|
20
- if hk.to_s =~ /^#{mk}$/i
21
- lambda = lambdas[mk]
22
- options[mv] = lambda ? lambda.call(hv) : hv
23
- remaining.delete(hk)
24
- end
25
- end
26
- end
27
-
28
-
29
- options[:metadata] = remaining unless remaining.empty?
30
-
31
- options
32
- end
33
-
34
-
35
- set_header_options({}, { "Content-type" => "foo ", 'x-amz-acl' => 'private', 'foo' => 'bar', 'x-amz-storage-class' => 'REDUCED_REDUNDANCY'})
1
+ s3cp -r -x 'task-attempts/attempt_.*' s3://com-bizo-elasticmr/logs/j-3JYF93SF71CLX failed_jobs/
data/lib/s3cp/utils.rb CHANGED
@@ -22,6 +22,7 @@ require 'optparse'
22
22
  require 'date'
23
23
  require 'highline/import'
24
24
  require 's3cp/version'
25
+ require 'fileutils'
25
26
 
26
27
  module S3CP
27
28
  extend self
data/lib/s3cp/version.rb CHANGED
@@ -16,5 +16,5 @@
16
16
  # the License.
17
17
 
18
18
  module S3CP
19
- VERSION = "1.1.6"
19
+ VERSION = "1.1.7"
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: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 6
10
- version: 1.1.6
9
+ - 7
10
+ version: 1.1.7
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: 2012-10-10 00:00:00 Z
18
+ date: 2012-10-18 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  prerelease: false