rake_ssh 0.9.0.pre.1 → 0.9.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: 6dfe6cdae524d7c976c3d643b18956f3b0a1b0392b7332870e3502f969acaf6b
4
- data.tar.gz: 41029c137ff73bba356b63f64bda3cad748b79159fe73fcbfac5abdf7e4c4766
3
+ metadata.gz: 461c60a986424db7cec74524dfff324bb20f29d6d4d6ceaa41382948b29aa21c
4
+ data.tar.gz: b6b5bca1d2d8d818bc50c07ec8f0a63c15d38a8d09f57a871ba0d624ffd49eb5
5
5
  SHA512:
6
- metadata.gz: 5263d8ef7a1400e756bdfcd1d665181779dfc82a2da07cb3f24013c70a01237e6694a8c2a2c77427477a0c1d307b672f6c2f651d375b3c25ab0440d056f79996
7
- data.tar.gz: d90f4a63a0cca54a1aae5407953306f72a2f9dfb8f6ffc6642eccf21236f7779791cae58c5d6f3be33fe92085a3a98c5066e29fd5c70d6b1456281566e437601
6
+ metadata.gz: a67af45520b12d5edc368bbdfd590c2f0f9c476d40d29694bccadba936ecc55dce6e324ea9ca863a3e543cab9da74546e0e0998d7267fd58c28353590f80f784
7
+ data.tar.gz: f9a43b29ddd8b6edcb4ab76c99ec12dd21b3d1a4df222e2dd86c26e5148edaac0301be2eba529a1f010e10264708449604e4cd171498aa70132103fb75f8ad4b
data/Gemfile CHANGED
@@ -4,3 +4,19 @@ source 'https://rubygems.org'
4
4
 
5
5
  # Specify your gem's dependencies in rake_docker.gemspec
6
6
  gemspec
7
+
8
+ gem 'activesupport'
9
+ gem 'bundler'
10
+ gem 'gem-release'
11
+ gem 'memfs'
12
+ gem 'rake'
13
+ gem 'rake_circle_ci'
14
+ gem 'rake_git'
15
+ gem 'rake_git_crypt'
16
+ gem 'rake_github'
17
+ gem 'rake_gpg'
18
+ gem 'rspec'
19
+ gem 'rubocop'
20
+ gem 'rubocop-rake'
21
+ gem 'rubocop-rspec'
22
+ gem 'simplecov'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_ssh (0.9.0.pre.1)
4
+ rake_ssh (0.9.0.pre.2)
5
5
  colored2 (~> 3.1)
6
6
  rake_factory (~> 0.23)
7
7
  sshkey (~> 2.0)
@@ -9,40 +9,44 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activesupport (7.0.4)
12
+ activesupport (7.0.4.3)
13
13
  concurrent-ruby (~> 1.0, >= 1.0.2)
14
14
  i18n (>= 1.6, < 2)
15
15
  minitest (>= 5.1)
16
16
  tzinfo (~> 2.0)
17
- addressable (2.8.1)
17
+ addressable (2.8.4)
18
18
  public_suffix (>= 2.0.2, < 6.0)
19
19
  ast (2.4.2)
20
20
  colored2 (3.1.2)
21
- concurrent-ruby (1.1.10)
21
+ concurrent-ruby (1.2.2)
22
22
  diff-lcs (1.5.0)
23
23
  docile (1.4.0)
24
- excon (0.95.0)
25
- faraday (2.7.2)
24
+ excon (0.99.0)
25
+ faraday (2.7.4)
26
26
  faraday-net_http (>= 2.0, < 3.1)
27
27
  ruby2_keywords (>= 0.0.4)
28
28
  faraday-net_http (3.0.2)
29
29
  gem-release (2.2.2)
30
+ git (1.18.0)
31
+ addressable (~> 2.8)
32
+ rchardet (~> 1.8)
30
33
  hamster (3.0.0)
31
34
  concurrent-ruby (~> 1.0)
32
35
  i18n (1.12.0)
33
36
  concurrent-ruby (~> 1.0)
37
+ immutable-struct (2.4.1)
34
38
  json (2.6.3)
35
39
  lino (3.1.0)
36
40
  hamster (~> 3.0)
37
41
  open4 (~> 1.3)
38
42
  memfs (1.0.0)
