rake_vault 0.3.0.pre.4 → 0.3.0.pre.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 63e9bbc9dce245fb51c3b0b80e7b1a0df89a9f7e926b93fac04286fe96fd5ca4
4
- data.tar.gz: 34462ec821a307c7555f1fd47442b2127ab2487a03a7cd0c1a529dc50645de09
3
+ metadata.gz: f1cd4e9dcdb691b91260507f5a261950e2452839416c88eb6a375ba3053428b0
4
+ data.tar.gz: 583fb587fdc3c3ecc1d91f0030c74c345d4227185d640b8adc09b29f8f65a823
5
5
  SHA512:
6
- metadata.gz: 348a984ac55e4e33c80bf2c299325f04a85cf9bcef13125dffda9588cb019b40f79d1ba94aad2da4425d1c0f3c843ea8312330024a86288ae46a016b44c596d4
7
- data.tar.gz: cfb34c294885deeb7f9e4f9dbd646ec083ccadc3561aa3c076aaf2cf09944b1eea512576a9afb7bcb2d139e1cd0e93ad4649df814f01c8a1957a950ada978fd6
6
+ metadata.gz: cf86ac123d860777985cee4ce640996da656240f7c46ff068592c235aa9704eb5b0e8847a9cae642b3b7468ce7922f2b480d9531b798f15208ebd07855221885
7
+ data.tar.gz: cd8ffa6878be8ffe29d9034c0c7b4ab15e446db993751e09b79d0d78573fb8cad31db61176aee29e7748c2c441bc540c8fd0409452fd054be000c94096f6f4ec
data/Gemfile.lock CHANGED
@@ -1,17 +1,17 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_vault (0.3.0.pre.4)
4
+ rake_vault (0.3.0.pre.5)
5
5
  colored2 (~> 3.1)
6
6
  rake_dependencies (~> 3.1)
7
7
  rake_factory (~> 0.23)
8
- ruby_vault (~> 0.1.0.pre.15)
8
+ ruby_vault (~> 0.2.0.pre.5)
9
9
  vault (~> 0.17)
10
10
 
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- activesupport (7.1.1)
14
+ activesupport (7.1.3.4)
15
15
  base64
16
16
  bigdecimal
17
17
  concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -21,59 +21,62 @@ GEM
21
21
  minitest (>= 5.1)
22
22
  mutex_m
23
23
  tzinfo (~> 2.0)
24
- addressable (2.8.5)
25
- public_suffix (>= 2.0.2, < 6.0)
24
+ addressable (2.8.7)
25
+ public_suffix (>= 2.0.2, < 7.0)
26
26
  ast (2.4.2)
27
- aws-eventstream (1.2.0)
28
- aws-sigv4 (1.6.1)
27
+ aws-eventstream (1.3.0)
28
+ aws-sigv4 (1.8.0)
29
29
  aws-eventstream (~> 1, >= 1.0.2)
30
- base64 (0.1.1)
31
- bigdecimal (3.1.4)
30
+ base64 (0.2.0)
31
+ bigdecimal (3.1.8)
32
32
  colored2 (3.1.2)
33
- concurrent-ruby (1.2.2)
33
+ concurrent-ruby (1.3.3)
34
34
  connection_pool (2.4.1)
35
- diff-lcs (1.5.0)
35
+ diff-lcs (1.5.1)
36
36
  docile (1.4.0)
37
- down (5.4.1)
37
+ down (5.4.2)
38
38
  addressable (~> 2.8)
39
- drb (2.1.1)
40
- ruby2_keywords
41
- excon (0.104.0)
42
- faraday (2.7.11)
43
- base64
44
- faraday-net_http (>= 2.0, < 3.1)
45
- ruby2_keywords (>= 0.0.4)
46
- faraday-net_http (3.0.2)
39
+ drb (2.2.1)
40
+ excon (0.111.0)
41
+ faraday (2.10.0)
42
+ faraday-net_http (>= 2.0, < 3.2)
43
+ logger
44
+ faraday-net_http (3.1.0)
45
+ net-http
47
46
  gem-release (2.2.2)
48
- git (1.18.0)
47
+ git (1.19.1)
49
48
  addressable (~> 2.8)
50
49
  rchardet (~> 1.8)
51
50
  hamster (3.0.0)
52
51
  concurrent-ruby (~> 1.0)
53
- i18n (1.14.1)
52
+ i18n (1.14.5)
54
53
  concurrent-ruby (~> 1.0)
55
54
  immutable-struct (2.4.1)
56
- json (2.6.3)
55
+ json (2.7.2)
57
56
  language_server-protocol (3.17.0.3)
58
57
  lino (3.1.0)
59
58
  hamster (~> 3.0)
60
59
  open4 (~> 1.3)
60
+ logger (1.6.0)
61
61
  memfs (1.0.0)
62
62
  minitar (0.9)
63
- minitest (5.20.0)
64
- mutex_m (0.1.2)
65
- octokit (8.0.0)
63
+ minitest (5.24.1)
64
+ mutex_m (0.2.0)
65
+ net-http (0.4.1)
66
+ uri
67
+ octokit (8.1.0)
68
+ base64
66
69
  faraday (>= 1, < 3)
67
70
  sawyer (~> 0.9)
68
71
  open4 (1.3.4)
69
- parallel (1.23.0)
70
- parser (3.2.2.4)
72
+ parallel (1.25.1)
73
+ parser (3.3.4.0)
71
74
  ast (~> 2.4.1)
72
75
  racc
73
- public_suffix (5.0.3)
74
- racc (1.7.3)
76
+ public_suffix (6.0.0)
77
+ racc (1.8.0)
75
78
  rainbow (3.1.1)
76
- rake (13.1.0)
79
+ rake (13.2.1)
77
80
  rake_circle_ci (0.11.0)
78
81
  colored2 (~> 3.1)
79
82
  excon (~> 0.72)
@@ -110,54 +113,48 @@ GEM
110
113
  rake_factory (~> 0.23)
111
114
  sshkey (~> 2.0)
112
115
  rchardet (1.8.0)
113
- regexp_parser (2.8.2)
114
- rexml (3.2.6)
115
- rspec (3.12.0)
116
- rspec-core (~> 3.12.0)
117
- rspec-expectations (~> 3.12.0)
118
- rspec-mocks (~> 3.12.0)
119
- rspec-core (3.12.2)
120
- rspec-support (~> 3.12.0)
121
- rspec-expectations (3.12.3)
116
+ regexp_parser (2.9.2)
117
+ rexml (3.3.2)
118
+ strscan
119
+ rspec (3.13.0)
120
+ rspec-core (~> 3.13.0)
121
+ rspec-expectations (~> 3.13.0)
122
+ rspec-mocks (~> 3.13.0)
123
+ rspec-core (3.13.0)
124
+ rspec-support (~> 3.13.0)
125
+ rspec-expectations (3.13.1)
122
126
  diff-lcs (>= 1.2.0, < 2.0)
123
- rspec-support (~> 3.12.0)
124
- rspec-mocks (3.12.6)
127
+ rspec-support (~> 3.13.0)
128
+ rspec-mocks (3.13.1)
125
129
  diff-lcs (>= 1.2.0, < 2.0)
126
- rspec-support (~> 3.12.0)
127
- rspec-support (3.12.1)
128
- rubocop (1.57.2)
130
+ rspec-support (~> 3.13.0)
131
+ rspec-support (3.13.1)
132
+ rubocop (1.65.0)
129
133
  json (~> 2.3)
130
134
  language_server-protocol (>= 3.17.0)
131
135
  parallel (~> 1.10)
132
- parser (>= 3.2.2.4)
136
+ parser (>= 3.3.0.2)
133
137
  rainbow (>= 2.2.2, < 4.0)
134
- regexp_parser (>= 1.8, < 3.0)
138
+ regexp_parser (>= 2.4, < 3.0)
135
139
  rexml (>= 3.2.5, < 4.0)
136
- rubocop-ast (>= 1.28.1, < 2.0)
140
+ rubocop-ast (>= 1.31.1, < 2.0)
137
141
  ruby-progressbar (~> 1.7)
138
142
  unicode-display_width (>= 2.4.0, < 3.0)
139
- rubocop-ast (1.30.0)
140
- parser (>= 3.2.1.0)
141
- rubocop-capybara (2.19.0)
142
- rubocop (~> 1.41)
143
- rubocop-factory_bot (2.24.0)
144
- rubocop (~> 1.33)
143
+ rubocop-ast (1.31.3)
144
+ parser (>= 3.3.1.0)
145
145
  rubocop-rake (0.6.0)
146
146
  rubocop (~> 1.0)
147
- rubocop-rspec (2.25.0)
148
- rubocop (~> 1.40)
149
- rubocop-capybara (~> 2.17)
150
- rubocop-factory_bot (~> 2.22)
147
+ rubocop-rspec (3.0.3)
148
+ rubocop (~> 1.61)
151
149
  ruby-progressbar (1.13.0)
152
- ruby2_keywords (0.0.5)
153
150
  ruby_git_crypt (0.1.0.pre.4)
154
151
  immutable-struct (~> 2.4)
155
152
  lino (~> 3.0)
156
153
  ruby_gpg2 (0.10.0)
157
154
  lino (~> 3.0)
158
- ruby_vault (0.1.0)
155
+ ruby_vault (0.2.0.pre.5)
159
156
  immutable-struct (~> 2.4)
160
- lino (~> 3.0)
157
+ lino (>= 3.1)
161
158
  rubyzip (2.3.2)
162
159
  sawyer (0.9.2)
163
160
  addressable (>= 2.3.5)
@@ -169,10 +166,12 @@ GEM
169
166
  simplecov-html (0.12.3)
170
167
  simplecov_json_formatter (0.1.4)
171
168
  sshkey (2.0.0)
169
+ strscan (3.1.0)
172
170
  tzinfo (2.0.6)
173
171
  concurrent-ruby (~> 1.0)
174
172
  unicode-display_width (2.5.0)
175
- vault (0.18.1)
173
+ uri (0.13.0)
174
+ vault (0.18.2)
176
175
  aws-sigv4
177
176
 
178
177
  PLATFORMS
@@ -19,8 +19,8 @@ module RakeVault
19
19
 
20
20
  def self.write(address, path, role_id, secret_id)
21
21
  RubyVault.write(
22
- address: address,
23
- path: path,
22
+ address:,
23
+ path:,
24
24
  data: [role_id, secret_id].compact,
25
25
  format: 'json'
26
26
  )
@@ -10,9 +10,9 @@ module RakeVault
10
10
 
11
11
  RubyVault.login(
12
12
  method: 'oidc',
13
- auth: auth,
14
- address: address,
15
- no_print: no_print
13
+ auth:,
14
+ address:,
15
+ no_print:
16
16
  )
17
17
  end
18
18
  end
@@ -14,11 +14,11 @@ module RakeVault
14
14
 
15
15
  attr_reader :delegate
16
16
 
17
- def initialize(*args, &configuration_block)
17
+ def initialize(*args, &)
18
18
  @opts = args[0]
19
19
  @delegate =
20
20
  RakeDependencies::TaskSets::All.new(
21
- task_set_opts, &configuration_block
21
+ task_set_opts, &
22
22
  )
23
23
  end
24
24
 
@@ -37,21 +37,21 @@ module RakeVault
37
37
 
38
38
  def task_set_opts
39
39
  {
40
- namespace: namespace,
41
- dependency: dependency,
42
- version: version,
43
- path: path,
44
- type: type,
40
+ namespace:,
41
+ dependency:,
42
+ version:,
43
+ path:,
44
+ type:,
45
45
 
46
- platform_os_names: platform_os_names,
47
- platform_cpu_names: platform_cpu_names,
46
+ platform_os_names:,
47
+ platform_cpu_names:,
48
48
 
49
- uri_template: uri_template,
50
- file_name_template: file_name_template,
49
+ uri_template:,
50
+ file_name_template:,
51
51
 
52
- binary_directory: binary_directory,
52
+ binary_directory:,
53
53
 
54
- needs_fetch: needs_fetch
54
+ needs_fetch:
55
55
  }
