confidante 0.28.0 → 0.29.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: e570761d8e5ba8fc6b97a1d5b6ec0cf52982177fb9e2005296e1431b9be50004
4
- data.tar.gz: fa8a3a94ef9c697c87cba4cf94dd43738b0eb6d6af7da7ceacec0478b4263ac7
3
+ metadata.gz: c631b9931f3e0fb0098bf8a6c74a402e56adabe61ded304f1c38e7633a5e674d
4
+ data.tar.gz: '0034858ddf16d355841fd03d2b396c992e90147f216b96a2342553193fad9e17'
5
5
  SHA512:
6
- metadata.gz: 40c6cc3b404caa249d5a5f02b03168ddbdbe573d57fcb1cdf5f970f3b5760bfd41be16ed356cf8754ccd3bd20b48ea9dca40b8a8c0ad9f04ea1292dcb941993a
7
- data.tar.gz: 63b114f9aa6433b9137f8a5c32b1f9144fe9e10ed3e4bbf729a7b4146497587ae9d6e634e596b7a7397f40c9439a4c2544cf2023cd1ba609395ffcc02c7302cf
6
+ metadata.gz: 964407116cf9f2290133b1c37f3d63486fe45b4f796464f60cbd5aad348a6c31dd4687e56f83685bbd9ab059980256a7ce8896bb80029a8582c0515fd8c771fe
7
+ data.tar.gz: 04f04397f8d63c54bacb1eedb781beb1ce759971287d4b5f9122350afc0e31d470a8787421fdd4faf128a46d110173e6b1cca54cfb1f39b25520bcfffdba6cfe
data/Gemfile CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  source 'https://rubygems.org'
4
4
 
5
- # Specify dependencies in lino.gemspec
5
+ # Specify dependencies in confidante.gemspec
6
6
  gemspec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- confidante (0.28.0)
4
+ confidante (0.29.0.pre.2)
5
5
  activesupport (>= 4)
6
6
  hiera (~> 3.3)
7
7
  shikashi (~> 0.6)
@@ -10,136 +10,179 @@ 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)
21
26
  aws-eventstream (1.2.0)
22
- aws-sigv4 (1.5.2)
27
+ aws-sigv4 (1.6.0)
23
28
  aws-eventstream (~> 1, >= 1.0.2)
29
+ base64 (0.1.1)
30
+ bigdecimal (3.1.4)
24
31
  colored2 (3.1.2)
25
- concurrent-ruby (1.1.10)
32
+ concurrent-ruby (1.2.2)
33
+ connection_pool (2.4.1)
26
34
  diff-lcs (1.5.0)
27
35
  docile (1.4.0)
36
+ drb (2.1.1)
37
+ ruby2_keywords
28
38
  evalhook (0.6.0)
29
39
  partialruby (~> 0.3)
30
40
  sexp_processor (~> 4.0)
31
- excon (0.95.0)
32
- faraday (2.7.2)
41
+ excon (0.104.0)
42
+ faraday (2.7.11)
43
+ base64
33
44
  faraday-net_http (>= 2.0, < 3.1)
34
45
  ruby2_keywords (>= 0.0.4)
35
46
  faraday-net_http (3.0.2)
36
47
  gem-release (2.2.2)
37
48
  getsource (0.2.2)
49
+ git (1.18.0)
50
+ addressable (~> 2.8)
51
+ rchardet (~> 1.8)
38
52
  hamster (3.0.0)
39
53
  concurrent-ruby (~> 1.0)
40
- hiera (3.11.0)
41
- i18n (1.12.0)
54
+ hiera (3.12.0)
55
+ i18n (1.14.1)
42
56
  concurrent-ruby (~> 1.0)
57
+ immutable-struct (2.4.1)
43
58
  json (2.6.3)
44
- lino (3.0.0)
59
+ language_server-protocol (3.17.0.3)
60
+ lino (3.1.0)
45
61
  hamster (~> 3.0)
46
62
  open4 (~> 1.3)
47
- minitest (5.16.3)
48
- octokit (4.25.1)
63
+ minitest (5.20.0)
64
+ mutex_m (0.1.2)
65
+ octokit (6.1.1)
49
66
  faraday (>= 1, < 3)
50
67
  sawyer (~> 0.9)
51
68
  open4 (1.3.4)
52
- parallel (1.22.1)
53
- parser (3.1.3.0)
69
+ parallel (1.23.0)
70
+ parser (3.2.2.4)
54
71
  ast (~> 2.4.1)
72
+ racc
55
73
  partialruby (0.3.0)
56
74
  ruby2ruby (~> 2)
57
75
  ruby_parser (~> 3)
58
- public_suffix (5.0.1)
76
+ public_suffix (5.0.3)
77
+ racc (1.7.1)
59
78
  rainbow (3.1.1)
60
79
  rake (13.0.6)
61
- rake_circle_ci (0.9.0)
80
+ rake_circle_ci (0.11.0)
62
81
  colored2 (~> 3.1)
