storagy 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 215f373efab9ebcf145b1d1acaf749565941a5fd
4
- data.tar.gz: ded2b1d63b22d9acecb482c4e9ea085b67e37a93
3
+ metadata.gz: db2b14c95aec03f06665de69287759de25c7a524
4
+ data.tar.gz: 80cff5019a96058e75795009244b1bfe0de9dc3d
5
5
  SHA512:
6
- metadata.gz: 0e75fe1f63754d33820ff830f3309b8f0bf5f0df4d53352b64292e3e4c3b27f5a008fcfa1719054f0e26ceea78d6d34bd0b7a60c32eb4cca76c165bb83b195f1
7
- data.tar.gz: fdb094a778a6e941ac827cda92111a21dedbf8a78e67bacf56ab2a7c1451f67d2fb051288a8f8dc4bdad398feb1342c871d44ce5fcef514aac6f71a690698196
6
+ metadata.gz: e748851ba8a34557395dd0999f6180ca4816cce9f041b0f18c1d610709e44b0667ce6486ac487a9b614728d18005cafbb3f9318d9dbd22fe3b9d770f4a5d24fb
7
+ data.tar.gz: 77b4ce31c8b4630adecc70b9fa07b42988daf231065430628834e0f7065caaf6f60463afc30687f772548979dc7adf85ca80f2a080d50d172e0e13477b7f53ff
@@ -1,3 +1,3 @@
1
1
  module Storagy
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/storagy.rb CHANGED
@@ -5,7 +5,7 @@ module Storagy
5
5
  class BucketUrlError < StandardError ; end
6
6
 
7
7
  def self.set_aws_credentials_from_storagy
8
- if ENV['STORAGY_S3_BUCKET_URL']
8
+ if ENV['STORAGY_S3_BUCKET_URL'] and !(ENV['AWS_ACCESS_KEY_ID'] || ENV['AWS_SECRET_ACCESS_KEY'] )
9
9
  ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY'] = get_aws_storagy_credentials
10
10
  else
11
11
  raise BucketUrlError, "Storagy bucket url STORAGY_S3_URL is not configured.\nMake sure you provisioned Storagy successfully."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: storagy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nikolay Samokhin