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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 83380246e15ea67f6eb6dc297a36213af8bf79d2
4
- data.tar.gz: c70bf3337dad0f1e1e2b79093028f2e59ee4b7b1
3
+ metadata.gz: 1433e19bf211ca836fc82aaae3a7c2214f95af13
4
+ data.tar.gz: b6ad967e2059f22698d4511fa20adebdd123b87d
5
5
  SHA512:
6
- metadata.gz: 516adae2c3ab2decc1770ccaf697ce85573a5105d866a52c7a48aee459fb234438e16c71e5bdc5024fa4d9d9a75dea56f135abeff42187d158beb71069d2567b
7
- data.tar.gz: 96cd43b5bcaf4502cf22068a562a62925a1193fcaa85978c49fd0ea7633cacc919e14b90eb858624b61514fc9947c865cade3bd4a615bc00b11d1dc7e390f307
6
+ metadata.gz: 3c939eb3523faa899fe2e3503273d3f6f076acb0e049f1fda2de28b26639885de71dd21f37a5196690b066dfce3b2b85afde5bab44ec3283ddedbadffc8cb1b1
7
+ data.tar.gz: d9ba3380faec5428f0274ef1c0dc1597d91e940140694c4561a09b28a0ab59d7d971c01a41718bd7da98ad2fa62888ddf498c3a3c59d0d09a290c5bbd2125a6e
data/Dockerfile CHANGED
@@ -1,5 +1,8 @@
1
- FROM ruby:2.3-alpine
1
+ FROM ruby:2.4-alpine
2
2
 
3
- RUN gem install yaml_vault --no-document
3
+ ARG version
4
+
5
+ RUN gem install yaml_vault --no-document --version ${version} \
6
+ && gem install aws-sdk-kms google-api-client
4
7
 
5
8
  ENTRYPOINT ["yaml_vault"]
data/Gemfile CHANGED
@@ -3,5 +3,5 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in yaml_vault.gemspec
4
4
  gemspec
5
5
 
6
- gem "aws-sdk"
6
+ gem "aws-sdk-kms"
7
7
  gem "google-api-client"
@@ -1,3 +1,3 @@
1
1
  module YamlVault
2
- VERSION = "1.0.0.beta"
2
+ VERSION = "1.0.0.beta2"
3
3
  end
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
- require 'aws-sdk'
117
- rescue LoadError
118
- puts "Please install aws-sdk (>= 2.0)"
119
- exit 1
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yaml_vault
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta
4
+ version: 1.0.0.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - joker1007