63
82
  excon (~> 0.72)
64
83
  rake_factory (~> 0.23)
65
84
  sshkey (~> 2.0)
66
- rake_factory (0.29.0)
85
+ rake_factory (0.32.0.pre.2)
67
86
  activesupport (>= 4)
68
87
  rake (~> 13.0)
69
- rake_github (0.9.0)
88
+ rake_git (0.1.0.pre.7)
70
89
  colored2 (~> 3.1)
71
- octokit (~> 4.16)
90
+ git (~> 1.13, >= 1.13.2)
91
+ rake_factory (= 0.32.0.pre.2)
92
+ rake_git_crypt (0.1.0.pre.26)
93
+ colored2 (~> 3.1)
94
+ rake_factory (= 0.32.0.pre.2)
95
+ ruby_git_crypt (= 0.1.0.pre.2)
96
+ ruby_gpg2 (~> 0.6)
97
+ rake_github (0.11.0)
98
+ colored2 (~> 3.1)
99
+ octokit (>= 4.16, < 7.0)
72
100
  rake_factory (~> 0.23)
73
101
  sshkey (~> 2.0)
74
- rake_gpg (0.16.0)
75
- rake_factory (>= 0.23, < 1)
76
- ruby_gpg2 (>= 0.6, < 1)
77
- rake_ssh (0.6.0)
102
+ rake_gpg (0.18.0)
103
+ rake_factory (~> 0.23)
104
+ ruby_gpg2 (~> 0.6)
105
+ rake_ssh (0.10.0)
78
106
  colored2 (~> 3.1)
79
107
  rake_factory (~> 0.23)
80
108
  sshkey (~> 2.0)
81
- regexp_parser (2.6.1)
82
- rexml (3.2.5)
109
+ rchardet (1.8.0)
110
+ regexp_parser (2.8.2)
111
+ rexml (3.2.6)
83
112
  rspec (3.12.0)
84
113
  rspec-core (~> 3.12.0)
85
114
  rspec-expectations (~> 3.12.0)
86
115
  rspec-mocks (~> 3.12.0)
87
- rspec-core (3.12.0)
116
+ rspec-core (3.12.2)
88
117
  rspec-support (~> 3.12.0)
89
- rspec-expectations (3.12.1)
118
+ rspec-expectations (3.12.3)
90
119
  diff-lcs (>= 1.2.0, < 2.0)
91
120
  rspec-support (~> 3.12.0)
92
- rspec-mocks (3.12.1)
121
+ rspec-mocks (3.12.6)
93
122
  diff-lcs (>= 1.2.0, < 2.0)
94
123
  rspec-support (~> 3.12.0)
95
- rspec-support (3.12.0)
96
- rubocop (1.41.1)
124
+ rspec-support (3.12.1)
125
+ rubocop (1.57.1)
126
+ base64 (~> 0.1.1)
97
127
  json (~> 2.3)
128
+ language_server-protocol (>= 3.17.0)
98
129
  parallel (~> 1.10)
99
- parser (>= 3.1.2.1)
130
+ parser (>= 3.2.2.4)
100
131
  rainbow (>= 2.2.2, < 4.0)
101
132
  regexp_parser (>= 1.8, < 3.0)
102
133
  rexml (>= 3.2.5, < 4.0)
103
- rubocop-ast (>= 1.23.0, < 2.0)
134
+ rubocop-ast (>= 1.28.1, < 2.0)
104
135
  ruby-progressbar (~> 1.7)
105
- unicode-display_width (>= 1.4.0, < 3.0)
106
- rubocop-ast (1.24.0)
107
- parser (>= 3.1.1.0)
136
+ unicode-display_width (>= 2.4.0, < 3.0)
137
+ rubocop-ast (1.29.0)
138
+ parser (>= 3.2.1.0)
139
+ rubocop-capybara (2.19.0)
140
+ rubocop (~> 1.41)
141
+ rubocop-factory_bot (2.24.0)
142
+ rubocop (~> 1.33)
108
143
  rubocop-rake (0.6.0)
109
144
  rubocop (~> 1.0)
110
- rubocop-rspec (2.16.0)
145
+ rubocop-rspec (2.24.1)
111
146
  rubocop (~> 1.33)
112
- ruby-progressbar (1.11.0)
147
+ rubocop-capybara (~> 2.17)
148
+ rubocop-factory_bot (~> 2.22)
149
+ ruby-progressbar (1.13.0)
113
150
  ruby2_keywords (0.0.5)
114
151
  ruby2ruby (2.5.0)
115
152
  ruby_parser (~> 3.1)
116
153
  sexp_processor (~> 4.6)
117
- ruby_gpg2 (0.8.0)
118
- lino (>= 1.5)
119
- ruby_parser (3.19.2)
154
+ ruby_git_crypt (0.1.0.pre.2)
155
+ immutable-struct (~> 2.4)
156
+ lino (~> 3.0)
157
+ ruby_gpg2 (0.10.0)
158
+ lino (~> 3.0)
159
+ ruby_parser (3.20.3)
120
160
  sexp_processor (~> 4.16)
