ruby_vault 0.1.0.pre.15 → 0.1.0.pre.17

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: bddf14033309fa193d2c3698c85cc7e6ea9f9c50782f1d41a4a6bf08c076f11d
4
- data.tar.gz: c97613de592cc26b0fbd46b10f28dd54f44d9488be21ff1a15e9ec97a9083757
3
+ metadata.gz: 81a4d4230f6c90465ecdda5352a87761048514210985269092563e2d4348e856
4
+ data.tar.gz: 00aadd9de00b2e166f52643a936c9532a3f21fa76b7b337cccb68f830840e835
5
5
  SHA512:
6
- metadata.gz: 1efad990fd49906c92ac0f40199a878d9f28af6ad0d33658b223d3fd654bec8c319016940eaa1d82139ee7085a2628246ec6f522aba6cffe00e22bf75a971c08
7
- data.tar.gz: 36c90412e0722cd2fa3bd81e9fc4e0ed6ceea4dc43ef9d61f7cb22728be97d1b8f5e81c18bd501a965ff38b239f4689653d4b31b6567484583135d7630cee0f6
6
+ metadata.gz: 553d1580376490702879831400b89921c9856583ce0ae2e03fd87a77c77798c50fae47ced9ba4c79e185e10433165f2f52630e9673ac7bb514efb8bf6fb9be5e
7
+ data.tar.gz: e61a204c78e62e5f894967513a0fcdf79d75f558026bc32150f65b6224572704bdec039c1c9bd316e63739a9915f9a4598a71563344a43c235816a2f258d5ca6
data/Gemfile.lock CHANGED
@@ -1,33 +1,33 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_vault (0.1.0.pre.15)
4
+ ruby_vault (0.1.0.pre.17)
5
5
  immutable-struct (~> 2.4)
