rake_easy_rsa 0.14.0.pre.1 → 0.14.0.pre.2

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: 381b1c57c1b138fd1770bb78f57899ee10a686087f6f75ac705bff4a25bdfdd0
4
- data.tar.gz: 4fc75ad63edd935725960daacf2c2f48536cf8210126059de3d8c79f138aa177
3
+ metadata.gz: 85f7821751c86b58729d2e0dc49136978c70ceda2d0985f330ea75db363673e1
4
+ data.tar.gz: a1bf08cd06925b6cfe68be39139bace28989460d5ddc65fedf8a169b5edc335e
5
5
  SHA512:
6
- metadata.gz: 57c7ad4e2b17b01cca2b3bfa0a96e1fa35f401a0e9eed8fc0c2c6fcbb1d2a360854350754a2e7e60994539276c88fe767b64895d6fd18195bbfa7771a881fea2
7
- data.tar.gz: 2b648e6a4c6fb2346f90f8330b20c315962e653ad290c9414a7f909a0a3dbde47404fe6066cda824f714ea1c488258ad7be512a7915694c7d797973b21e3d7c9
6
+ metadata.gz: 3c65fce81f5684b663576de76e3307374034dbc8899b7e108e1e4cc9644dc44f6e2e8e1119de8dd81d6b5bfae05d1bb0e1fadbfebdc51ae1d02da3c21c5f1d50
7
+ data.tar.gz: 24735d9963bc447f6fafbbc653f8519c23548e97f7ecb3748fff2704909b62e8ad4f3790d8ab8f5c302b09f0de489bc21ac67daf708ee775a08b1391a4458466
data/CODE_OF_CONDUCT.md CHANGED
@@ -5,9 +5,9 @@
5
5
  In the interest of fostering an open and welcoming environment, we as
6
6
  contributors and maintainers pledge to making participation in our project and
7
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.
8
+ size, disability, ethnicity, gender identity and expression, level of
9
+ experience, nationality, personal appearance, race, religion, or sexual identity
10
+ and orientation.
11
11
 
12
12
  ## Our Standards
13
13
 
@@ -23,7 +23,7 @@ include:
23
23
  Examples of unacceptable behavior by participants include:
24
24
 
25
25
  * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
26
+ advances
27
27
  * Trolling, insulting/derogatory comments, and personal or political attacks
28
28
  * Public or private harassment
29
29
  * Publishing others' private information, such as a physical or electronic
@@ -37,11 +37,11 @@ Project maintainers are responsible for clarifying the standards of acceptable
37
37
  behavior and are expected to take appropriate and fair corrective action in
38
38
  response to any instances of unacceptable behavior.
39
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.
40
+ Project maintainers have the right and responsibility to remove, edit, or reject
41
+ comments, commits, code, wiki edits, issues, and other contributions that are
42
+ not aligned to this Code of Conduct, or to ban temporarily or permanently any
43
+ contributor for other behaviors that they deem inappropriate, threatening,
44
+ offensive, or harmful.
45
45
 
46
46
  ## Scope
47
47
 
@@ -58,8 +58,9 @@ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
58
  reported by contacting the project team at maintainers@infrablocks.io. All
59
59
  complaints will be reviewed and investigated and will result in a response that
60
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.
61
+ obligated to maintain confidentiality with regard to the reporter of an
62
+ incident. Further details of specific enforcement policies may be posted
63
+ separately.
63
64
 
64
65
  Project maintainers who do not follow or enforce the Code of Conduct in good
65
66
  faith may face temporary or permanent repercussions as determined by other
@@ -67,8 +68,9 @@ members of the project's leadership.
67
68
 
68
69
  ## Attribution
69
70
 
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]
71
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
72
+ version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
72
73
 
73
74
  [homepage]: http://contributor-covenant.org
75
+
74
76
  [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_easy_rsa (0.14.0.pre.1)
4
+ rake_easy_rsa (0.14.0.pre.2)
5
5
  rake_dependencies (~> 3.1)
6
6
  rake_factory (~> 0.23)
7
7
  ruby_easy_rsa (~> 0.7)
@@ -10,47 +10,66 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- activesupport (7.0.4)
13
+ activesupport (7.1.1)
14
+ base64
15
+ bigdecimal
14
16
  concurrent-ruby (~> 1.0, >= 1.0.2)
17
+ connection_pool (>= 2.2.5)
18
+ drb
15
19
  i18n (>= 1.6, < 2)
16
20
  minitest (>= 5.1)
21
+ mutex_m
17
22
  tzinfo (~> 2.0)
18
- addressable (2.8.1)
23
+ addressable (2.8.5)
19
24
  public_suffix (>= 2.0.2, < 6.0)
20
25
  ast (2.4.2)
26
+ base64 (0.1.1)
27
+ bigdecimal (3.1.4)
21
28
  colored2 (3.1.2)
22
- concurrent-ruby (1.1.10)
29
+ concurrent-ruby (1.2.2)
30
+ connection_pool (2.4.1)
23
31
  diff-lcs (1.5.0)
24
32
  docile (1.4.0)
25
- down (5.4.0)
33
+ down (5.4.1)
26
34
  addressable (~> 2.8)
27
- excon (0.95.0)
28
- fakefs (1.9.0)
29
- faraday (2.7.2)
35
+ drb (2.1.1)
36
+ ruby2_keywords
37
+ excon (0.104.0)
38
+ fakefs (2.5.0)
39
+ faraday (2.7.11)
40
+ base64
30
41
  faraday-net_http (>= 2.0, < 3.1)
31
42
  ruby2_keywords (>= 0.0.4)
32
43
  faraday-net_http (3.0.2)
33
44
  gem-release (2.2.2)
45
+ git (1.18.0)
46
+ addressable (~> 2.8)
47
+ rchardet (~> 1.8)
34
48
  hamster (3.0.0)
35
49
  concurrent-ruby (~> 1.0)
36
- i18n (1.12.0)
50
+ i18n (1.14.1)
37
51
  concurrent-ruby (~> 1.0)
52
+ immutable-struct (2.4.1)
38
53
  json (2.6.3)
54
+ language_server-protocol (3.17.0.3)
39
55
  lino (3.1.0)
40
56
  hamster (~> 3.0)
41
57
  open4 (~> 1.3)
42
58
  minitar (0.9)
43
- minitest (5.17.0)
44
- octokit (6.0.1)
59
+ minitest (5.20.0)
60
+ mutex_m (0.1.2)
61
+ octokit (6.1.1)
45
62
  faraday (>= 1, < 3)
46
63
  sawyer (~> 0.9)
47
64
  open4 (1.3.4)
48
- parallel (1.22.1)
49
- parser (3.1.3.0)
65
+ parallel (1.23.0)
66
+ parser (3.2.2.4)
50
67
  ast (~> 2.4.1)
51
- public_suffix (5.0.1)
68
+ racc
69
+ public_suffix (5.0.3)
70
+ racc (1.7.1)
52
71
  rainbow (3.1.1)
53
- rake (13.0.6)
72
+ rake (13.1.0)
54
73
  rake_circle_ci (0.11.0)
55
74
  colored2 (~> 3.1)
56
75
  excon (~> 0.72)
@@ -62,9 +81,18 @@ GEM
62
81
  minitar (~> 0.9)
63
82
  rake_factory (~> 0.23)
64
83
  rubyzip (>= 1.3)
65
- rake_factory (0.31.0)
84
+ rake_factory (0.32.0.pre.2)
66
85
  activesupport (>= 4)
67
86
  rake (~> 13.0)
87
+ rake_git (0.1.0.pre.7)
88
+ colored2 (~> 3.1)
89
+ git (~> 1.13, >= 1.13.2)
90
+ rake_factory (= 0.32.0.pre.2)
91
+ rake_git_crypt (0.1.0.pre.26)
92
+ colored2 (~> 3.1)
93
+ rake_factory (= 0.32.0.pre.2)
94
+ ruby_git_crypt (= 0.1.0.pre.2)
95
+ ruby_gpg2 (~> 0.6)
68
96
  rake_github (0.11.0)
69
97
  colored2 (~> 3.1)
70
98
  octokit (>= 4.16, < 7.0)
@@ -73,45 +101,56 @@ GEM
73
101
  rake_gpg (0.18.0)
74
102
  rake_factory (~> 0.23)
75
103
  ruby_gpg2 (~> 0.6)
76
- rake_ssh (0.8.0)
104
+ rake_ssh (0.10.0)
77
105
  colored2 (~> 3.1)
78
106
  rake_factory (~> 0.23)
79
107
  sshkey (~> 2.0)
80
- regexp_parser (2.6.1)
81
- rexml (3.2.5)
108
+ rchardet (1.8.0)
109
+ regexp_parser (2.8.2)
110
+ rexml (3.2.6)
82
111
  rspec (3.12.0)
83
112
  rspec-core (~> 3.12.0)
84
113
  rspec-expectations (~> 3.12.0)
85
114
  rspec-mocks (~> 3.12.0)
86
- rspec-core (3.12.0)
115
+ rspec-core (3.12.2)
87
116
  rspec-support (~> 3.12.0)
88
- rspec-expectations (3.12.1)
117
+ rspec-expectations (3.12.3)
89
118
  diff-lcs (>= 1.2.0, < 2.0)
90
119
  rspec-support (~> 3.12.0)
91
- rspec-mocks (3.12.1)
120
+ rspec-mocks (3.12.6)
92
121
  diff-lcs (>= 1.2.0, < 2.0)
93
122
  rspec-support (~> 3.12.0)
94
- rspec-support (3.12.0)
95
- rubocop (1.42.0)
123
+ rspec-support (3.12.1)
124
+ rubocop (1.57.2)
96
125
  json (~> 2.3)
126
+ language_server-protocol (>= 3.17.0)
97
127
  parallel (~> 1.10)
98
- parser (>= 3.1.2.1)
128
+ parser (>= 3.2.2.4)
99
129
  rainbow (>= 2.2.2, < 4.0)
100
130
  regexp_parser (>= 1.8, < 3.0)
101
131
  rexml (>= 3.2.5, < 4.0)
102
- rubocop-ast (>= 1.24.1, < 2.0)
132
+ rubocop-ast (>= 1.28.1, < 2.0)
103
133
  ruby-progressbar (~> 1.7)
104
- unicode-display_width (>= 1.4.0, < 3.0)
105
- rubocop-ast (1.24.1)
106
- parser (>= 3.1.1.0)
134
+ unicode-display_width (>= 2.4.0, < 3.0)
135
+ rubocop-ast (1.30.0)
136
+ parser (>= 3.2.1.0)
137
+ rubocop-capybara (2.19.0)
138
+ rubocop (~> 1.41)
139
+ rubocop-factory_bot (2.24.0)
140
+ rubocop (~> 1.33)
107
141
  rubocop-rake (0.6.0)
108
142
  rubocop (~> 1.0)
109
- rubocop-rspec (2.16.0)
110
- rubocop (~> 1.33)
111
- ruby-progressbar (1.11.0)
143
+ rubocop-rspec (2.25.0)
144
+ rubocop (~> 1.40)
145
+ rubocop-capybara (~> 2.17)
146
+ rubocop-factory_bot (~> 2.22)
147
+ ruby-progressbar (1.13.0)
112
148
  ruby2_keywords (0.0.5)
113
149
  ruby_easy_rsa (0.11.0)
114
150
  lino (~> 3.0)
151
+ ruby_git_crypt (0.1.0.pre.2)
152
+ immutable-struct (~> 2.4)
153
+ lino (~> 3.0)
115
154
  ruby_gpg2 (0.10.0)
116
155
  lino (~> 3.0)
117
156
  rubyzip (2.3.2)
@@ -126,9 +165,9 @@ GEM
126
165
  simplecov-html (0.12.3)
127
166
  simplecov_json_formatter (0.1.4)
128
167
  sshkey (2.0.0)
129
- tzinfo (2.0.5)
168
+ tzinfo (2.0.6)
130
169
  concurrent-ruby (~> 1.0)
131
- unicode-display_width (2.3.0)
170
+ unicode-display_width (2.5.0)
132
171
 
133
172
  PLATFORMS
134
173
  ruby
@@ -141,6 +180,8 @@ DEPENDENCIES
141
180
  rake
142
181
  rake_circle_ci
143
182
  rake_easy_rsa!
183
+ rake_git
184
+ rake_git_crypt
144
185
  rake_github
145
186
  rake_gpg
146
187
  rake_ssh
@@ -151,4 +192,4 @@ DEPENDENCIES
151
192
  simplecov
152
193
 
153
194
  BUNDLED WITH
154
- 2.4.2
195
+ 2.4.17
data/Rakefile CHANGED
@@ -1,26 +1,59 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'yaml'
4
3
  require 'rake_circle_ci'
4
+ require 'rake_git'
5
+ require 'rake_git_crypt'
5
6
  require 'rake_github'
6
- require 'rake_ssh'
7
7
  require 'rake_gpg'
8
- require 'securerandom'
8
+ require 'rake_ssh'
9
9
  require 'rspec/core/rake_task'
10
10
  require 'rubocop/rake_task'
11
+ require 'securerandom'
12
+ require 'yaml'
11
13
 
12
14
  task default: %i[
13
15
  library:fix
14
16
  test:unit
15
17
  ]
16
18
 
19
+ RakeGitCrypt.define_standard_tasks(
20
+ namespace: :git_crypt,
21
+
22
+ provision_secrets_task_name: :'secrets:provision',
23
+ destroy_secrets_task_name: :'secrets:destroy',
24
+
25
+ install_commit_task_name: :'git:commit',
26
+ uninstall_commit_task_name: :'git:commit',
27
+
28
+ gpg_user_key_paths: %w[
29
+ config/gpg
30
+ config/secrets/ci/gpg.public
31
+ ]
32
+ )
33
+
34
+ namespace :git do
35
+ RakeGit.define_commit_task(
36
+ argument_names: [:message]
37
+ ) do |t, args|
38
+ t.message = args.message
39
+ end
40
+ end
41
+
17
42
  namespace :encryption do
43
+ namespace :directory do
44
+ desc 'Ensure CI secrets directory exists.'
45
+ task :ensure do
46
+ FileUtils.mkdir_p('config/secrets/ci')
47
+ end
48
+ end
49
+
18
50
  namespace :passphrase do
19
51
  desc 'Generate encryption passphrase for CI GPG key'
20
- task :generate do
21
- FileUtils.mkdir_p('config/secrets/ci/')
22
- File.write('config/secrets/ci/encryption.passphrase',
23
- SecureRandom.base64(36))
52
+ task generate: ['directory:ensure'] do
53
+ File.write(
54
+ 'config/secrets/ci/encryption.passphrase',
55
+ SecureRandom.base64(36)
56
+ )
24
57
  end
25
58
  end
26
59
  end
@@ -44,6 +77,36 @@ namespace :keys do
44
77
  end
45
78
  end
46
79
 
80
+ namespace :secrets do
81
+ namespace :directory do
82
+ desc 'Ensure secrets directory exists and is set up correctly'
83
+ task :ensure do
84
+ FileUtils.mkdir_p('config/secrets')
85
+ unless File.exist?('config/secrets/.unlocked')
86
+ File.write('config/secrets/.unlocked', 'true')
87
+ end
88
+ end
89
+ end
90
+
91
+ desc 'Generate all generatable secrets.'
92
+ task generate: %w[
93
+ encryption:passphrase:generate
94
+ keys:deploy:generate
95
+ keys:gpg:generate
96
+ ]
97
+
98
+ desc 'Provision all secrets.'
99
+ task provision: [:generate]
100
+
101
+ desc 'Delete all secrets.'
102
+ task :destroy do
103
+ rm_rf 'config/secrets'
104
+ end
105
+
106
+ desc 'Rotate all secrets.'
107
+ task rotate: [:'git_crypt:reinstall']
108
+ end
109
+
47
110
  RuboCop::RakeTask.new
48
111
 
49
112
  namespace :library do
@@ -101,7 +164,6 @@ end
101
164
  namespace :pipeline do
102
165
  desc 'Prepare CircleCI Pipeline'
103
166
  task prepare: %i[
104
- circle_ci:project:follow
105
167
  circle_ci:env_vars:ensure
106
168
  circle_ci:checkout_keys:ensure
107
169
  circle_ci:ssh_keys:ensure
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RakeEasyRSA
4
- VERSION = '0.14.0.pre.1'
4
+ VERSION = '0.14.0.pre.2'
5
5
  end
@@ -46,6 +46,8 @@ Gem::Specification.new do |spec|
46
46
  spec.add_development_dependency 'gem-release'
47
47
  spec.add_development_dependency 'rake'
48
48
  spec.add_development_dependency 'rake_circle_ci'
49
+ spec.add_development_dependency 'rake_git'
50
+ spec.add_development_dependency 'rake_git_crypt'
49
51
  spec.add_development_dependency 'rake_github'
50
52
  spec.add_development_dependency 'rake_gpg'
51
53
  spec.add_development_dependency 'rake_ssh'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_easy_rsa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0.pre.1
4
+ version: 0.14.0.pre.2
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-01-02 00:00:00.000000000 Z
11
+ date: 2023-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake_dependencies
@@ -150,6 +150,34 @@ dependencies:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rake_git
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_git_crypt
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'
153
181
  - !ruby/object:Gem::Dependency
154
182
  name: rake_github
155
183
  requirement: !ruby/object:Gem::Requirement