121
161
  sawyer (0.9.2)
122
162
  addressable (>= 2.3.5)
123
163
  faraday (>= 0.17.3, < 3)
124
- sexp_processor (4.16.1)
164
+ sexp_processor (4.17.0)
125
165
  shikashi (0.6.0)
126
166
  evalhook (>= 0.6.0)
127
167
  getsource (>= 0.1.0)
128
- simplecov (0.21.2)
168
+ simplecov (0.22.0)
129
169
  docile (~> 1.1)
130
170
  simplecov-html (~> 0.11)
131
171
  simplecov_json_formatter (~> 0.1)
132
172
  simplecov-html (0.12.3)
133
173
  simplecov_json_formatter (0.1.4)
134
174
  sshkey (2.0.0)
135
- tzinfo (2.0.5)
175
+ tzinfo (2.0.6)
136
176
  concurrent-ruby (~> 1.0)
137
- unicode-display_width (2.3.0)
138
- vault (0.17.0)
177
+ unicode-display_width (2.5.0)
178
+ vault (0.18.1)
139
179
  aws-sigv4
140
180
 
141
181
  PLATFORMS
142
182
  arm64-darwin-21
183
+ arm64-darwin-22
184
+ ruby
185
+ x86_64-darwin-19
143
186
  x86_64-darwin-20
144
187
  x86_64-darwin-21
145
188
  x86_64-linux
@@ -150,6 +193,8 @@ DEPENDENCIES
150
193
  gem-release
151
194
  rake
152
195
  rake_circle_ci
196
+ rake_git
197
+ rake_git_crypt
153
198
  rake_github
154
199
  rake_gpg
155
200
  rake_ssh
@@ -160,4 +205,4 @@ DEPENDENCIES
160
205
  simplecov
161
206
 
162
207
  BUNDLED WITH
163
- 2.3.26
208
+ 2.4.17
data/Rakefile CHANGED
@@ -1,25 +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
- File.write('config/secrets/ci/encryption.passphrase',
22
- SecureRandom.base64(36))
52
+ task generate: ['directory:ensure'] do
53
+ File.write(
54
+ 'config/secrets/ci/encryption.passphrase',
55
+ SecureRandom.base64(36)
56
+ )
23
57
  end
24
58
  end
25
59
  end
@@ -43,6 +77,36 @@ namespace :keys do
43
77
  end
44
78
  end
45
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
+
46
110
  RuboCop::RakeTask.new
47
111
 
48
112
  namespace :library do
@@ -50,7 +114,7 @@ namespace :library do
50
114
  task check: [:rubocop]
51
115
 
52
116
  desc 'Attempt to automatically fix issues with the library'
53
- task fix: [:'rubocop:autocorrect']
117
+ task fix: [:'rubocop:autocorrect_all']
54
118
  end
55
119
 
56
120
  namespace :test do
@@ -100,7 +164,6 @@ end
100
164
  namespace :pipeline do
101
165
  desc 'Prepare CircleCI Pipeline'
102
166
  task prepare: %i[
103
- circle_ci:project:follow
104
167
  circle_ci:env_vars:ensure
105
168
  circle_ci:checkout_keys:ensure
106
169
  circle_ci:ssh_keys:ensure
data/confidante.gemspec CHANGED
@@ -47,6 +47,8 @@ Gem::Specification.new do |spec|
47
47
  spec.add_development_dependency 'gem-release'
48
48
  spec.add_development_dependency 'rake'
49
49
  spec.add_development_dependency 'rake_circle_ci'
50
+ spec.add_development_dependency 'rake_git'
51
+ spec.add_development_dependency 'rake_git_crypt'
50
52
  spec.add_development_dependency 'rake_github'
51
53
  spec.add_development_dependency 'rake_gpg'
52
54
  spec.add_development_dependency 'rake_ssh'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Confidante
4
- VERSION = '0.28.0'
4
+ VERSION = '0.29.0.pre.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: confidante
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.0
4
+ version: 0.29.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: 2022-12-22 00:00:00.000000000 Z
11
+ date: 2023-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -122,6 +122,34 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rake_git
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_git_crypt
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'
125
153
  - !ruby/object:Gem::Dependency
126
154
  name: rake_github
127
155
  requirement: !ruby/object:Gem::Requirement
@@ -276,9 +304,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
276
304
  version: '2.7'
277
305
  required_rubygems_version: !ruby/object:Gem::Requirement
278
306
  requirements:
279
- - - ">="
307
+ - - ">"
280
308
  - !ruby/object:Gem::Version
281
- version: '0'
309
+ version: 1.3.1
282
310
  requirements: []
283
311
  rubygems_version: 3.1.6
284
312
  signing_key: