ruby_git_crypt 0.1.0.pre.2 → 0.1.0.pre.4

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: 65d25a6f744b2583106ae7d4e3798b745aaa74527444db07c28efb2ef6a6531c
4
- data.tar.gz: ecdef79e8352ad59297b8bfbfb27653607bac587cbb2b8145a6a5df6ca4b51f6
3
+ metadata.gz: f0df1991d22e1ad0046977682a2dbbd5647f12df0b3877004811bfedfde7b5d0
4
+ data.tar.gz: 8214db53cf08e1b85dc59df1e1de6d498e1a763ac63dcbcef73a5d4e28b15e45
5
5
  SHA512:
6
- metadata.gz: f9ac76ca228d8698ba35721a685829d9b4798254714f04cafda04cda16709cc826ff3e624c4a179fd67f94923ca1f307748030f62c99d290bdf018b8dcbec053
7
- data.tar.gz: 9a0fd917ab50a2ebd7f5c497d79352bac20cb4b017bdee8627768581798899216215bf89592684e0b2ac494b0754404b0ca950c37af1342b70ba8d2d5b52293a
6
+ metadata.gz: 9a2ec9216889b34f0ed46635531b91aff17c797f54f277fadbac48139afa7439faf4e5c427aabe5b2d0776c4d15c7fb6565b71e65a2ab9825cebafa9170a2bf8
7
+ data.tar.gz: 230ab9587fd4fa377cccf5de6505db9c7847537fec4f69d816ea8ed9d73e8b106b480d2edc5d6d1fed4a0fa2669d1b6f92fcbccd8c7a4c5024b2264ba2007d4b
data/Gemfile.lock CHANGED
@@ -1,37 +1,51 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_git_crypt (0.1.0.pre.2)
4
+ ruby_git_crypt (0.1.0.pre.4)
5
5
  immutable-struct (~> 2.4)
