ocean-rails 2.4.2 → 2.4.3

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: 9d4700f58e4efcefda8d03924a2f00d42767ca1b
4
- data.tar.gz: 6e471c7095d2471839111c092ecbd0d1656597e4
3
+ metadata.gz: e70e3b39c27f4d8c554010cf315b628f02b374fd
4
+ data.tar.gz: 929c2dcb66f8b56a5c913dd3ffb3015924254b7a
5
5
  SHA512:
6
- metadata.gz: cb3406dd08bc094045841d5bde5bed442c233b0468834ea335c9075ac5fd02e36eec531ec2ca7d9a55428b59f9654e32724df731f68a7349a9c4f497c8694c59
7
- data.tar.gz: 0354d7eac1d60908a00ce514aa0dd6c3fe0c9376f046c3252347569dbef6ebb0d2778421e569d889a788fb462daaef7464d33b135fdf232442e58d07393609de
6
+ metadata.gz: d4be7fdc2b0ebf0ad7806786cfb5bf9faf0b953a25f5c592194b7cfe0115e2178e2b10e5fd9636ee50a11de52975b7b5d823494d35ff5687f304403a5c8b162b
7
+ data.tar.gz: 8a6879c2ffa790094faa5679e2ce00722d9ed3b8fd0d51ac0dc35689b46c9aa72aafc8b2d64d1865edc58609596ad9c46cf9e3a1514b4fa4e374df468c89a131
@@ -2,8 +2,8 @@
2
2
  if (ENV['AWS_ACCESS_KEY_ID'].present? &&
3
3
  ENV['AWS_SECRET_ACCESS_KEY'].present? &&
4
4
  ENV['AWS_REGION'].present?)
5
- AWS.config if defined? AWS
6
- Aws.config if defined? Aws
5
+ #AWS.config if defined? AWS
6
+ #Aws.config if defined? Aws
7
7
  else
8
8
 
9
9
  # The is the example file
@@ -24,8 +24,11 @@ else
24
24
  # If there is a file to process, do so
25
25
  if f
26
26
  options = YAML.load(File.read(f))[Rails.env]
27
- AWS.config options if defined? AWS
28
- Aws.config = options if defined? Aws
27
+ ENV['AWS_ACCESS_KEY_ID'] = options[:access_key_id] || options['access_key_id']
28
+ ENV['AWS_SECRET_ACCESS_KEY'] = options[:secret_access_key] || options['secret_access_key']
29
+ ENV['AWS_REGION'] = options[:region] || options['region']
30
+ #AWS.config options if defined? AWS
31
+ #Aws.config = options if defined? Aws
29
32
  else
30
33
  # Otherwise print an error message and abort.
31
34
  puts
data/lib/ocean/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "2.4.2"
2
+ VERSION = "2.4.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocean-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.2
4
+ version: 2.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson