hako-vault 0.1.0 → 0.1.1

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: cf70c15a31f7184e3148c2110a09431ed3214bf9
4
- data.tar.gz: 437adbe0ef218c8c1e84547fcd11b8ec0ea874b3
3
+ metadata.gz: 4ab8f9cf0880782503565e24819fe1ba10a0514c
4
+ data.tar.gz: 116f4a68bc5e8195d36d96ad0b61b99ac9dc364d
5
5
  SHA512:
6
- metadata.gz: 8bac0ab7a2bd3fd492bd20653b1a9a0ddf338bedb3301a0ad11ea029301f986fbc6d186dc6133804394d660bb4164dc66166c93680e4fd9b3f8387860bdf8ecb
7
- data.tar.gz: 78ca690165b1db9d69eedd0c754a6f3c78e5c3a292e74717f704706d4723811c4574e1be05c9adba589fce22a635989cc0f302611bd44f2e983903c7b8e1fe5f
6
+ metadata.gz: 88a1f61545a4fb1fb7f4ba059ca2afc3536b373e3d760b40edca4423a1c3ea0c352d4dec3fb011a9b03bf2cbe542b5c3c3b476e64f419614c19e464f6f8160a2
7
+ data.tar.gz: 53c6bc27a8eced1ef346e394d9e6f8e5a1a1843e76392288fbeb13b65507461558351e4e3b8225b3dfc7321050999901c7973ff56b32053d2a42f966472aaad6
data/hako-vault.gemspec CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'hako-vault'
8
- spec.version = '0.1.0'
8
+ spec.version = '0.1.1'
9
9
  spec.authors = ['Kohei Suzuki']
10
10
  spec.email = ['eagletmt@gmail.com']
11
11
 
@@ -21,6 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  spec.require_paths = ['lib']
23
23
 
24
+ spec.add_dependency 'hako'
24
25
  spec.add_development_dependency 'bundler'
25
26
  spec.add_development_dependency 'rake'
26
27
  spec.add_development_dependency 'rubocop'
@@ -26,7 +26,6 @@ module Hako
26
26
  @http.use_ssl = true
27
27
  end
28
28
  @directory = options['directory']
29
- @token = ENV['VAULT_TOKEN']
30
29
  end
31
30
 
32
31
  # @param [Array<String>] variables
@@ -36,7 +35,7 @@ module Hako
36
35
  @http.start do
37
36
  variables.each do |key|
38
37
  req = Net::HTTP::Get.new("/v1/secret/#{@directory}/#{key}")
39
- req['X-Vault-Token'] = @token
38
+ req['X-Vault-Token'] = ENV['VAULT_TOKEN']
40
39
  res = @http.request(req)
41
40
  case res.code
42
41
  when '200'
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hako-vault
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kohei Suzuki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-12 00:00:00.000000000 Z
11
+ date: 2017-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: hako
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: bundler
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -90,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
104
  version: '0'
91
105
  requirements: []
92
106
  rubyforge_project:
93
- rubygems_version: 2.5.2
107
+ rubygems_version: 2.6.8
94
108
  signing_key:
95
109
  specification_version: 4
96
110
  summary: Provide variables from Vault to hako