6
6
  lino (~> 3.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (7.0.3.1)
11
+ activesupport (7.0.4)
12
12
  concurrent-ruby (~> 1.0, >= 1.0.2)
13
13
  i18n (>= 1.6, < 2)
14
14
  minitest (>= 5.1)
15
15
  tzinfo (~> 2.0)
16
- addressable (2.8.0)
17
- public_suffix (>= 2.0.2, < 5.0)
16
+ addressable (2.8.1)
17
+ public_suffix (>= 2.0.2, < 6.0)
18
18
  ast (2.4.2)
19
19
  coderay (1.1.3)
20
20
  colored2 (3.1.2)
21
21
  concurrent-ruby (1.1.10)
22
22
  diff-lcs (1.5.0)
23
23
  docile (1.4.0)
24
- excon (0.92.4)
25
- faker (2.22.0)
24
+ excon (0.95.0)
25
+ faker (3.1.0)
26
26
  i18n (>= 1.8.11, < 2)
27
- faraday (2.4.0)
28
- faraday-net_http (~> 2.0)
27
+ faraday (2.7.2)
28
+ faraday-net_http (>= 2.0, < 3.1)
29
29
  ruby2_keywords (>= 0.0.4)
30
- faraday-net_http (2.1.0)
30
+ faraday-net_http (3.0.2)
31
31
  ffi (1.15.5)
32
32
  formatador (1.1.0)
33
33
  gem-release (2.2.2)
@@ -50,8 +50,8 @@ GEM
50
50
  i18n (1.12.0)
51
51
  concurrent-ruby (~> 1.0)
52
52
  immutable-struct (2.4.1)
53
- json (2.6.2)
54
- lino (3.0.0)
53
+ json (2.6.3)
54
+ lino (3.1.0)
55
55
  hamster (~> 3.0)
56
56
  open4 (~> 1.3)
57
57
  listen (3.7.1)
@@ -59,7 +59,7 @@ GEM
59
59
  rb-inotify (~> 0.9, >= 0.9.10)
60
60
  lumberjack (1.2.8)
61
61
  method_source (1.0.0)
62
- minitest (5.16.2)
62
+ minitest (5.16.3)
63
63
  nenv (0.3.0)
64
64
  notiffany (0.1.3)
65
65
  nenv (~> 0.1)
@@ -69,20 +69,20 @@ GEM
69
69
  sawyer (~> 0.9)
70
70
  open4 (1.3.4)
71
71
  parallel (1.22.1)
72
- parser (3.1.2.0)
72
+ parser (3.1.3.0)
73
73
  ast (~> 2.4.1)
74
74
  pry (0.14.1)
75
75
  coderay (~> 1.1)
76
76
  method_source (~> 1.0)
77
- public_suffix (4.0.7)
77
+ public_suffix (5.0.1)
78
78
  rainbow (3.1.1)
79
79
  rake (13.0.6)
80
- rake_circle_ci (0.9.0)
80
+ rake_circle_ci (0.11.0)
81
81
  colored2 (~> 3.1)
82
82
  excon (~> 0.72)
83
83
  rake_factory (~> 0.23)
84
84
  sshkey (~> 2.0)
85
- rake_factory (0.29.0)
85
+ rake_factory (0.31.0)
86
86
  activesupport (>= 4)
87
87
  rake (~> 13.0)
88
88
  rake_github (0.9.0)
@@ -97,49 +97,49 @@ GEM
97
97
  colored2 (~> 3.1)
98
98
  rake_factory (~> 0.23)
99
99
  sshkey (~> 2.0)
100
- rb-fsevent (0.11.1)
100
+ rb-fsevent (0.11.2)
101
101
  rb-inotify (0.10.1)
102
102
  ffi (~> 1.0)
103
- regexp_parser (2.5.0)
103
+ regexp_parser (2.6.1)
104
104
  rexml (3.2.5)
105
- rspec (3.11.0)
106
- rspec-core (~> 3.11.0)
107
- rspec-expectations (~> 3.11.0)
108
- rspec-mocks (~> 3.11.0)
109
- rspec-core (3.11.0)
110
- rspec-support (~> 3.11.0)
111
- rspec-expectations (3.11.0)
105
+ rspec (3.12.0)
106
+ rspec-core (~> 3.12.0)
107
+ rspec-expectations (~> 3.12.0)
108
+ rspec-mocks (~> 3.12.0)
109
+ rspec-core (3.12.0)
110
+ rspec-support (~> 3.12.0)
111
+ rspec-expectations (3.12.1)
112
112
  diff-lcs (>= 1.2.0, < 2.0)
113
- rspec-support (~> 3.11.0)
114
- rspec-mocks (3.11.1)
113
+ rspec-support (~> 3.12.0)
114
+ rspec-mocks (3.12.1)
115
115
  diff-lcs (>= 1.2.0, < 2.0)
116
- rspec-support (~> 3.11.0)
117
- rspec-support (3.11.0)
118
- rubocop (1.33.0)
116
+ rspec-support (~> 3.12.0)
117
+ rspec-support (3.12.0)
118
+ rubocop (1.41.1)
119
119
  json (~> 2.3)
120
120
  parallel (~> 1.10)
121
- parser (>= 3.1.0.0)
121
+ parser (>= 3.1.2.1)
122
122
  rainbow (>= 2.2.2, < 4.0)
123
123
  regexp_parser (>= 1.8, < 3.0)
124
124
  rexml (>= 3.2.5, < 4.0)
125
- rubocop-ast (>= 1.19.1, < 2.0)
125
+ rubocop-ast (>= 1.23.0, < 2.0)
126
126
  ruby-progressbar (~> 1.7)
127
127
  unicode-display_width (>= 1.4.0, < 3.0)
128
- rubocop-ast (1.20.1)
128
+ rubocop-ast (1.24.0)
129
129
  parser (>= 3.1.1.0)
130
130
  rubocop-rake (0.6.0)
131
131
  rubocop (~> 1.0)
132
- rubocop-rspec (2.12.1)
133
- rubocop (~> 1.31)
132
+ rubocop-rspec (2.16.0)
133
+ rubocop (~> 1.33)
134
134
  ruby-progressbar (1.11.0)
135
135
  ruby2_keywords (0.0.5)
136
- ruby_gpg2 (0.8.0)
137
- lino (>= 1.5)
136
+ ruby_gpg2 (0.10.0)
137
+ lino (~> 3.0)
138
138
  sawyer (0.9.2)
139
139
  addressable (>= 2.3.5)
140
140
  faraday (>= 0.17.3, < 3)
141
141
  shellany (0.0.1)
142
- simplecov (0.21.2)
142
+ simplecov (0.22.0)
143
143
  docile (~> 1.1)
144
144
  simplecov-html (~> 0.11)
145
145
  simplecov_json_formatter (~> 0.1)
@@ -150,7 +150,7 @@ GEM
150
150
  thor (1.2.1)
151
151
  tzinfo (2.0.5)
152
152
  concurrent-ruby (~> 1.0)
153
- unicode-display_width (2.2.0)
153
+ unicode-display_width (2.3.0)
154
154
  webrick (1.7.0)
155
155
  yard (0.9.28)
156
156
  webrick (~> 1.7.0)
@@ -182,4 +182,4 @@ DEPENDENCIES
182
182
  yard
183
183
 
184
184
  BUNDLED WITH
185
- 2.3.19
185
+ 2.4.1
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'base'
4
+
5
+ module RubyVault
6
+ module Commands
7
+ class List < Base
8
+ # @!visibility private
9
+ def subcommands
10
+ %w[list]
11
+ end
12
+
13
+ # @!visibility private
14
+ def options
15
+ super +
16
+ Options::Sets::HTTP_OPTIONS +
17
+ Options::Sets::OUTPUT_OPTIONS
18
+ end
19
+
20
+ # @!visibility private
21
+ def arguments(parameters)
22
+ [parameters[:path]].compact.flatten
23
+ end
24
+ end
25
+ end
26
+ end
@@ -21,7 +21,7 @@ module RubyVault
21
21
 
22
22
  # @!visibility private
23
23
  def arguments(parameters)
24
- [parameters[:path], parameters[:data]].flatten
24
+ [parameters[:path], parameters[:data]].compact.flatten
25
25
  end
26
26
  end
27
27
  end
@@ -2,6 +2,7 @@
2
2
 
3
3
  require_relative 'commands/login'
4
4
  require_relative 'commands/write'
5
+ require_relative 'commands/list'
5
6
 
6
7
  module RubyVault
7
8
  module Commands
@@ -15,7 +15,7 @@ module RubyVault
15
15
  end
16
16
 
17
17
  def render
18
- resolve.nil? ? nil : resolve.to_s
18
+ resolve&.to_s
19
19
  end
20
20
 
21
21
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyVault
4
- VERSION = '0.1.0.pre.15'
4
+ VERSION = '0.1.0.pre.17'
5
5
  end
data/lib/ruby_vault.rb CHANGED
@@ -31,6 +31,11 @@ module RubyVault
31
31
  parameters, invocation_options)
32
32
  end
33
33
 
34
+ def list(parameters = {}, invocation_options = {})
35
+ exec(RubyVault::Commands::List,
36
+ parameters, invocation_options)
37
+ end
38
+
34
39
  private
35
40
 
36
41
  def exec(command_class, parameters, invocation_options)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_vault
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.15
4
+ version: 0.1.0.pre.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - InfraBlocks Maintainers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-08 00:00:00.000000000 Z
11
+ date: 2022-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: immutable-struct
@@ -295,6 +295,7 @@ files:
295
295
  - lib/ruby_vault.rb
296
296
  - lib/ruby_vault/commands.rb
297
297
  - lib/ruby_vault/commands/base.rb
298
+ - lib/ruby_vault/commands/list.rb
298
299
  - lib/ruby_vault/commands/login.rb
299
300
  - lib/ruby_vault/commands/write.rb
300
301
  - lib/ruby_vault/errors.rb