39
- minitest (5.17.0)
40
- octokit (6.0.1)
43
+ minitest (5.18.0)
44
+ octokit (6.1.1)
41
45
  faraday (>= 1, < 3)
42
46
  sawyer (~> 0.9)
43
47
  open4 (1.3.4)
44
48
  parallel (1.22.1)
45
- parser (3.1.3.0)
49
+ parser (3.2.2.0)
46
50
  ast (~> 2.4.1)
47
51
  public_suffix (5.0.1)
48
52
  rainbow (3.1.1)
@@ -52,9 +56,18 @@ GEM
52
56
  excon (~> 0.72)
53
57
  rake_factory (~> 0.23)
54
58
  sshkey (~> 2.0)
55
- rake_factory (0.31.0)
59
+ rake_factory (0.32.0.pre.2)
56
60
  activesupport (>= 4)
57
61
  rake (~> 13.0)
62
+ rake_git (0.1.0.pre.7)
63
+ colored2 (~> 3.1)
64
+ git (~> 1.13, >= 1.13.2)
65
+ rake_factory (= 0.32.0.pre.2)
66
+ rake_git_crypt (0.1.0.pre.26)
67
+ colored2 (~> 3.1)
68
+ rake_factory (= 0.32.0.pre.2)
69
+ ruby_git_crypt (= 0.1.0.pre.2)
70
+ ruby_gpg2 (~> 0.6)
58
71
  rake_github (0.11.0)
59
72
  colored2 (~> 3.1)
60
73
  octokit (>= 4.16, < 7.0)
@@ -63,39 +76,46 @@ GEM
63
76
  rake_gpg (0.18.0)
64
77
  rake_factory (~> 0.23)
65
78
  ruby_gpg2 (~> 0.6)
66
- regexp_parser (2.6.1)
79
+ rchardet (1.8.0)
80
+ regexp_parser (2.7.0)
67
81
  rexml (3.2.5)
68
82
  rspec (3.12.0)
69
83
  rspec-core (~> 3.12.0)
70
84
  rspec-expectations (~> 3.12.0)
71
85
  rspec-mocks (~> 3.12.0)
72
- rspec-core (3.12.0)
86
+ rspec-core (3.12.1)
73
87
  rspec-support (~> 3.12.0)
74
- rspec-expectations (3.12.1)
88
+ rspec-expectations (3.12.2)
75
89
  diff-lcs (>= 1.2.0, < 2.0)
76
90
  rspec-support (~> 3.12.0)
77
- rspec-mocks (3.12.1)
91
+ rspec-mocks (3.12.5)
78
92
  diff-lcs (>= 1.2.0, < 2.0)
79
93
  rspec-support (~> 3.12.0)
80
94
  rspec-support (3.12.0)
81
- rubocop (1.42.0)
95
+ rubocop (1.50.0)
82
96
  json (~> 2.3)
83
97
  parallel (~> 1.10)
84
- parser (>= 3.1.2.1)
98
+ parser (>= 3.2.0.0)
85
99
  rainbow (>= 2.2.2, < 4.0)
86
100
  regexp_parser (>= 1.8, < 3.0)
87
101
  rexml (>= 3.2.5, < 4.0)
88
- rubocop-ast (>= 1.24.1, < 2.0)
102
+ rubocop-ast (>= 1.28.0, < 2.0)
89
103
  ruby-progressbar (~> 1.7)
90
- unicode-display_width (>= 1.4.0, < 3.0)
91
- rubocop-ast (1.24.1)
92
- parser (>= 3.1.1.0)
104
+ unicode-display_width (>= 2.4.0, < 3.0)
105
+ rubocop-ast (1.28.0)
106
+ parser (>= 3.2.1.0)
107
+ rubocop-capybara (2.17.1)
108
+ rubocop (~> 1.41)
93
109
  rubocop-rake (0.6.0)
94
110
  rubocop (~> 1.0)
95
- rubocop-rspec (2.16.0)
111
+ rubocop-rspec (2.19.0)
96
112
  rubocop (~> 1.33)
97
- ruby-progressbar (1.11.0)
113
+ rubocop-capybara (~> 2.17)
114
+ ruby-progressbar (1.13.0)
98
115
  ruby2_keywords (0.0.5)
116
+ ruby_git_crypt (0.1.0.pre.2)
117
+ immutable-struct (~> 2.4)
118
+ lino (~> 3.0)
99
119
  ruby_gpg2 (0.10.0)
