gooddata_s3 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gooddata_s3/client.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e77ffb3aaf2b45f7edb414b907f2b2456cd1969f
|
4
|
+
data.tar.gz: 0bc0a3aebd7b2ef26a76f6a5034f5156cf4f5035
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0eea83968fdb43589cf429f5a62874b81c5058313cb143e0ea5d85056c601f5d3a262463eba2132a16129253b155a3b6463364c2905357c59f4eafcc1bca750
|
7
|
+
data.tar.gz: 673182a493a8172087dbf92fda4479f56da330cd85cc6e1bd2e6fc4aabfe1ecc419253212bc08fa71384170e350e0f0a4409c01cad6033f1aa6705c3922511e0
|
data/lib/gooddata_s3/client.rb
CHANGED
@@ -102,10 +102,10 @@ class GoodDataS3::Client
|
|
102
102
|
|
103
103
|
raise 'Could not find local file...' unless File.exists? local_file
|
104
104
|
|
105
|
-
if directory
|
106
|
-
key = directory+"/"+local_file
|
107
|
-
else
|
105
|
+
if directory.empty?
|
108
106
|
key = local_file
|
107
|
+
else
|
108
|
+
key = directory+"/"+local_file
|
109
109
|
end
|
110
110
|
|
111
111
|
puts "#{Time.now} => Uploading local file \"#{local_file}\" to S3 Bucket \"#{@bucket_name}\" (\"#{key}\")"
|