rake_git_crypt 0.1.0.pre.26 → 0.1.0.pre.27

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: 1b54ce36cdc12333f085a45dc654d80a7751ae1e8935dfa4dd720674e24788cf
4
- data.tar.gz: 7aa773748859b52d1d011d23141909077931b34d78034599b64a21a43df454a0
3
+ metadata.gz: b4058f5ced81249f885e4c2897a57bbf29aabfdae4b1a138e0ae773da1a568b0
4
+ data.tar.gz: a4ebe655d7ad41854c47b6e69c01143b082baf58b4497ef3a0707a051c3e478c
5
5
  SHA512:
6
- metadata.gz: 945aaf1584e0a7eca55a8c407ea3c698b2f673a9f6162112c9f810257b43ac9c9dce8e8e32e142306eb006d189f42384a0c55845e6dff4ead4835e47d798855c
7
- data.tar.gz: 3c0bc855f61c39e447e0107304739fc29486d33f881be39567efb9de1bcda221583ca8f7bc933bfbe397feae50ffbe4ad2e4d1e7688fed006ae538f851244c09
6
+ metadata.gz: 1d300f4a0665b810c9dfaefb2a776b7359f13d73e2e6a759cd2a30a884027c92df10adbd6a3f5edb7c641fead45a3b4e182e29695b8a06c3e3bd4bb39fa700d1
7
+ data.tar.gz: 861712ff1e207675a2e60128a79ef1f10caae42fe4a89f39e8d014d60ff57b3e95271e2725f4658984d86f63a48addf96da45521b1ae59b5f8794fd0cb6e01a3
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
@@ -71,4 +72,5 @@ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
71
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 CHANGED
@@ -11,6 +11,7 @@ gem 'gem-release'
11
11
  gem 'memfs'
12
12
  gem 'rake'
13
13
  gem 'rake_circle_ci'
14
+ gem 'rake_git'
14
15
  gem 'rake_github'
15
16
  gem 'rake_gpg'
16
17
  gem 'rake_ssh'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_git_crypt (0.1.0.pre.26)
4
+ rake_git_crypt (0.1.0.pre.27)
5
5
  colored2 (~> 3.1)
6
6
  rake_factory (= 0.32.0.pre.2)
7
7
  ruby_git_crypt (= 0.1.0.pre.2)
@@ -10,45 +10,63 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- activesupport (7.0.4.2)
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.2.0)
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
- excon (0.98.0)
26
- faraday (2.7.4)
33
+ drb (2.1.1)
34
+ ruby2_keywords
35
+ excon (0.104.0)
36
+ faraday (2.7.11)
37
+ base64
27
38
  faraday-net_http (>= 2.0, < 3.1)
28
39
  ruby2_keywords (>= 0.0.4)
29
40
  faraday-net_http (3.0.2)
30
41
  gem-release (2.2.2)
42
+ git (1.18.0)
43
+ addressable (~> 2.8)
44
+ rchardet (~> 1.8)
31
45
  hamster (3.0.0)
32
46
  concurrent-ruby (~> 1.0)
33
- i18n (1.12.0)
47
+ i18n (1.14.1)
34
48
  concurrent-ruby (~> 1.0)
35
49
  immutable-struct (2.4.1)
36
50
  json (2.6.3)
51
+ language_server-protocol (3.17.0.3)
37
52
  lino (3.1.0)
38
53
  hamster (~> 3.0)
39
54
  open4 (~> 1.3)
40
55
  memfs (1.0.0)
41
- minitest (5.17.0)
42
- octokit (6.0.1)
56
+ minitest (5.20.0)
57
+ mutex_m (0.1.2)
58
+ octokit (6.1.1)
43
59
  faraday (>= 1, < 3)
44
60
  sawyer (~> 0.9)
45
61
  open4 (1.3.4)
46
- parallel (1.22.1)
47
- parser (3.2.0.0)
62
+ parallel (1.23.0)
63
+ parser (3.2.2.4)
48
64
  ast (~> 2.4.1)
49
- public_suffix (5.0.1)
65
+ racc
66
+ public_suffix (5.0.3)
67
+ racc (1.7.1)
50
68
  rainbow (3.1.1)
51
- rake (13.0.6)
69
+ rake (13.1.0)
52
70
  rake_circle_ci (0.11.0)
53
71
  colored2 (~> 3.1)
54
72
  excon (~> 0.72)
@@ -57,6 +75,10 @@ GEM
57
75
  rake_factory (0.32.0.pre.2)
58
76
  activesupport (>= 4)
59
77
  rake (~> 13.0)
78
+ rake_git (0.1.0.pre.8)
79
+ colored2 (~> 3.1)
80
+ git (~> 1.13, >= 1.13.2)
81
+ rake_factory (= 0.32.0.pre.2)
60
82
  rake_github (0.11.0)
61
83
  colored2 (~> 3.1)
62
84
  octokit (>= 4.16, < 7.0)
@@ -65,45 +87,50 @@ GEM
65
87
  rake_gpg (0.18.0)
66
88
  rake_factory (~> 0.23)
67
89
  ruby_gpg2 (~> 0.6)
68
- rake_ssh (0.8.0)
90
+ rake_ssh (0.10.0)
69
91
  colored2 (~> 3.1)
70
92
  rake_factory (~> 0.23)
71
93
  sshkey (~> 2.0)
72
- regexp_parser (2.6.2)
73
- rexml (3.2.5)
94
+ rchardet (1.8.0)
95
+ regexp_parser (2.8.2)
96
+ rexml (3.2.6)
74
97
  rspec (3.12.0)
