kms-env 1.0.4 → 1.0.5

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/kms-env.rb +2 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 40ae1fe13c7a28174ba7b17d34a244c81ce39a30
4
- data.tar.gz: 0d4102f287183f7a7ff28a910c322c5cc98c1f66
3
+ metadata.gz: f1bcd4fc810cc4418c3fef1fc2ba923feb8d41e7
4
+ data.tar.gz: 6653dc982de2369f7a8e29858eb31a615195746c
5
5
  SHA512:
6
- metadata.gz: 2908b13e133f8ec0b7ccb7cb9fe605790852f0a26aa3eec4f86f7527a9a1f157e782ec7b8c241590477f27c3d1395690c50a2732f5ef5962ea0b5c19b86522a5
7
- data.tar.gz: 0b812170d9bc157de71c7d219c70face17e99811a0d3695a3c47953a044912bc4436dc160cfca0dee9b14fb5f9ba56cf36c784f02b0f74906115275b101ed906
6
+ metadata.gz: 9757f13c162d26464b9be0b74275d1ca0f2bbefdd0f62134ac67eb95178dd87cf5fb3bbe9e756c96754b9f3cf0b292ab7980a983db3f2c876ccb3e4303f31464
7
+ data.tar.gz: 68e7579e40863167d4116d1bdcc61cd1e607f157ada412b07c8a0e952a01962169674ee83e456a4b826e1879b49a04689fc587fe9553a50ed534d0fedaa5a14c
@@ -39,7 +39,8 @@ module KmsEnv
39
39
  end
40
40
 
41
41
  def set_decrypted_env_for(key)
42
- ENV[plaintext_key_for(key)] = kms_decrypt_blob(ciphertext_blob_for(ENV[key])).plaintext
42
+ data = kms_decrypt_blob(ciphertext_blob_for(ENV[key]))
43
+ ENV[plaintext_key_for(key)] = data.plaintext if data
43
44
  end
44
45
 
45
46
  def kms_key_matcher
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kms-env
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Drew Stokes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-18 00:00:00.000000000 Z
11
+ date: 2015-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk