miasma-aws 0.3.16 → 0.3.18

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: 95515a5bf395615f1d2f89b7d049ba5a60f341517c5e59d0df7b6f7910704e5a
4
- data.tar.gz: 5b724ae5ebb62fdca6438dee03097145886c825a5fbfdb9d7a6050890d555745
3
+ metadata.gz: 80283cd6d47264eb9b6eaaf85f7b426ca1beb2e25d7edd00d7406f2dc9deb63e
4
+ data.tar.gz: 0e8eef5ffc42b88daa751e0cf52ecd79122b94fe3c58dc4515957d06f09b9fd4
5
5
  SHA512:
6
- metadata.gz: 8d836ceabbb5d77af1ad9fc3e8d03459c1cc929c9759ac046d60d5b73d7b48bf0d2efc4d4388db386feee908470d217f3492219c14515563cd3da4a5cf2456e3
7
- data.tar.gz: f7dd8c4fcc5ad57a63ab7381054d7726be56ec9235328244188798d0836e0e309c3b1dda99be24768ec20ef4a0e7f476f15d78c59709ad7564dc1678aa17f70e
6
+ metadata.gz: 73a7cf2d4cf0b2f950be4c198d2c927396b3db36334cdd1fe66a77dea9f57f82e73a6b3110154481397665432d92287a2af033440dd94b38f7fee1a2d33d49d7
7
+ data.tar.gz: 64d746a64035c4c95400fd5cb88dc9747c8e6780ca4c217c4fa27acd1d27270b638e0d23b82b8209c0dde7232bc2eeedf97ea5fb5ddaedc352a331f442597a51
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # v0.3.18
2
+ * [fix] Prevent defaults overriding attribute values (#49)
3
+
1
4
  # v0.3.16
2
5
  * [fix] Fix configuration file merging with initial credentials
3
6
 
@@ -346,7 +346,7 @@ module Miasma
346
346
  attribute :aws_sts_role_session_name, String
347
347
  attribute :aws_sts_region, String
348
348
  attribute :aws_sts_host, String
349
- attribute :aws_sts_session_token, String, :default => ENV["AWS_SESSION_TOKEN"]
349
+ attribute :aws_sts_session_token, String
350
350
  attribute :aws_sts_session_token_code, [String, Proc, Method]
351
351
  attribute :aws_sts_mfa_serial_number, [String]
352
352
  attribute :aws_credentials_file, String,
@@ -444,17 +444,15 @@ module Miasma
444
444
  new_creds
445
445
  )
446
446
  new_creds = new_creds.merge(new_config_creds)
447
- creds.keys.each do |key|
448
- if creds[key] && new_creds[key].nil?
449
- new_creds[key] = creds[key]
450
- end
451
- end
447
+ # Update original data source
452
448
  creds.replace(new_creds)
453
449
  if creds[:aws_iam_instance_profile]
454
450
  self.class.const_get(:ECS_TASK_PROFILE_PATH).nil? ?
455
451
  load_instance_credentials!(creds) :
456
452
  load_ecs_credentials!(creds)
457
453
  end
454
+ # Set underlying attributes
455
+ data.replace(creds)
458
456
  true
459
457
  end
460
458
 
@@ -1,4 +1,4 @@
1
1
  module MiasmaAws
2
2
  # Current library version
3
- VERSION = Gem::Version.new("0.3.16")
3
+ VERSION = Gem::Version.new("0.3.18")
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miasma-aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.16
4
+ version: 0.3.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-06 00:00:00.000000000 Z
11
+ date: 2018-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: miasma