100
120
  lino (~> 3.0)
101
121
  sawyer (0.9.2)
@@ -108,9 +128,9 @@ GEM
108
128
  simplecov-html (0.12.3)
109
129
  simplecov_json_formatter (0.1.4)
110
130
  sshkey (2.0.0)
111
- tzinfo (2.0.5)
131
+ tzinfo (2.0.6)
112
132
  concurrent-ruby (~> 1.0)
113
- unicode-display_width (2.3.0)
133
+ unicode-display_width (2.4.2)
114
134
 
115
135
  PLATFORMS
116
136
  ruby
@@ -122,6 +142,8 @@ DEPENDENCIES
122
142
  memfs
123
143
  rake
124
144
  rake_circle_ci
145
+ rake_git
146
+ rake_git_crypt
125
147
  rake_github
126
148
  rake_gpg
127
149
  rake_ssh!
@@ -132,4 +154,4 @@ DEPENDENCIES
132
154
  simplecov
133
155
 
134
156
  BUNDLED WITH
135
- 2.4.2
157
+ 2.4.12
data/Rakefile CHANGED
@@ -1,24 +1,55 @@
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
- desc 'Generate encryption passphrase for CI GPG key'
20
- task :generate do
21
- FileUtils.mkdir_p('config/secrets/ci/')
51
+ desc 'Generate encryption passphrase used by CI.'
52
+ task generate: ['directory:ensure'] do
22
53
  File.write('config/secrets/ci/encryption.passphrase',
23
54
  SecureRandom.base64(36))
24
55
  end
@@ -44,6 +75,26 @@ namespace :keys do
44
75
  end
45
76
  end
46
77
 
78
+ namespace :secrets do
79
+ desc 'Generate all generatable secrets.'
80
+ task generate: %w[
81
+ encryption:passphrase:generate
82
+ keys:deploy:generate
83
+ keys:gpg:generate
84
+ ]
85
+
86
+ desc 'Provision all secrets.'
87
+ task provision: [:generate]
88
+
89
+ desc 'Delete all secrets.'
90
+ task :destroy do
91
+ rm_rf 'config/secrets'
92
+ end
93
+
94
+ desc 'Rotate all secrets.'
95
+ task rotate: [:'git_crypt:reinstall']
96
+ end
97
+
47
98
  RuboCop::RakeTask.new
48
99
 
49
100
  namespace :library do
@@ -16,6 +16,8 @@ module RakeSSH
16
16
  parameter :comment
17
17
  parameter :passphrase
18
18
 
19
+ parameter :argument_names
20
+
19
21
  parameter :generate_task_name, default: :generate
20
22
 
21
23
  task Tasks::Key::Generate,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RakeSSH
4
- VERSION = '0.9.0.pre.1'
4
+ VERSION = '0.9.0.pre.2'
5
5
  end
data/rake_ssh.gemspec CHANGED
@@ -39,20 +39,5 @@ Gem::Specification.new do |spec|
39
39
  spec.add_dependency 'rake_factory', '~> 0.23'
40
40
  spec.add_dependency 'sshkey', '~> 2.0'
41
41
 
42
- spec.add_development_dependency 'activesupport'
43
- spec.add_development_dependency 'bundler'
44
- spec.add_development_dependency 'gem-release'
45
- spec.add_development_dependency 'memfs'
46
- spec.add_development_dependency 'rake'
47
- spec.add_development_dependency 'rake_circle_ci'
48
- spec.add_development_dependency 'rake_github'
49
- spec.add_development_dependency 'rake_gpg'
50
- spec.add_development_dependency 'rake_ssh'
51
- spec.add_development_dependency 'rspec'
52
- spec.add_development_dependency 'rubocop'
53
- spec.add_development_dependency 'rubocop-rake'
54
- spec.add_development_dependency 'rubocop-rspec'
55
- spec.add_development_dependency 'simplecov'
56
-
57
42
  spec.metadata['rubygems_mfa_required'] = 'false'
58
43
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_ssh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0.pre.1
4
+ version: 0.9.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-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colored2
@@ -52,202 +52,6 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2.0'
55
- - !ruby/object:Gem::Dependency
56
- name: activesupport
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: bundler
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: gem-release
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: memfs
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
55
  description: Allows generation of SSH keys.
252
56
  email:
253
57
  - maintainers@infrablocks.io