rake_github 0.12.0.pre.1 → 0.12.0.pre.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CODE_OF_CONDUCT.md +15 -13
- data/Gemfile.lock +74 -33
- data/Rakefile +70 -8
- data/lib/rake_github/version.rb +1 -1
- data/rake_github.gemspec +2 -0
- metadata +30 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 755278aecbed28fb85cbda38fb248d238302a77934268674c675ddf2fa272519
|
|
4
|
+
data.tar.gz: 400e327e42518664f165705d904148e15b31909a4526b6fe94c931f60439df6c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 80e5bfc273879d21d366e2a96fd1b2f58cb0738a5e157c3a4970db021e066bdb2ff4afeb1eaf0b739ad40baaee045ed017c0dd6e632935015a5b4cd12c50e156
|
|
7
|
+
data.tar.gz: 24f3c617ce616b7ab252bda1d8f54108fee811ff02ab11538f99af69e4c45ef5652c06125414b2f060aa7bd9cec3014a4a47bbfed74d10318715985b17393082
|
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
|
|
9
|
-
nationality, personal appearance, race, religion, or sexual identity
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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
|
|
62
|
-
Further details of specific enforcement policies may be posted
|
|
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],
|
|
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_github (0.12.0.pre.
|
|
4
|
+
rake_github (0.12.0.pre.2)
|
|
5
5
|
colored2 (~> 3.1)
|
|
6
6
|
octokit (>= 4.16, < 7.0)
|
|
7
7
|
rake_factory (~> 0.23)
|
|
@@ -10,92 +10,131 @@ PATH
|
|
|
10
10
|
GEM
|
|
11
11
|
remote: https://rubygems.org/
|
|
12
12
|
specs:
|
|
13
|
-
activesupport (7.
|
|
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.
|
|
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.
|
|
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
|
-
|
|
26
|
-
|
|
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.
|
|
47
|
+
i18n (1.14.1)
|
|
34
48
|
concurrent-ruby (~> 1.0)
|
|
49
|
+
immutable-struct (2.4.1)
|
|
35
50
|
json (2.6.3)
|
|
51
|
+
language_server-protocol (3.17.0.3)
|
|
36
52
|
lino (3.1.0)
|
|
37
53
|
hamster (~> 3.0)
|
|
38
54
|
open4 (~> 1.3)
|
|
39
55
|
memfs (1.0.0)
|
|
40
|
-
minitest (5.
|
|
41
|
-
|
|
56
|
+
minitest (5.20.0)
|
|
57
|
+
mutex_m (0.1.2)
|
|
58
|
+
octokit (6.1.1)
|
|
42
59
|
faraday (>= 1, < 3)
|
|
43
60
|
sawyer (~> 0.9)
|
|
44
61
|
open4 (1.3.4)
|
|
45
|
-
parallel (1.
|
|
46
|
-
parser (3.
|
|
62
|
+
parallel (1.23.0)
|
|
63
|
+
parser (3.2.2.4)
|
|
47
64
|
ast (~> 2.4.1)
|
|
48
|
-
|
|
65
|
+
racc
|
|
66
|
+
public_suffix (5.0.3)
|
|
67
|
+
racc (1.7.1)
|
|
49
68
|
rainbow (3.1.1)
|
|
50
|
-
rake (13.0
|
|
69
|
+
rake (13.1.0)
|
|
51
70
|
rake_circle_ci (0.11.0)
|
|
52
71
|
colored2 (~> 3.1)
|
|
53
72
|
excon (~> 0.72)
|
|
54
73
|
rake_factory (~> 0.23)
|
|
55
74
|
sshkey (~> 2.0)
|
|
56
|
-
rake_factory (0.
|
|
75
|
+
rake_factory (0.32.0.pre.2)
|
|
57
76
|
activesupport (>= 4)
|
|
58
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)
|
|
82
|
+
rake_git_crypt (0.1.0.pre.26)
|
|
83
|
+
colored2 (~> 3.1)
|
|
84
|
+
rake_factory (= 0.32.0.pre.2)
|
|
85
|
+
ruby_git_crypt (= 0.1.0.pre.2)
|
|
86
|
+
ruby_gpg2 (~> 0.6)
|
|
59
87
|
rake_gpg (0.18.0)
|
|
60
88
|
rake_factory (~> 0.23)
|
|
61
89
|
ruby_gpg2 (~> 0.6)
|
|
62
|
-
rake_ssh (0.
|
|
90
|
+
rake_ssh (0.10.0)
|
|
63
91
|
colored2 (~> 3.1)
|
|
64
92
|
rake_factory (~> 0.23)
|
|
65
93
|
sshkey (~> 2.0)
|
|
66
|
-
|
|
67
|
-
|
|
94
|
+
rchardet (1.8.0)
|
|
95
|
+
regexp_parser (2.8.2)
|
|
96
|
+
rexml (3.2.6)
|
|
68
97
|
rspec (3.12.0)
|
|
69
98
|
rspec-core (~> 3.12.0)
|
|
70
99
|
rspec-expectations (~> 3.12.0)
|
|
71
100
|
rspec-mocks (~> 3.12.0)
|
|
72
|
-
rspec-core (3.12.
|
|
101
|
+
rspec-core (3.12.2)
|
|
73
102
|
rspec-support (~> 3.12.0)
|
|
74
|
-
rspec-expectations (3.12.
|
|
103
|
+
rspec-expectations (3.12.3)
|
|
75
104
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
76
105
|
rspec-support (~> 3.12.0)
|
|
77
|
-
rspec-mocks (3.12.
|
|
106
|
+
rspec-mocks (3.12.6)
|
|
78
107
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
79
108
|
rspec-support (~> 3.12.0)
|
|
80
|
-
rspec-support (3.12.
|
|
81
|
-
rubocop (1.
|
|
109
|
+
rspec-support (3.12.1)
|
|
110
|
+
rubocop (1.57.2)
|
|
82
111
|
json (~> 2.3)
|
|
112
|
+
language_server-protocol (>= 3.17.0)
|
|
83
113
|
parallel (~> 1.10)
|
|
84
|
-
parser (>= 3.
|
|
114
|
+
parser (>= 3.2.2.4)
|
|
85
115
|
rainbow (>= 2.2.2, < 4.0)
|
|
86
116
|
regexp_parser (>= 1.8, < 3.0)
|
|
87
117
|
rexml (>= 3.2.5, < 4.0)
|
|
88
|
-
rubocop-ast (>= 1.
|
|
118
|
+
rubocop-ast (>= 1.28.1, < 2.0)
|
|
89
119
|
ruby-progressbar (~> 1.7)
|
|
90
|
-
unicode-display_width (>=
|
|
91
|
-
rubocop-ast (1.
|
|
92
|
-
parser (>= 3.
|
|
120
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
|
121
|
+
rubocop-ast (1.30.0)
|
|
122
|
+
parser (>= 3.2.1.0)
|
|
123
|
+
rubocop-capybara (2.19.0)
|
|
124
|
+
rubocop (~> 1.41)
|
|
125
|
+
rubocop-factory_bot (2.24.0)
|
|
126
|
+
rubocop (~> 1.33)
|
|
93
127
|
rubocop-rake (0.6.0)
|
|
94
128
|
rubocop (~> 1.0)
|
|
95
|
-
rubocop-rspec (2.
|
|
96
|
-
rubocop (~> 1.
|
|
97
|
-
|
|
129
|
+
rubocop-rspec (2.25.0)
|
|
130
|
+
rubocop (~> 1.40)
|
|
131
|
+
rubocop-capybara (~> 2.17)
|
|
132
|
+
rubocop-factory_bot (~> 2.22)
|
|
133
|
+
ruby-progressbar (1.13.0)
|
|
98
134
|
ruby2_keywords (0.0.5)
|
|
135
|
+
ruby_git_crypt (0.1.0.pre.2)
|
|
136
|
+
immutable-struct (~> 2.4)
|
|
137
|
+
lino (~> 3.0)
|
|
99
138
|
ruby_gpg2 (0.10.0)
|
|
100
139
|
lino (~> 3.0)
|
|
101
140
|
sawyer (0.9.2)
|
|
@@ -108,9 +147,9 @@ GEM
|
|
|
108
147
|
simplecov-html (0.12.3)
|
|
109
148
|
simplecov_json_formatter (0.1.4)
|
|
110
149
|
sshkey (2.0.0)
|
|
111
|
-
tzinfo (2.0.
|
|
150
|
+
tzinfo (2.0.6)
|
|
112
151
|
concurrent-ruby (~> 1.0)
|
|
113
|
-
unicode-display_width (2.
|
|
152
|
+
unicode-display_width (2.5.0)
|
|
114
153
|
|
|
115
154
|
PLATFORMS
|
|
116
155
|
ruby
|
|
@@ -122,6 +161,8 @@ DEPENDENCIES
|
|
|
122
161
|
memfs
|
|
123
162
|
rake
|
|
124
163
|
rake_circle_ci
|
|
164
|
+
rake_git
|
|
165
|
+
rake_git_crypt
|
|
125
166
|
rake_github!
|
|
126
167
|
rake_gpg
|
|
127
168
|
rake_ssh
|
|
@@ -132,4 +173,4 @@ DEPENDENCIES
|
|
|
132
173
|
simplecov
|
|
133
174
|
|
|
134
175
|
BUNDLED WITH
|
|
135
|
-
2.4.
|
|
176
|
+
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 '
|
|
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 :
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
data/lib/rake_github/version.rb
CHANGED
data/rake_github.gemspec
CHANGED
|
@@ -46,6 +46,8 @@ Gem::Specification.new do |spec|
|
|
|
46
46
|
spec.add_development_dependency 'memfs'
|
|
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_github
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.12.0.pre.
|
|
4
|
+
version: 0.12.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-
|
|
11
|
+
date: 2023-10-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: colored2
|
|
@@ -156,6 +156,34 @@ dependencies:
|
|
|
156
156
|
- - ">="
|
|
157
157
|
- !ruby/object:Gem::Version
|
|
158
158
|
version: '0'
|
|
159
|
+
- !ruby/object:Gem::Dependency
|
|
160
|
+
name: rake_git
|
|
161
|
+
requirement: !ruby/object:Gem::Requirement
|
|
162
|
+
requirements:
|
|
163
|
+
- - ">="
|
|
164
|
+
- !ruby/object:Gem::Version
|
|
165
|
+
version: '0'
|
|
166
|
+
type: :development
|
|
167
|
+
prerelease: false
|
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
169
|
+
requirements:
|
|
170
|
+
- - ">="
|
|
171
|
+
- !ruby/object:Gem::Version
|
|
172
|
+
version: '0'
|
|
173
|
+
- !ruby/object:Gem::Dependency
|
|
174
|
+
name: rake_git_crypt
|
|
175
|
+
requirement: !ruby/object:Gem::Requirement
|
|
176
|
+
requirements:
|
|
177
|
+
- - ">="
|
|
178
|
+
- !ruby/object:Gem::Version
|
|
179
|
+
version: '0'
|
|
180
|
+
type: :development
|
|
181
|
+
prerelease: false
|
|
182
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
183
|
+
requirements:
|
|
184
|
+
- - ">="
|
|
185
|
+
- !ruby/object:Gem::Version
|
|
186
|
+
version: '0'
|
|
159
187
|
- !ruby/object:Gem::Dependency
|
|
160
188
|
name: rake_github
|
|
161
189
|
requirement: !ruby/object:Gem::Requirement
|