ruby_vault 0.1.0.pre.2

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 517ba1189e0acf38b729072d2f4a79ff4d22e0d7630d22d7933d0e33eb2ef04f
4
+ data.tar.gz: e70f30492b24464cf6505ac87fc040070c9915abb08a8696d66b3caa41440c31
5
+ SHA512:
6
+ metadata.gz: d1aa3226f32c5f59acdfba7d0cfab67e71e10d8cbe9912f45ac18a54cca8df93912ebfe09b3897b8a47687e4301a818b01b6778a3ae1c2ac89cfa7564a3f445d
7
+ data.tar.gz: 83577b10a67ea70167fdb434ebaa3fb81c55538a82a2e748f6b0ac2fff857f5f78984a356a488fdae00e65e4bc100e989e0d84c2a168aef7d211d0c0cfce441a
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at maintainers@infrablocks.io. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in ruby_vault.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,183 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ ruby_vault (0.1.0.pre.2)
5
+ immutable-struct (~> 2.4)
6
+ lino (~> 3.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ activesupport (7.0.3.1)
12
+ concurrent-ruby (~> 1.0, >= 1.0.2)
13
+ i18n (>= 1.6, < 2)
14
+ minitest (>= 5.1)
15
+ tzinfo (~> 2.0)
16
+ addressable (2.8.0)
17
+ public_suffix (>= 2.0.2, < 5.0)
18
+ ast (2.4.2)
19
+ coderay (1.1.3)
20
+ colored2 (3.1.2)
21
+ concurrent-ruby (1.1.10)
22
+ diff-lcs (1.5.0)
23
+ docile (1.4.0)
24
+ excon (0.92.4)
25
+ faker (2.22.0)
26
+ i18n (>= 1.8.11, < 2)
27
+ faraday (2.4.0)
28
+ faraday-net_http (~> 2.0)
29
+ ruby2_keywords (>= 0.0.4)
30
+ faraday-net_http (2.1.0)
31
+ ffi (1.15.5)
32
+ formatador (1.1.0)
33
+ gem-release (2.2.2)
34
+ guard (2.18.0)
35
+ formatador (>= 0.2.4)
36
+ listen (>= 2.7, < 4.0)
37
+ lumberjack (>= 1.0.12, < 2.0)
38
+ nenv (~> 0.1)
39
+ notiffany (~> 0.0)
40
+ pry (>= 0.13.0)
41
+ shellany (~> 0.0)
42
+ thor (>= 0.18.1)
43
+ guard-compat (1.2.1)
44
+ guard-rspec (4.7.3)
45
+ guard (~> 2.1)
46
+ guard-compat (~> 1.1)
47
+ rspec (>= 2.99.0, < 4.0)
48
+ hamster (3.0.0)
49
+ concurrent-ruby (~> 1.0)
50
+ i18n (1.12.0)
51
+ concurrent-ruby (~> 1.0)
52
+ immutable-struct (2.4.1)
53
+ json (2.6.2)
54
+ lino (3.0.0)
55
+ hamster (~> 3.0)
56
+ open4 (~> 1.3)
57
+ listen (3.7.1)
58
+ rb-fsevent (~> 0.10, >= 0.10.3)
59
+ rb-inotify (~> 0.9, >= 0.9.10)
60
+ lumberjack (1.2.8)
61
+ method_source (1.0.0)
62
+ minitest (5.16.2)
63
+ nenv (0.3.0)
64
+ notiffany (0.1.3)
65
+ nenv (~> 0.1)
66
+ shellany (~> 0.0)
67
+ octokit (4.25.1)
68
+ faraday (>= 1, < 3)
69
+ sawyer (~> 0.9)
70
+ open4 (1.3.4)
71
+ parallel (1.22.1)
72
+ parser (3.1.2.0)
73
+ ast (~> 2.4.1)
74
+ pry (0.14.1)
75
+ coderay (~> 1.1)
76
+ method_source (~> 1.0)
77
+ public_suffix (4.0.7)
78
+ rainbow (3.1.1)
79
+ rake (13.0.6)
80
+ rake_circle_ci (0.9.0)
81
+ colored2 (~> 3.1)
82
+ excon (~> 0.72)
83
+ rake_factory (~> 0.23)
84
+ sshkey (~> 2.0)
85
+ rake_factory (0.29.0)
86
+ activesupport (>= 4)
87
+ rake (~> 13.0)
88
+ rake_github (0.9.0)
89
+ colored2 (~> 3.1)
90
+ octokit (~> 4.16)
91
+ rake_factory (~> 0.23)
92
+ sshkey (~> 2.0)
93
+ rake_gpg (0.16.0)
94
+ rake_factory (>= 0.23, < 1)
95
+ ruby_gpg2 (>= 0.6, < 1)
96
+ rake_ssh (0.6.0)
97
+ colored2 (~> 3.1)
98
+ rake_factory (~> 0.23)
99
+ sshkey (~> 2.0)
100
+ rb-fsevent (0.11.1)
101
+ rb-inotify (0.10.1)
102
+ ffi (~> 1.0)
103
+ regexp_parser (2.5.0)
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)
112
+ diff-lcs (>= 1.2.0, < 2.0)
113
+ rspec-support (~> 3.11.0)
114
+ rspec-mocks (3.11.1)
115
+ diff-lcs (>= 1.2.0, < 2.0)
116
+ rspec-support (~> 3.11.0)
117
+ rspec-support (3.11.0)
118
+ rubocop (1.32.0)
119
+ json (~> 2.3)
120
+ parallel (~> 1.10)
121
+ parser (>= 3.1.0.0)
122
+ rainbow (>= 2.2.2, < 4.0)
123
+ regexp_parser (>= 1.8, < 3.0)
124
+ rexml (>= 3.2.5, < 4.0)
125
+ rubocop-ast (>= 1.19.1, < 2.0)
126
+ ruby-progressbar (~> 1.7)
127
+ unicode-display_width (>= 1.4.0, < 3.0)
128
+ rubocop-ast (1.19.1)
129
+ parser (>= 3.1.1.0)
130
+ rubocop-rake (0.6.0)
131
+ rubocop (~> 1.0)
132
+ rubocop-rspec (2.12.1)
133
+ rubocop (~> 1.31)
134
+ ruby-progressbar (1.11.0)
135
+ ruby2_keywords (0.0.5)
136
+ ruby_gpg2 (0.8.0)
137
+ lino (>= 1.5)
138
+ sawyer (0.9.2)
139
+ addressable (>= 2.3.5)
140
+ faraday (>= 0.17.3, < 3)
141
+ shellany (0.0.1)
142
+ simplecov (0.21.2)
143
+ docile (~> 1.1)
144
+ simplecov-html (~> 0.11)
145
+ simplecov_json_formatter (~> 0.1)
146
+ simplecov-html (0.12.3)
147
+ simplecov_json_formatter (0.1.4)
148
+ sshkey (2.0.0)
149
+ thor (1.2.1)
150
+ tzinfo (2.0.5)
151
+ concurrent-ruby (~> 1.0)
152
+ unicode-display_width (2.2.0)
153
+ webrick (1.7.0)
154
+ yard (0.9.28)
155
+ webrick (~> 1.7.0)
156
+
157
+ PLATFORMS
158
+ arm64-darwin-21
159
+ ruby
160
+ x86_64-darwin-19
161
+ x86_64-linux
162
+
163
+ DEPENDENCIES
164
+ bundler
165
+ faker
166
+ gem-release
167
+ guard
168
+ guard-rspec
169
+ rake
170
+ rake_circle_ci
171
+ rake_github
172
+ rake_gpg
173
+ rake_ssh
174
+ rspec
175
+ rubocop
176
+ rubocop-rake
177
+ rubocop-rspec
178
+ ruby_vault!
179
+ simplecov
180
+ yard
181
+
182
+ BUNDLED WITH
183
+ 2.3.19
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 InfraBlocks Maintainers
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,99 @@
1
+ # RubyVault
2
+
3
+ A simple wrapper around the Vault binary to allow execution from within
4
+ a Ruby program, RSpec test or Rakefile.
5
+
6
+ ## Installation
7
+
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem 'ruby_vault'
12
+ ```
13
+
14
+ And then execute:
15
+
16
+ $ bundle
17
+
18
+ Or install it yourself as:
19
+
20
+ $ gem install ruby_vault
21
+
22
+ ## Usage
23
+
24
+ To require `RubyVault`:
25
+
26
+ ```ruby
27
+ require 'ruby_vault'
28
+ ```
29
+
30
+ ## Documentation
31
+
32
+ * [API docs](https://infrablocks.github.io/ruby_vault/index.html)
33
+
34
+ ## Development
35
+
36
+ To install dependencies and run the build, run the pre-commit build:
37
+
38
+ ```shell script
39
+ ./go
40
+ ```
41
+
42
+ This runs all unit tests and other checks including coverage and code linting /
43
+ formatting.
44
+
45
+ To run only the unit tests, including coverage:
46
+
47
+ ```shell script
48
+ ./go test:unit
49
+ ```
50
+
51
+ To attempt to fix any code linting / formatting issues:
52
+
53
+ ```shell script
54
+ ./go library:fix
55
+ ```
56
+
57
+ To check for code linting / formatting issues without fixing:
58
+
59
+ ```shell script
60
+ ./go library:check
61
+ ```
62
+
63
+ You can also run `bin/console` for an interactive prompt that will allow you to
64
+ experiment.
65
+
66
+ ### Managing CircleCI keys
67
+
68
+ To encrypt a GPG key for use by CircleCI:
69
+
70
+ ```bash
71
+ openssl aes-256-cbc \
72
+ -e \
73
+ -md sha1 \
74
+ -in ./config/secrets/ci/gpg.private \
75
+ -out ./.circleci/gpg.private.enc \
76
+ -k "<passphrase>"
77
+ ```
78
+
79
+ To check decryption is working correctly:
80
+
81
+ ```bash
82
+ openssl aes-256-cbc \
83
+ -d \
84
+ -md sha1 \
85
+ -in ./.circleci/gpg.private.enc \
86
+ -k "<passphrase>"
87
+ ```
88
+
89
+ ## Contributing
90
+
91
+ Bug reports and pull requests are welcome on GitHub at
92
+ https://github.com/infrablocks/ruby_vault. This project is intended to be a
93
+ safe, welcoming space for collaboration, and contributors are expected to adhere
94
+ to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
95
+
96
+ ## License
97
+
98
+ The gem is available as open source under the terms of the
99
+ [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,169 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'yaml'
4
+ require 'yard'
5
+ require 'rake_circle_ci'
6
+ require 'rake_github'
7
+ require 'rake_ssh'
8
+ require 'rake_gpg'
9
+ require 'securerandom'
10
+ require 'rspec/core/rake_task'
11
+ require 'rubocop/rake_task'
12
+
13
+ task default: %i[
14
+ library:fix
15
+ test:unit
16
+ ]
17
+
18
+ namespace :encryption do
19
+ namespace :directory do
20
+ desc 'Ensure CI secrets directory exists.'
21
+ task :ensure do
22
+ FileUtils.mkdir_p('config/secrets/ci')
23
+ end
24
+ end
25
+
26
+ namespace :passphrase do
27
+ desc 'Generate encryption passphrase used by CI.'
28
+ task generate: ['directory:ensure'] do
29
+ File.write('config/secrets/ci/encryption.passphrase',
30
+ SecureRandom.base64(36))
31
+ end
32
+ end
33
+ end
34
+
35
+ namespace :keys do
36
+ namespace :deploy do
37
+ RakeSSH.define_key_tasks(
38
+ path: 'config/secrets/ci/',
39
+ comment: 'maintainers@infrablocks.io'
40
+ )
41
+ end
42
+
43
+ namespace :gpg do
44
+ RakeGPG.define_generate_key_task(
45
+ output_directory: 'config/secrets/ci',
46
+ name_prefix: 'gpg',
47
+ owner_name: 'InfraBlocks Maintainers',
48
+ owner_email: 'maintainers@infrablocks.io',
49
+ owner_comment: 'ruby_vault CI Key'
50
+ )
51
+ end
52
+ end
53
+
54
+ namespace :secrets do
55
+ desc 'Regenerate all generatable secrets.'
56
+ task regenerate: %w[
57
+ encryption:passphrase:generate
58
+ keys:deploy:generate
59
+ keys:gpg:generate
60
+ ]
61
+ end
62
+
63
+ RuboCop::RakeTask.new
64
+
65
+ YARD::Rake::YardocTask.new do |t|
66
+ t.files = ['lib/**/*.rb']
67
+ t.options = %w[--embed-mixins --output-dir docs]
68
+ end
69
+
70
+ namespace :library do
71
+ desc 'Run all checks of the library'
72
+ task check: [:rubocop]
73
+
74
+ desc 'Attempt to automatically fix issues with the library'
75
+ task fix: [:'rubocop:autocorrect_all']
76
+ end
77
+
78
+ namespace :documentation do
79
+ desc 'Generate documentation'
80
+ task generate: [:yard]
81
+
82
+ desc 'Commit documentation'
83
+ task :commit, [:skip] do |_, args|
84
+ args.with_defaults(skip: 'true')
85
+
86
+ skip_ci = args.skip == 'true'
87
+
88
+ sh('git', 'commit',
89
+ '-a',
90
+ '-m', "Generate latest documentation#{skip_ci ? ' [ci skip]' : ''}")
91
+ end
92
+
93
+ desc 'Update documentation'
94
+ task update: %i[generate commit]
95
+ end
96
+
97
+ namespace :test do
98
+ RSpec::Core::RakeTask.new(:unit)
99
+ end
100
+
101
+ RakeCircleCI.define_project_tasks(
102
+ namespace: :circle_ci,
103
+ project_slug: 'github/infrablocks/ruby_vault'
104
+ ) do |t|
105
+ circle_ci_config =
106
+ YAML.load_file('config/secrets/circle_ci/config.yaml')
107
+
108
+ t.api_token = circle_ci_config['circle_ci_api_token']
109
+ t.environment_variables = {
110
+ ENCRYPTION_PASSPHRASE:
111
+ File.read('config/secrets/ci/encryption.passphrase')
112
+ .chomp
113
+ }
114
+ t.checkout_keys = []
115
+ t.ssh_keys = [
116
+ {
117
+ hostname: 'github.com',
118
+ private_key: File.read('config/secrets/ci/ssh.private')
119
+ }
120
+ ]
121
+ end
122
+
123
+ RakeGithub.define_repository_tasks(
124
+ namespace: :github,
125
+ repository: 'infrablocks/ruby_vault'
126
+ ) do |t, args|
127
+ github_config =
128
+ YAML.load_file('config/secrets/github/config.yaml')
129
+
130
+ t.access_token = github_config['github_personal_access_token']
131
+ t.deploy_keys = [
132
+ {
133
+ title: 'CircleCI',
134
+ public_key: File.read('config/secrets/ci/ssh.public')
135
+ }
136
+ ]
137
+ t.branch_name = args.branch_name
138
+ t.commit_message = args.commit_message
139
+ end
140
+
141
+ namespace :pipeline do
142
+ desc 'Prepare CircleCI Pipeline'
143
+ task prepare: %i[
144
+ circle_ci:project:follow
145
+ circle_ci:env_vars:ensure
146
+ circle_ci:checkout_keys:ensure
147
+ circle_ci:ssh_keys:ensure
148
+ github:deploy_keys:ensure
149
+ ]
150
+ end
151
+
152
+ namespace :version do
153
+ desc 'Bump version for specified type (pre, major, minor, patch)'
154
+ task :bump, [:type] do |_, args|
155
+ bump_version_for(args.type)
156
+ end
157
+ end
158
+
159
+ desc 'Release gem'
160
+ task :release do
161
+ sh 'gem release --tag --push'
162
+ end
163
+
164
+ def bump_version_for(version_type)
165
+ sh "gem bump --version #{version_type} " \
166
+ '&& bundle install ' \
167
+ '&& export LAST_MESSAGE="$(git log -1 --pretty=%B)" ' \
168
+ '&& git commit -a --amend -m "${LAST_MESSAGE} [ci skip]"'
169
+ end
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'ruby_vault'
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require 'irb'
15
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RubyVault
4
+ VERSION = '0.1.0.pre.2'
5
+ end
data/lib/ruby_vault.rb ADDED
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'ruby_vault/version'
@@ -0,0 +1,62 @@
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'ruby_vault/version'
6
+ require 'date'
7
+
8
+ files = %w[
9
+ bin
10
+ lib
11
+ CODE_OF_CONDUCT.md
12
+ ruby_vault.gemspec
13
+ Gemfile
14
+ LICENSE.txt
15
+ Rakefile
16
+ README.md
17
+ ]
18
+
19
+ Gem::Specification.new do |spec|
20
+ spec.name = 'ruby_vault'
21
+ spec.version = RubyVault::VERSION
22
+ spec.authors = ['InfraBlocks Maintainers']
23
+ spec.email = ['maintainers@infrablocks.io']
24
+
25
+ spec.summary = 'A simple Ruby wrapper for invoking Vault commands.'
26
+ spec.description =
27
+ 'Wraps the Vault CLI so that Vault can be invoked from a Ruby ' \
28
+ 'script or Rakefile.'
29
+ spec.homepage = 'https://github.com/infrablocks/ruby_vault'
30
+ spec.license = 'MIT'
31
+
32
+ spec.files = `git ls-files -z`.split("\x0").select do |f|
33
+ f.match(/^(#{files.map { |g| Regexp.escape(g) }.join('|')})/)
34
+ end
35
+ spec.bindir = 'exe'
36
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
37
+ spec.require_paths = ['lib']
38
+
39
+ spec.required_ruby_version = '>= 2.7'
40
+
41
+ spec.add_dependency 'immutable-struct', '~> 2.4'
42
+ spec.add_dependency 'lino', '~> 3.0'
43
+
44
+ spec.add_development_dependency 'bundler'
45
+ spec.add_development_dependency 'faker'
46
+ spec.add_development_dependency 'gem-release'
47
+ spec.add_development_dependency 'guard'
48
+ spec.add_development_dependency 'guard-rspec'
49
+ spec.add_development_dependency 'rake'
50
+ spec.add_development_dependency 'rake_circle_ci'
51
+ spec.add_development_dependency 'rake_github'
52
+ spec.add_development_dependency 'rake_gpg'
53
+ spec.add_development_dependency 'rake_ssh'
54
+ spec.add_development_dependency 'rspec'
55
+ spec.add_development_dependency 'rubocop'
56
+ spec.add_development_dependency 'rubocop-rake'
57
+ spec.add_development_dependency 'rubocop-rspec'
58
+ spec.add_development_dependency 'simplecov'
59
+ spec.add_development_dependency 'yard'
60
+
61
+ spec.metadata['rubygems_mfa_required'] = 'false'
62
+ end
metadata ADDED
@@ -0,0 +1,308 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ruby_vault
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0.pre.2
5
+ platform: ruby
6
+ authors:
7
+ - InfraBlocks Maintainers
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2022-08-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: immutable-struct
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.4'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.4'
27
+ - !ruby/object:Gem::Dependency
28
+ name: lino
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: faker
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: gem-release
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'
83
+ - !ruby/object:Gem::Dependency
84
+ name: guard
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: guard-rspec
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rake
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rake_circle_ci
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rake_github
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rake_gpg
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: rake_ssh
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: rspec
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: rubocop
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: rubocop-rake
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ - !ruby/object:Gem::Dependency
224
+ name: rubocop-rspec
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
237
+ - !ruby/object:Gem::Dependency
238
+ name: simplecov
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - ">="
242
+ - !ruby/object:Gem::Version
243
+ version: '0'
244
+ type: :development
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - ">="
249
+ - !ruby/object:Gem::Version
250
+ version: '0'
251
+ - !ruby/object:Gem::Dependency
252
+ name: yard
253
+ requirement: !ruby/object:Gem::Requirement
254
+ requirements:
255
+ - - ">="
256
+ - !ruby/object:Gem::Version
257
+ version: '0'
258
+ type: :development
259
+ prerelease: false
260
+ version_requirements: !ruby/object:Gem::Requirement
261
+ requirements:
262
+ - - ">="
263
+ - !ruby/object:Gem::Version
264
+ version: '0'
265
+ description: Wraps the Vault CLI so that Vault can be invoked from a Ruby script or
266
+ Rakefile.
267
+ email:
268
+ - maintainers@infrablocks.io
269
+ executables: []
270
+ extensions: []
271
+ extra_rdoc_files: []
272
+ files:
273
+ - CODE_OF_CONDUCT.md
274
+ - Gemfile
275
+ - Gemfile.lock
276
+ - LICENSE.txt
277
+ - README.md
278
+ - Rakefile
279
+ - bin/console
280
+ - bin/setup
281
+ - lib/ruby_vault.rb
282
+ - lib/ruby_vault/version.rb
283
+ - ruby_vault.gemspec
284
+ homepage: https://github.com/infrablocks/ruby_vault
285
+ licenses:
286
+ - MIT
287
+ metadata:
288
+ rubygems_mfa_required: 'false'
289
+ post_install_message:
290
+ rdoc_options: []
291
+ require_paths:
292
+ - lib
293
+ required_ruby_version: !ruby/object:Gem::Requirement
294
+ requirements:
295
+ - - ">="
296
+ - !ruby/object:Gem::Version
297
+ version: '2.7'
298
+ required_rubygems_version: !ruby/object:Gem::Requirement
299
+ requirements:
300
+ - - ">"
301
+ - !ruby/object:Gem::Version
302
+ version: 1.3.1
303
+ requirements: []
304
+ rubygems_version: 3.1.6
305
+ signing_key:
306
+ specification_version: 4
307
+ summary: A simple Ruby wrapper for invoking Vault commands.
308
+ test_files: []