gooddata_s3 0.1.5 → 0.1.6

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 +2 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 844e2f2a8c252fb8dd755516aa1a81f4e63e95b1
4
- data.tar.gz: cebb5fb9d9161c8f2994c11bf2e68b33c0137002
3
+ metadata.gz: aeff3493bd926408dcad4ebdd7decdc0a213a5f2
4
+ data.tar.gz: e539f1b6f69a46051ebd85a2122bd2c095735610
5
5
  SHA512:
6
- metadata.gz: a89d4aa9251b94f8d3a0d6fa07410cf227c0d9bd07c2d8948d94af713f03676f91f1e10e7e446a2347b7d6d411e751e359e4ff8420659dbb4b65b63583d26bbb
7
- data.tar.gz: 9b8d8b8388e379e31483cc8509dcc51337857081721d8236d3e763e0a83ca57ddfde6b79933f7bb1d0975b3186e723cca057ab8c9aeb3d3166978473ea19eb8d
6
+ metadata.gz: c76400a1007b3f54a18dcd1ca9029b0182867e348579631446126b9e658fe74e7cf007f841e9752de712cf67cf352175745cdf17c92e72cd74584924ed57fd2a
7
+ data.tar.gz: 685520bac7855f564cead88754f373771bd61458a4377f0e997f005ab1ff1f247a5ae3e6d9628f167d19bee47248b61c66a9b1a4af8df359d3ed1ad6aa2d9526
@@ -165,6 +165,7 @@ class GoodDataS3::Client
165
165
  file = config[:file] || 'gooddata_connector_config.json'
166
166
 
167
167
  if self.exists? file
168
+
168
169
  json = JSON.parse(self.download(file), :symbolize_names => true)
169
170
 
170
171
  File.open(file,'w'){ |f| JSON.dump(json, f) }
@@ -227,7 +228,7 @@ class GoodDataS3::Client
227
228
 
228
229
  def exists? file
229
230
  begin
230
- @s3.get_object(bucket_name: @bucket_name, key:"/#{file}")
231
+ @s3.get_object(bucket_name: @bucket_name, key:file)
231
232
  true
232
233
  rescue AWS::S3::Errors::NoSuchKey
233
234
  false
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.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick McConlogue