yaml_vault 1.0.0.beta → 1.0.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile +5 -2
- data/Gemfile +1 -1
- data/lib/yaml_vault/version.rb +1 -1
- data/lib/yaml_vault.rb +10 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1433e19bf211ca836fc82aaae3a7c2214f95af13
|
4
|
+
data.tar.gz: b6ad967e2059f22698d4511fa20adebdd123b87d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c939eb3523faa899fe2e3503273d3f6f076acb0e049f1fda2de28b26639885de71dd21f37a5196690b066dfce3b2b85afde5bab44ec3283ddedbadffc8cb1b1
|
7
|
+
data.tar.gz: d9ba3380faec5428f0274ef1c0dc1597d91e940140694c4561a09b28a0ab59d7d971c01a41718bd7da98ad2fa62888ddf498c3a3c59d0d09a290c5bbd2125a6e
|
data/Dockerfile
CHANGED
data/Gemfile
CHANGED
data/lib/yaml_vault/version.rb
CHANGED
data/lib/yaml_vault.rb
CHANGED
@@ -113,10 +113,16 @@ module YamlVault
|
|
113
113
|
class KMS
|
114
114
|
def initialize(key_id, region: nil, aws_access_key_id: nil, aws_secret_access_key: nil)
|
115
115
|
begin
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
116
|
+
begin
|
117
|
+
require 'aws-sdk-kms'
|
118
|
+
rescue LoadError
|
119
|
+
begin
|
120
|
+
require 'aws-sdk'
|
121
|
+
rescue LoadError
|
122
|
+
puts "Please install aws-sdk v2 or aws-sdk-kms (aws-sdk v3)"
|
123
|
+
exit 1
|
124
|
+
end
|
125
|
+
end
|
120
126
|
end
|
121
127
|
options = {}
|
122
128
|
options[:region] = region if region
|