rubyconfig-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
  SHA256:
3
- metadata.gz: 9d90484b02d5150c6c0b8904b0a4900b3a0bb1d7e83a53f863c5aee656976ea1
4
- data.tar.gz: f81e33ba21ff66e46ac33d9ec0fbb5a0cb6a795798dd4966d45be0945b9a1aa4
3
+ metadata.gz: 7e60f9ebe0674cae5f146780f320f0a330c537191184c5b58fcb2c65a4ddc88e
4
+ data.tar.gz: '08376b32e903d4a003708b0ca8589793ad828e54997ec298bb707319fcc88c64'
5
5
  SHA512:
6
- metadata.gz: 804d3baeb799ca7880a2dc8d2bfa818c48b56cec25f183ff00fb55a08c2b04bd17b50b0f74127de7368cdb15a8b3aa1334a283b3fcc7b3e56777c4c2aac3f1c3
7
- data.tar.gz: 1eacd15b46baba5f31449f083f7454057e0d63faffaf7df4a2484968cb5e4240e8b713a6f132be171d663b99472408f98f49ce519484250efe8ecdf2e48805c7
6
+ metadata.gz: 056cfd2e9f03fce33a880365e5142d3c57e79c02197be0cf6b5c13120a76cc0b14231f48de60b5426fa4ddacf536e7332d9749808cc0018e69db38051e8a9141
7
+ data.tar.gz: 4937f17752231b1b943984d3712a23ba02ec2f4ef9416b1c1005ecc6ff89b486449ab93adbde720b50ba0ad2d421a8de1c2d32be08aa72a62d6d4baa87369903
@@ -3,13 +3,14 @@ require 'vault'
3
3
  module Config
4
4
  module Sources
5
5
  class VaultSource
6
- attr_accessor :kv
6
+ attr_accessor :kv, :root
7
7
  attr_reader :paths, :client
8
8
 
9
9
  def initialize(opts = {})
10
10
  client_opts = opts.clone
11
11
  @kv = client_opts.delete(:kv) || ''
12
12
  @paths = client_opts.delete(:paths) || []
13
+ @root = client_opts.delete(:root)
13
14
  @client = Vault::Client.new(client_opts)
14
15
  end
15
16
 
@@ -76,7 +77,11 @@ module Config
76
77
  end
77
78
  end
78
79
 
79
- root
80
+ if @root
81
+ { @root => root }
82
+ else
83
+ root
84
+ end
80
85
  end
81
86
 
82
87
  end
@@ -1,5 +1,5 @@
1
1
  module Rubyconfig
2
2
  module Vault
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
@@ -0,0 +1,2 @@
1
+ require "config/vault/version"
2
+ require "config/vault/vault_source"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyconfig-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
  - David Young
@@ -24,6 +24,62 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.16.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: config
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 4.0.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 4.0.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '12.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '12.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: pry
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
27
83
  description:
28
84
  email:
29
85
  - da.young@f5.com
@@ -31,9 +87,9 @@ executables: []
31
87
  extensions: []
32
88
  extra_rdoc_files: []
33
89
  files:
34
- - lib/rubyconfig/vault.rb
35
- - lib/rubyconfig/vault/vault_source.rb
36
- - lib/rubyconfig/vault/version.rb
90
+ - lib/config/vault.rb
91
+ - lib/config/vault/vault_source.rb
92
+ - lib/config/vault/version.rb
37
93
  homepage: https://github.com/CrunchwrapSupreme/rubyconfig-vault
38
94
  licenses: []
39
95
  metadata:
@@ -48,7 +104,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
48
104
  requirements:
49
105
  - - ">="
50
106
  - !ruby/object:Gem::Version
51
- version: 2.3.0
107
+ version: 2.6.0
52
108
  required_rubygems_version: !ruby/object:Gem::Requirement
53
109
  requirements:
54
110
  - - ">="
@@ -1,2 +0,0 @@
1
- require "rubyconfig/vault/version"
2
- require "rubyconfig/vault/vault_source"