6
6
  lino (~> 3.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (7.0.4)
11
+ activesupport (7.1.1)
12
+ base64
13
+ bigdecimal
12
14
  concurrent-ruby (~> 1.0, >= 1.0.2)
15
+ connection_pool (>= 2.2.5)
16
+ drb
13
17
  i18n (>= 1.6, < 2)
14
18
  minitest (>= 5.1)
19
+ mutex_m
15
20
  tzinfo (~> 2.0)
16
- addressable (2.8.1)
21
+ addressable (2.8.5)
17
22
  public_suffix (>= 2.0.2, < 6.0)
18
23
  ast (2.4.2)
24
+ base64 (0.1.1)
25
+ bigdecimal (3.1.4)
19
26
  coderay (1.1.3)
20
27
  colored2 (3.1.2)
21
- concurrent-ruby (1.1.10)
28
+ concurrent-ruby (1.2.2)
29
+ connection_pool (2.4.1)
22
30
  diff-lcs (1.5.0)
23
31
  docile (1.4.0)
24
- excon (0.95.0)
25
- faker (3.1.0)
32
+ drb (2.1.1)
33
+ ruby2_keywords
34
+ excon (0.104.0)
35
+ faker (3.2.1)
26
36
  i18n (>= 1.8.11, < 2)
27
- faraday (2.7.2)
37
+ faraday (2.7.11)
38
+ base64
28
39
  faraday-net_http (>= 2.0, < 3.1)
29
40
  ruby2_keywords (>= 0.0.4)
30
41
  faraday-net_http (3.0.2)
31
- ffi (1.15.5)
42
+ ffi (1.16.3)
32
43
  formatador (1.1.0)
33
44
  gem-release (2.2.2)
34
- guard (2.18.0)
45
+ git (1.18.0)
46
+ addressable (~> 2.8)
47
+ rchardet (~> 1.8)
48
+ guard (2.18.1)
35
49
  formatador (>= 0.2.4)
36
50
  listen (>= 2.7, < 4.0)
37
51
  lumberjack (>= 1.0.12, < 2.0)
@@ -47,44 +61,57 @@ GEM
47
61
  rspec (>= 2.99.0, < 4.0)
48
62
  hamster (3.0.0)
49
63
  concurrent-ruby (~> 1.0)
50
- i18n (1.12.0)
64
+ i18n (1.14.1)
51
65
  concurrent-ruby (~> 1.0)
52
66
  immutable-struct (2.4.1)
53
67
  json (2.6.3)
68
+ language_server-protocol (3.17.0.3)
54
69
  lino (3.1.0)
55
70
  hamster (~> 3.0)
56
71
  open4 (~> 1.3)
57
- listen (3.7.1)
72
+ listen (3.8.0)
58
73
  rb-fsevent (~> 0.10, >= 0.10.3)
59
74
  rb-inotify (~> 0.9, >= 0.9.10)
60
- lumberjack (1.2.8)
75
+ lumberjack (1.2.9)
61
76
  method_source (1.0.0)
62
- minitest (5.17.0)
77
+ minitest (5.20.0)
78
+ mutex_m (0.1.2)
63
79
  nenv (0.3.0)
64
80
  notiffany (0.1.3)
65
81
  nenv (~> 0.1)
66
82
  shellany (~> 0.0)
67
- octokit (6.0.1)
83
+ octokit (6.1.1)
68
84
  faraday (>= 1, < 3)
69
85
  sawyer (~> 0.9)
70
86
  open4 (1.3.4)
71
- parallel (1.22.1)
72
- parser (3.1.3.0)
87
+ parallel (1.23.0)
88
+ parser (3.2.2.4)
73
89
  ast (~> 2.4.1)
74
- pry (0.14.1)
90
+ racc
91
+ pry (0.14.2)
75
92
  coderay (~> 1.1)
76
93
  method_source (~> 1.0)
77
- public_suffix (5.0.1)
94
+ public_suffix (5.0.3)
95
+ racc (1.7.1)
78
96
  rainbow (3.1.1)
79
- rake (13.0.6)
97
+ rake (13.1.0)
80
98
  rake_circle_ci (0.11.0)
81
99
  colored2 (~> 3.1)
82
100
  excon (~> 0.72)
83
101
  rake_factory (~> 0.23)
84
102
  sshkey (~> 2.0)
85
- rake_factory (0.31.0)
103
+ rake_factory (0.32.0.pre.2)
86
104
  activesupport (>= 4)
87
105
  rake (~> 13.0)
106
+ rake_git (0.1.0.pre.8)
107
+ colored2 (~> 3.1)
108
+ git (~> 1.13, >= 1.13.2)
109
+ rake_factory (= 0.32.0.pre.2)
110
+ rake_git_crypt (0.1.0.pre.27)
111
+ colored2 (~> 3.1)
112
+ rake_factory (= 0.32.0.pre.2)
113
+ ruby_git_crypt (= 0.1.0.pre.2)
114
+ ruby_gpg2 (~> 0.6)
88
115
  rake_github (0.11.0)
89
116
  colored2 (~> 3.1)
90
117
  octokit (>= 4.16, < 7.0)
@@ -93,45 +120,53 @@ GEM
93
120
  rake_gpg (0.18.0)
94
121
  rake_factory (~> 0.23)
95
122
  ruby_gpg2 (~> 0.6)
96
- rake_ssh (0.8.0)
123
+ rake_ssh (0.10.0)
97
124
  colored2 (~> 3.1)
98
125
  rake_factory (~> 0.23)
99
126
  sshkey (~> 2.0)
100
127
  rb-fsevent (0.11.2)
101
128
  rb-inotify (0.10.1)
102
129
  ffi (~> 1.0)
103
- regexp_parser (2.6.1)
104
- rexml (3.2.5)
130
+ rchardet (1.8.0)
131
+ regexp_parser (2.8.2)
132
+ rexml (3.2.6)
105
133
  rspec (3.12.0)
106
134
  rspec-core (~> 3.12.0)
107
135
  rspec-expectations (~> 3.12.0)
108
136
  rspec-mocks (~> 3.12.0)
109
- rspec-core (3.12.0)
137
+ rspec-core (3.12.2)
110
138
  rspec-support (~> 3.12.0)
111
- rspec-expectations (3.12.1)
139
+ rspec-expectations (3.12.3)
112
140
  diff-lcs (>= 1.2.0, < 2.0)
113
141
  rspec-support (~> 3.12.0)
114
- rspec-mocks (3.12.1)
142
+ rspec-mocks (3.12.6)
115
143
  diff-lcs (>= 1.2.0, < 2.0)
116
144
  rspec-support (~> 3.12.0)
117
- rspec-support (3.12.0)
118
- rubocop (1.42.0)
145
+ rspec-support (3.12.1)
146
+ rubocop (1.57.2)
119
147
  json (~> 2.3)
148
+ language_server-protocol (>= 3.17.0)
120
149
  parallel (~> 1.10)
121
- parser (>= 3.1.2.1)
150
+ parser (>= 3.2.2.4)
122
151
  rainbow (>= 2.2.2, < 4.0)
123
152
  regexp_parser (>= 1.8, < 3.0)
124
153
  rexml (>= 3.2.5, < 4.0)
125
- rubocop-ast (>= 1.24.1, < 2.0)
154
+ rubocop-ast (>= 1.28.1, < 2.0)
126
155
  ruby-progressbar (~> 1.7)
127
- unicode-display_width (>= 1.4.0, < 3.0)
128
- rubocop-ast (1.24.1)
129
- parser (>= 3.1.1.0)
156
+ unicode-display_width (>= 2.4.0, < 3.0)
157
+ rubocop-ast (1.30.0)
158
+ parser (>= 3.2.1.0)
159
+ rubocop-capybara (2.19.0)
160
+ rubocop (~> 1.41)
161
+ rubocop-factory_bot (2.24.0)
162
+ rubocop (~> 1.33)
130
163
  rubocop-rake (0.6.0)
131
164
  rubocop (~> 1.0)
132
- rubocop-rspec (2.16.0)
133
- rubocop (~> 1.33)
134
- ruby-progressbar (1.11.0)
165
+ rubocop-rspec (2.25.0)
166
+ rubocop (~> 1.40)
167
+ rubocop-capybara (~> 2.17)
168
+ rubocop-factory_bot (~> 2.22)
169
+ ruby-progressbar (1.13.0)
135
170
  ruby2_keywords (0.0.5)
136
171
  ruby_gpg2 (0.10.0)
137
172
  lino (~> 3.0)
@@ -147,18 +182,19 @@ GEM
147
182
  simplecov_json_formatter (0.1.4)
148
183
  sshkey (2.0.0)
149
184
  terminal-notifier-guard (1.7.0)
150
- thor (1.2.1)
151
- tzinfo (2.0.5)
185
+ thor (1.3.0)
186
+ tzinfo (2.0.6)
152
187
  concurrent-ruby (~> 1.0)
153
- unicode-display_width (2.3.0)
154
- webrick (1.7.0)
155
- yard (0.9.28)
156
- webrick (~> 1.7.0)
188
+ unicode-display_width (2.5.0)
189
+ yard (0.9.34)
157
190
 
158
191
  PLATFORMS
159
192
  arm64-darwin-21
193
+ arm64-darwin-22
160
194
  ruby
161
195
  x86_64-darwin-19
196
+ x86_64-darwin-20
197
+ x86_64-darwin-21
162
198
  x86_64-linux
163
199
 
164
200
  DEPENDENCIES
@@ -169,6 +205,8 @@ DEPENDENCIES
169
205
  guard-rspec
170
206
  rake
171
207
  rake_circle_ci
208
+ rake_git
209
+ rake_git_crypt
172
210
  rake_github
173
211
  rake_gpg
174
212
  rake_ssh
@@ -182,4 +220,4 @@ DEPENDENCIES
182
220
  yard
183
221
 
184
222
  BUNDLED WITH
185
- 2.4.3
223
+ 2.4.17
data/Rakefile CHANGED
@@ -1,20 +1,45 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'yaml'
4
- require 'yard'
5
3
  require 'rake_circle_ci'
4
+ require 'rake_git'
5
+ require 'rake_git_crypt'
6
6
  require 'rake_github'
7
- require 'rake_ssh'
8
7
  require 'rake_gpg'
9
- require 'securerandom'
8
+ require 'rake_ssh'
10
9
  require 'rspec/core/rake_task'
11
10
  require 'rubocop/rake_task'
11
+ require 'securerandom'
12
+ require 'yaml'
13
+ require 'yard'
12
14
 
13
15
  task default: %i[
14
16
  library:fix
15
17
  test:unit
16
18
  ]
17
19
 
20
+ RakeGitCrypt.define_standard_tasks(
21
+ namespace: :git_crypt,
22
+
23
+ provision_secrets_task_name: :'secrets:provision',
24
+ destroy_secrets_task_name: :'secrets:destroy',
25
+
26
+ install_commit_task_name: :'git:commit',
27
+ uninstall_commit_task_name: :'git:commit',
28
+
29
+ gpg_user_key_paths: %w[
30
+ config/gpg
31
+ config/secrets/ci/gpg.public
32
+ ]
33
+ )
34
+
35
+ namespace :git do
36
+ RakeGit.define_commit_task(
37
+ argument_names: [:message]
38
+ ) do |t, args|
39
+ t.message = args.message
40
+ end
41
+ end
42
+
18
43
  namespace :encryption do
19
44
  namespace :directory do
20
45
  desc 'Ensure CI secrets directory exists.'
@@ -24,10 +49,12 @@ namespace :encryption do
24
49
  end
25
50
 
26
51
  namespace :passphrase do
27
- desc 'Generate encryption passphrase used by CI.'
52
+ desc 'Generate encryption passphrase for CI GPG key'
28
53
  task generate: ['directory:ensure'] do
29
- File.write('config/secrets/ci/encryption.passphrase',
30
- SecureRandom.base64(36))
54
+ File.write(
55
+ 'config/secrets/ci/encryption.passphrase',
56
+ SecureRandom.base64(36)
57
+ )
31
58
  end
32
59
  end
33
60
  end
@@ -52,12 +79,33 @@ namespace :keys do
52
79
  end
53
80
 
54
81
  namespace :secrets do
55
- desc 'Regenerate all generatable secrets.'
56
- task regenerate: %w[
82
+ namespace :directory do
83
+ desc 'Ensure secrets directory exists and is set up correctly'
84
+ task :ensure do
85
+ FileUtils.mkdir_p('config/secrets')
86
+ unless File.exist?('config/secrets/.unlocked')
87
+ File.write('config/secrets/.unlocked', 'true')
88
+ end
89
+ end
90
+ end
91
+
92
+ desc 'Generate all generatable secrets.'
93
+ task generate: %w[
57
94
  encryption:passphrase:generate
58
95
  keys:deploy:generate
59
96
  keys:gpg:generate
60
97
  ]
98
+
99
+ desc 'Provision all secrets.'
100
+ task provision: [:generate]
101
+
102
+ desc 'Delete all secrets.'
103
+ task :destroy do
104
+ rm_rf 'config/secrets'
105
+ end
106
+
107
+ desc 'Rotate all secrets.'
108
+ task rotate: [:'git_crypt:reinstall']
61
109
  end
62
110
 
63
111
  RuboCop::RakeTask.new
@@ -2,9 +2,9 @@
2
2
 
3
3
  require 'immutable-struct'
4
4
 
5
- require_relative './name'
6
- require_relative './types'
7
- require_relative './values'
5
+ require_relative 'name'
6
+ require_relative 'types'
7
+ require_relative 'values'
8
8
 
9
9
  module RubyGitCrypt
10
10
  module Options
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyGitCrypt
4
- VERSION = '0.1.0.pre.2'
4
+ VERSION = '0.1.0.pre.4'
5
5
  end
@@ -48,6 +48,8 @@ Gem::Specification.new do |spec|
48
48
  spec.add_development_dependency 'guard-rspec'
49
49
  spec.add_development_dependency 'rake'
50
50
  spec.add_development_dependency 'rake_circle_ci'
51
+ spec.add_development_dependency 'rake_git'
52
+ spec.add_development_dependency 'rake_git_crypt'
51
53
  spec.add_development_dependency 'rake_github'
52
54
  spec.add_development_dependency 'rake_gpg'
53
55
  spec.add_development_dependency 'rake_ssh'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_git_crypt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.2
4
+ version: 0.1.0.pre.4
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-07 00:00:00.000000000 Z
11
+ date: 2023-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: immutable-struct
@@ -136,6 +136,34 @@ dependencies:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rake_git
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_git_crypt
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'
139
167
  - !ruby/object:Gem::Dependency
140
168
  name: rake_github
141
169
  requirement: !ruby/object:Gem::Requirement