56
56
  end
57
57
 
@@ -122,7 +122,7 @@ module RakeVault
122
122
  end
123
123
 
124
124
  def needs_fetch
125
- @needs_fetch ||= ->(_) { return !exists_with_correct_version?(binary) }
125
+ @needs_fetch ||= ->(_) { !exists_with_correct_version?(binary) }
126
126
  end
127
127
 
128
128
  def exists_with_correct_version?(binary)
@@ -43,7 +43,7 @@ module RakeVault
43
43
 
44
44
  def valid_token?(address)
45
45
  puts 'Checking for valid token...'
46
- vault_client = Vault::Client.new(address: address)
46
+ vault_client = Vault::Client.new(address:)
47
47
  vault_client.auth_token.lookup_self
48
48
  rescue Vault::HTTPClientError, Vault::HTTPServerError
49
49
  false
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RakeVault
4
- VERSION = '0.3.0.pre.4'
4
+ VERSION = '0.3.0.pre.5'
5
5
  end
data/lib/rake_vault.rb CHANGED
@@ -14,16 +14,16 @@ module RakeVault
14
14
  command_task_set.delegate
15
15
  end
16
16
 
17
- def self.define_oidc_auth_task(opts = {}, &block)
18
- RakeVault::Tasks::OidcAuth.define(opts, &block)
17
+ def self.define_oidc_auth_task(opts = {}, &)
18
+ RakeVault::Tasks::OidcAuth.define(opts, &)
19
19
  end
20
20
 
21
- def self.define_app_role_auth_task(opts = {}, &block)
22
- RakeVault::Tasks::AppRoleAuth.define(opts, &block)
21
+ def self.define_app_role_auth_task(opts = {}, &)
22
+ RakeVault::Tasks::AppRoleAuth.define(opts, &)
23
23
  end
24
24
 
25
- def self.define_login_task(opts = {}, &block)
26
- RakeVault::Tasks::Login.define(opts, &block)
25
+ def self.define_login_task(opts = {}, &)
26
+ RakeVault::Tasks::Login.define(opts, &)
27
27
  end
28
28
 
29
29
  class << self
data/rake_vault.gemspec CHANGED
@@ -34,12 +34,12 @@ Gem::Specification.new do |spec|
34
34
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
35
35
  spec.require_paths = ['lib']
36
36
 
37
- spec.required_ruby_version = '>= 2.7'
37
+ spec.required_ruby_version = '>= 3.1'
38
38
 
39
39
  spec.add_dependency 'colored2', '~> 3.1'
40
40
  spec.add_dependency 'rake_dependencies', '~> 3.1'
41
41
  spec.add_dependency 'rake_factory', '~> 0.23'
42
- spec.add_dependency 'ruby_vault', '~> 0.1.0.pre.15'
42
+ spec.add_dependency 'ruby_vault', '~> 0.2.0.pre.5'
43
43
  spec.add_dependency 'vault', '~> 0.17'
44
44
 
45
45
  spec.add_development_dependency 'activesupport'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_vault
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0.pre.4
4
+ version: 0.3.0.pre.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - InfraBlocks Maintainers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-06 00:00:00.000000000 Z
11
+ date: 2024-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colored2
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.1.0.pre.15
61
+ version: 0.2.0.pre.5
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.1.0.pre.15
68
+ version: 0.2.0.pre.5
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: vault
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -344,14 +344,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
344
344
  requirements:
345
345
  - - ">="
346
346
  - !ruby/object:Gem::Version
347
- version: '2.7'
347
+ version: '3.1'
348
348
  required_rubygems_version: !ruby/object:Gem::Requirement
349
349
  requirements:
350
350
  - - ">"
351
351
  - !ruby/object:Gem::Version
352
352
  version: 1.3.1
353
353
  requirements: []
354
- rubygems_version: 3.1.6
354
+ rubygems_version: 3.3.7
355
355
  signing_key:
356
356
  specification_version: 4
357
357
  summary: Rake tasks for interacting with Hashicorp Vault.