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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gooddata_s3/client.rb +3 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aeff3493bd926408dcad4ebdd7decdc0a213a5f2
4
- data.tar.gz: e539f1b6f69a46051ebd85a2122bd2c095735610
3
+ metadata.gz: e77ffb3aaf2b45f7edb414b907f2b2456cd1969f
4
+ data.tar.gz: 0bc0a3aebd7b2ef26a76f6a5034f5156cf4f5035
5
5
  SHA512:
6
- metadata.gz: c76400a1007b3f54a18dcd1ca9029b0182867e348579631446126b9e658fe74e7cf007f841e9752de712cf67cf352175745cdf17c92e72cd74584924ed57fd2a
7
- data.tar.gz: 685520bac7855f564cead88754f373771bd61458a4377f0e997f005ab1ff1f247a5ae3e6d9628f167d19bee47248b61c66a9b1a4af8df359d3ed1ad6aa2d9526
6
+ metadata.gz: c0eea83968fdb43589cf429f5a62874b81c5058313cb143e0ea5d85056c601f5d3a262463eba2132a16129253b155a3b6463364c2905357c59f4eafcc1bca750
7
+ data.tar.gz: 673182a493a8172087dbf92fda4479f56da330cd85cc6e1bd2e6fc4aabfe1ecc419253212bc08fa71384170e350e0f0a4409c01cad6033f1aa6705c3922511e0
@@ -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}\")"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gooddata_s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick McConlogue