75
98
  rspec-core (~> 3.12.0)
76
99
  rspec-expectations (~> 3.12.0)
77
100
  rspec-mocks (~> 3.12.0)
78
- rspec-core (3.12.0)
101
+ rspec-core (3.12.2)
79
102
  rspec-support (~> 3.12.0)
80
- rspec-expectations (3.12.2)
103
+ rspec-expectations (3.12.3)
81
104
  diff-lcs (>= 1.2.0, < 2.0)
82
105
  rspec-support (~> 3.12.0)
83
- rspec-mocks (3.12.3)
106
+ rspec-mocks (3.12.6)
84
107
  diff-lcs (>= 1.2.0, < 2.0)
85
108
  rspec-support (~> 3.12.0)
86
- rspec-support (3.12.0)
87
- rubocop (1.44.1)
109
+ rspec-support (3.12.1)
110
+ rubocop (1.57.2)
88
111
  json (~> 2.3)
112
+ language_server-protocol (>= 3.17.0)
89
113
  parallel (~> 1.10)
90
- parser (>= 3.2.0.0)
114
+ parser (>= 3.2.2.4)
91
115
  rainbow (>= 2.2.2, < 4.0)
92
116
  regexp_parser (>= 1.8, < 3.0)
93
117
  rexml (>= 3.2.5, < 4.0)
94
- rubocop-ast (>= 1.24.1, < 2.0)
118
+ rubocop-ast (>= 1.28.1, < 2.0)
95
119
  ruby-progressbar (~> 1.7)
96
120
  unicode-display_width (>= 2.4.0, < 3.0)
97
- rubocop-ast (1.24.1)
98
- parser (>= 3.1.1.0)
99
- rubocop-capybara (2.17.0)
121
+ rubocop-ast (1.30.0)
122
+ parser (>= 3.2.1.0)
123
+ rubocop-capybara (2.19.0)
100
124
  rubocop (~> 1.41)
125
+ rubocop-factory_bot (2.24.0)
126
+ rubocop (~> 1.33)
101
127
  rubocop-rake (0.6.0)
102
128
  rubocop (~> 1.0)
103
- rubocop-rspec (2.18.1)
104
- rubocop (~> 1.33)
129
+ rubocop-rspec (2.25.0)
130
+ rubocop (~> 1.40)
105
131
  rubocop-capybara (~> 2.17)
106
- ruby-progressbar (1.11.0)
132
+ rubocop-factory_bot (~> 2.22)
133
+ ruby-progressbar (1.13.0)
107
134
  ruby2_keywords (0.0.5)
108
135
  ruby_git_crypt (0.1.0.pre.2)
109
136
  immutable-struct (~> 2.4)
@@ -122,10 +149,12 @@ GEM
122
149
  sshkey (2.0.0)
123
150
  tzinfo (2.0.6)
124
151
  concurrent-ruby (~> 1.0)
125
- unicode-display_width (2.4.2)
152
+ unicode-display_width (2.5.0)
126
153
 
127
154
  PLATFORMS
128
155
  arm64-darwin-21
156
+ arm64-darwin-22
157
+ ruby
129
158
  x86_64-darwin-19
130
159
  x86_64-darwin-21
131
160
  x86_64-linux
@@ -137,6 +166,7 @@ DEPENDENCIES
137
166
  memfs
138
167
  rake
139
168
  rake_circle_ci
169
+ rake_git
140
170
  rake_git_crypt!
141
171
  rake_github
142
172
  rake_gpg
@@ -148,4 +178,4 @@ DEPENDENCIES
148
178
  simplecov
149
179
 
150
180
  BUNDLED WITH
151
- 2.4.6
181
+ 2.4.17
data/Rakefile CHANGED
@@ -1,19 +1,44 @@
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
18
43
  namespace :directory do
19
44
  desc 'Ensure CI secrets directory exists.'
@@ -23,10 +48,12 @@ namespace :encryption do
23
48
  end
24
49
 
25
50
  namespace :passphrase do
26
- desc 'Generate encryption passphrase used by CI.'
51
+ desc 'Generate encryption passphrase for CI GPG key'
27
52
  task generate: ['directory:ensure'] do
28
- File.write('config/secrets/ci/encryption.passphrase',
29
- SecureRandom.base64(36))
53
+ File.write(
54
+ 'config/secrets/ci/encryption.passphrase',
55
+ SecureRandom.base64(36)
56
+ )
30
57
  end
31
58
  end
32
59
  end
@@ -51,17 +78,33 @@ namespace :keys do
51
78
  end
52
79
 
53
80
  namespace :secrets do
54
- desc 'Regenerate all generatable secrets.'
55
- task regenerate: %w[
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[
56
93
  encryption:passphrase:generate
57
94
  keys:deploy:generate
58
95
  keys:gpg:generate
59
96
  ]
60
97
 
98
+ desc 'Provision all secrets.'
99
+ task provision: [:generate]
100
+
61
101
  desc 'Delete all secrets.'
62
- task :delete do
102
+ task :destroy do
63
103
  rm_rf 'config/secrets'
64
104
  end
105
+
106
+ desc 'Rotate all secrets.'
107
+ task rotate: [:'git_crypt:reinstall']
65
108
  end
66
109
 
67
110
  RuboCop::RakeTask.new
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RakeGitCrypt
4
- VERSION = '0.1.0.pre.26'
4
+ VERSION = '0.1.0.pre.27'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_git_crypt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.26
4
+ version: 0.1.0.pre.27
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-02-04 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: colored2