simple-s3 1.0.9 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -70,9 +70,13 @@ class SimpleS3
70
70
 
71
71
  files.each do |file|
72
72
  path = File.expand_path(file)
73
- puts "Simple-S3: Uploading #{file} as '#{file}' to '#{bucket}'"
73
+ final_file = file
74
+ if final_file =~ /^.\//
75
+ file_file = final_file[2..final_file.length-1]
76
+ end
77
+ puts "Simple-S3: Uploading #{file} as '#{final_file}' to '#{bucket}'"
74
78
  AWS::S3::S3Object.store(
75
- file,
79
+ final_file,
76
80
  File.open(path),
77
81
  bucket,
78
82
  metadata
@@ -1,3 +1,3 @@
1
1
  class SimpleS3
2
- VERSION = "1.0.9"
2
+ VERSION = "1.0.10"
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
- - 9
9
- version: 1.0.9
8
+ - 10
9
+ version: 1.0.10
10
10
  platform: ruby
11
11
  authors:
12
12
  - Matias Niemela