simple-s3 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -57,7 +57,7 @@ class SimpleS3
57
57
  exclude.each do |ex|
58
58
  found = true if file.start_with?(ex) || ex == name
59
59
  end
60
- files.push(path) unless found
60
+ files.push(file) unless found
61
61
  end
62
62
  end
63
63
 
@@ -69,11 +69,11 @@ class SimpleS3
69
69
  )
70
70
 
71
71
  files.each do |file|
72
- base_name = File.basename(file)
72
+ path = File.expand_path(file)
73
73
  puts "Simple-S3: Uploading #{file} as '#{base_name}' to '#{bucket}'"
74
74
  AWS::S3::S3Object.store(
75
- base_name,
76
- File.open(file),
75
+ file,
76
+ File.open(path),
77
77
  bucket,
78
78
  metadata
79
79
  )
@@ -1,3 +1,3 @@
1
1
  class SimpleS3
2
- VERSION = "1.0.6"
2
+ VERSION = "1.0.7"
3
3
  end
data/simple-s3.gem CHANGED
Binary file
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 6
9
- version: 1.0.6
8
+ - 7
9
+ version: 1.0.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Matias Niemela