ocean-rails 8.0.2 → 8.0.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
  SHA256:
3
- metadata.gz: 2a34d656c24a5d14de4524295408fa1c2a74acb0708cecdc013200a90c23cea4
4
- data.tar.gz: 162a00e702c1b6373c5d344ad6cc552f262c46641b7867ebba7a6e1300951f02
3
+ metadata.gz: b2181b0250ab237fe08174165f32ad5bacd73ee8560f022fec1325e31a55a553
4
+ data.tar.gz: 958ab30c39b9e145306ca9d81745376151504d39ac079c9b76f56ed2a0a0e5da
5
5
  SHA512:
6
- metadata.gz: a5cb8d581e3b6f5857bb67e5d977b0277d475af97d366199935080d1b6b9e5bd637f4dd75c542fe5f334e00a31a70792b688dec5b093eecb2588a3d8d915bcb6
7
- data.tar.gz: 515d060a0e40536b28be12b2afa1d0bd849f8f3c6e82ea6a5d295399132305b896355bc22b576dce42d4087d369c8ba167daa41bdfc493e4b910458876a54486
6
+ metadata.gz: 21a7a8933924b844f53aabf6076322f2b77998d3939e832d9890b06ec6f0ad4f2b4c5e3eafedfebc1dd3a496f56e74220fa83f5930c65cbdacf76642bb4cf8ba
7
+ data.tar.gz: cc1a14177a35e31cd617538b95ea50ac44ed64a936840f19b96b8e24f777cad4d8551fa3fc2a915534611f52c07658a0369b01c5862d6b4e8aaee53236391838
@@ -166,9 +166,11 @@ def aws_config(endpoint: nil, **keywords)
166
166
  }.merge(keywords)
167
167
  else
168
168
  raise "AWS_REGION not defined" unless ENV['AWS_REGION'].present?
169
+ credential_handler = ENV['AWS_CONFIG_LOCAL_MODE'].present? ? Aws::InstanceProfileCredentials :
170
+ Aws::ECSCredentials
169
171
  {
170
172
  region: ENV['AWS_REGION'],
171
- credentials: Aws::ECSCredentials.new
173
+ credentials: credential_handler.new
172
174
  }
173
175
  end
174
176
  end
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "8.0.2"
2
+ VERSION = "8.0.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: 8.0.2
4
+ version: 8.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson