ruby_helm 0.6.0.pre.2 → 0.6.0.pre.3
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/Gemfile.lock +90 -81
- data/Rakefile +110 -47
- data/lib/ruby_helm/version.rb +1 -1
- data/ruby_helm.gemspec +2 -3
- metadata +10 -24
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c147277eae404f6b4e908b91aeba4b56ed28e543837729345960f16e3580303f
|
|
4
|
+
data.tar.gz: b2acbe87d08ebef1239993a79e3ac32213f4adb277598d14416ada5c8e3d2582
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7671e78470a15ae6f7d5b5cf52b71d3592437f891fae8dd0f67e64999353f53401de2a79a4d42a7341e6d70f2f6f03e5cde47e194fb522e9e5813aa8c98bd80a
|
|
7
|
+
data.tar.gz: 3a66271eedfe3a54421cc41a3185a4759e686c2c39272273014ab020774736bf718ffcba161d3a01644622bab7944dc299c94f95cbb49e0d80cf2ba8d01c7461
|
data/Gemfile.lock
CHANGED
|
@@ -1,55 +1,63 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
ruby_helm (0.6.0.pre.
|
|
4
|
+
ruby_helm (0.6.0.pre.3)
|
|
5
5
|
lino (>= 4.1)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
activesupport (
|
|
10
|
+
activesupport (8.1.3)
|
|
11
11
|
base64
|
|
12
12
|
bigdecimal
|
|
13
|
-
concurrent-ruby (~> 1.0, >= 1.
|
|
13
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
14
14
|
connection_pool (>= 2.2.5)
|
|
15
15
|
drb
|
|
16
16
|
i18n (>= 1.6, < 2)
|
|
17
|
+
json
|
|
18
|
+
logger (>= 1.4.2)
|
|
17
19
|
minitest (>= 5.1)
|
|
18
|
-
|
|
19
|
-
tzinfo (~> 2.0)
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
securerandom (>= 0.3)
|
|
21
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
22
|
+
uri (>= 0.13.1)
|
|
23
|
+
addressable (2.9.0)
|
|
24
|
+
public_suffix (>= 2.0.2, < 8.0)
|
|
25
|
+
ast (2.4.3)
|
|
26
|
+
base64 (0.3.0)
|
|
27
|
+
bigdecimal (4.1.2)
|
|
25
28
|
childprocess (5.0.0)
|
|
26
29
|
coderay (1.1.3)
|
|
27
30
|
colored2 (3.1.2)
|
|
28
|
-
concurrent-ruby (1.3.
|
|
29
|
-
connection_pool (
|
|
30
|
-
diff-lcs (1.
|
|
31
|
+
concurrent-ruby (1.3.8)
|
|
32
|
+
connection_pool (3.0.2)
|
|
33
|
+
diff-lcs (1.6.2)
|
|
31
34
|
docile (1.4.0)
|
|
32
|
-
drb (2.2.
|
|
33
|
-
excon (
|
|
34
|
-
faraday (2.10.0)
|
|
35
|
-
faraday-net_http (>= 2.0, < 3.2)
|
|
35
|
+
drb (2.2.3)
|
|
36
|
+
excon (1.6.0)
|
|
36
37
|
logger
|
|
37
|
-
faraday
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
faraday (2.14.3)
|
|
39
|
+
faraday-net_http (>= 2.0, < 3.5)
|
|
40
|
+
json
|
|
41
|
+
logger
|
|
42
|
+
faraday-net_http (3.4.4)
|
|
43
|
+
net-http (~> 0.5)
|
|
44
|
+
ffi (1.17.4)
|
|
45
|
+
ffi (1.17.4-arm64-darwin)
|
|
46
|
+
ffi (1.17.4-x86_64-darwin)
|
|
47
|
+
ffi (1.17.4-x86_64-linux-gnu)
|
|
42
48
|
formatador (1.1.0)
|
|
43
|
-
gem-release (2.2.
|
|
49
|
+
gem-release (2.2.4)
|
|
44
50
|
git (1.19.1)
|
|
45
51
|
addressable (~> 2.8)
|
|
46
52
|
rchardet (~> 1.8)
|
|
47
|
-
guard (2.
|
|
53
|
+
guard (2.19.1)
|
|
48
54
|
formatador (>= 0.2.4)
|
|
49
55
|
listen (>= 2.7, < 4.0)
|
|
56
|
+
logger (~> 1.6)
|
|
50
57
|
lumberjack (>= 1.0.12, < 2.0)
|
|
51
58
|
nenv (~> 0.1)
|
|
52
59
|
notiffany (~> 0.0)
|
|
60
|
+
ostruct (~> 0.6)
|
|
53
61
|
pry (>= 0.13.0)
|
|
54
62
|
shellany (~> 0.0)
|
|
55
63
|
thor (>= 0.18.1)
|
|
@@ -60,50 +68,46 @@ GEM
|
|
|
60
68
|
rspec (>= 2.99.0, < 4.0)
|
|
61
69
|
hamster (3.0.0)
|
|
62
70
|
concurrent-ruby (~> 1.0)
|
|
63
|
-
i18n (1.
|
|
71
|
+
i18n (1.15.2)
|
|
64
72
|
concurrent-ruby (~> 1.0)
|
|
65
|
-
immutable-struct (2.
|
|
66
|
-
json (2.
|
|
67
|
-
language_server-protocol (3.17.0.
|
|
73
|
+
immutable-struct (2.5.0)
|
|
74
|
+
json (2.12.2)
|
|
75
|
+
language_server-protocol (3.17.0.5)
|
|
68
76
|
lino (4.1.0)
|
|
69
77
|
childprocess (~> 5.0.0)
|
|
70
78
|
hamster (~> 3.0)
|
|
71
79
|
open4 (~> 1.3)
|
|
80
|
+
lint_roller (1.1.0)
|
|
72
81
|
listen (3.9.0)
|
|
73
82
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
|
74
83
|
rb-inotify (~> 0.9, >= 0.9.10)
|
|
75
|
-
logger (1.
|
|
84
|
+
logger (1.7.0)
|
|
76
85
|
lumberjack (1.2.10)
|
|
77
86
|
method_source (1.1.0)
|
|
78
|
-
minitest (5.
|
|
79
|
-
mutex_m (0.2.0)
|
|
87
|
+
minitest (5.27.0)
|
|
80
88
|
nenv (0.3.0)
|
|
81
|
-
net-http (0.
|
|
82
|
-
uri
|
|
89
|
+
net-http (0.9.1)
|
|
90
|
+
uri (>= 0.11.1)
|
|
83
91
|
notiffany (0.1.3)
|
|
84
92
|
nenv (~> 0.1)
|
|
85
93
|
shellany (~> 0.0)
|
|
86
|
-
octokit (
|
|
87
|
-
base64
|
|
94
|
+
octokit (10.0.0)
|
|
88
95
|
faraday (>= 1, < 3)
|
|
89
96
|
sawyer (~> 0.9)
|
|
90
97
|
open4 (1.3.4)
|
|
91
|
-
|
|
92
|
-
|
|
98
|
+
ostruct (0.6.1)
|
|
99
|
+
parallel (1.27.0)
|
|
100
|
+
parser (3.3.8.0)
|
|
93
101
|
ast (~> 2.4.1)
|
|
94
102
|
racc
|
|
95
|
-
|
|
103
|
+
prism (1.4.0)
|
|
104
|
+
pry (0.15.2)
|
|
96
105
|
coderay (~> 1.1)
|
|
97
106
|
method_source (~> 1.0)
|
|
98
|
-
public_suffix (
|
|
99
|
-
racc (1.8.
|
|
107
|
+
public_suffix (7.0.5)
|
|
108
|
+
racc (1.8.1)
|
|
100
109
|
rainbow (3.1.1)
|
|
101
|
-
rake (13.2
|
|
102
|
-
rake_circle_ci (0.11.0)
|
|
103
|
-
colored2 (~> 3.1)
|
|
104
|
-
excon (~> 0.72)
|
|
105
|
-
rake_factory (~> 0.23)
|
|
106
|
-
sshkey (~> 2.0)
|
|
110
|
+
rake (13.4.2)
|
|
107
111
|
rake_factory (0.33.0)
|
|
108
112
|
activesupport (>= 4)
|
|
109
113
|
rake (~> 13.0)
|
|
@@ -111,69 +115,74 @@ GEM
|
|
|
111
115
|
colored2 (~> 3.1)
|
|
112
116
|
git (~> 1.13, >= 1.13.2)
|
|
113
117
|
rake_factory (~> 0.33)
|
|
114
|
-
rake_git_crypt (0.
|
|
118
|
+
rake_git_crypt (0.4.0)
|
|
115
119
|
colored2 (~> 3.1)
|
|
120
|
+
lino (~> 4.1)
|
|
116
121
|
rake_factory (~> 0.33)
|
|
117
122
|
ruby_git_crypt (~> 0.1)
|
|
118
123
|
ruby_gpg2 (~> 0.12)
|
|
119
|
-
rake_github (0.
|
|
124
|
+
rake_github (0.17.0)
|
|
120
125
|
colored2 (~> 3.1)
|
|
121
|
-
octokit (>=
|
|
122
|
-
rake_factory (~> 0.
|
|
126
|
+
octokit (>= 7.0, < 11.0)
|
|
127
|
+
rake_factory (~> 0.33)
|
|
128
|
+
rbnacl (~> 7.1)
|
|
123
129
|
sshkey (~> 2.0)
|
|
124
130
|
rake_gpg (0.20.0)
|
|
125
131
|
rake_factory (~> 0.33)
|
|
126
132
|
ruby_gpg2 (~> 0.12)
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
rake_factory (~> 0.
|
|
130
|
-
sshkey (~> 2.0)
|
|
133
|
+
rake_slack (0.3.0)
|
|
134
|
+
excon (>= 0.72, < 2.0)
|
|
135
|
+
rake_factory (~> 0.33)
|
|
131
136
|
rb-fsevent (0.11.2)
|
|
132
137
|
rb-inotify (0.11.1)
|
|
133
138
|
ffi (~> 1.0)
|
|
139
|
+
rbnacl (7.1.2)
|
|
140
|
+
ffi (~> 1)
|
|
134
141
|
rchardet (1.8.0)
|
|
135
|
-
regexp_parser (2.
|
|
136
|
-
|
|
137
|
-
strscan
|
|
138
|
-
rspec (3.13.0)
|
|
142
|
+
regexp_parser (2.10.0)
|
|
143
|
+
rspec (3.13.1)
|
|
139
144
|
rspec-core (~> 3.13.0)
|
|
140
145
|
rspec-expectations (~> 3.13.0)
|
|
141
146
|
rspec-mocks (~> 3.13.0)
|
|
142
|
-
rspec-core (3.13.
|
|
147
|
+
rspec-core (3.13.4)
|
|
143
148
|
rspec-support (~> 3.13.0)
|
|
144
|
-
rspec-expectations (3.13.
|
|
149
|
+
rspec-expectations (3.13.5)
|
|
145
150
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
146
151
|
rspec-support (~> 3.13.0)
|
|
147
|
-
rspec-mocks (3.13.
|
|
152
|
+
rspec-mocks (3.13.5)
|
|
148
153
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
149
154
|
rspec-support (~> 3.13.0)
|
|
150
|
-
rspec-support (3.13.
|
|
151
|
-
rubocop (1.
|
|
155
|
+
rspec-support (3.13.4)
|
|
156
|
+
rubocop (1.76.0)
|
|
152
157
|
json (~> 2.3)
|
|
153
|
-
language_server-protocol (
|
|
158
|
+
language_server-protocol (~> 3.17.0.2)
|
|
159
|
+
lint_roller (~> 1.1.0)
|
|
154
160
|
parallel (~> 1.10)
|
|
155
161
|
parser (>= 3.3.0.2)
|
|
156
162
|
rainbow (>= 2.2.2, < 4.0)
|
|
157
|
-
regexp_parser (>= 2.
|
|
158
|
-
|
|
159
|
-
rubocop-ast (>= 1.31.1, < 2.0)
|
|
163
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
|
164
|
+
rubocop-ast (>= 1.45.0, < 2.0)
|
|
160
165
|
ruby-progressbar (~> 1.7)
|
|
161
|
-
unicode-display_width (>= 2.4.0, <
|
|
162
|
-
rubocop-ast (1.
|
|
163
|
-
parser (>= 3.3.
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
rubocop (
|
|
166
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
|
167
|
+
rubocop-ast (1.45.0)
|
|
168
|
+
parser (>= 3.3.7.2)
|
|
169
|
+
prism (~> 1.4)
|
|
170
|
+
rubocop-rake (0.7.1)
|
|
171
|
+
lint_roller (~> 1.1)
|
|
172
|
+
rubocop (>= 1.72.1)
|
|
173
|
+
rubocop-rspec (3.6.0)
|
|
174
|
+
lint_roller (~> 1.1)
|
|
175
|
+
rubocop (~> 1.72, >= 1.72.1)
|
|
168
176
|
ruby-progressbar (1.13.0)
|
|
169
177
|
ruby_git_crypt (0.1.0)
|
|
170
178
|
immutable-struct (~> 2.4)
|
|
171
179
|
lino (>= 4.1)
|
|
172
180
|
ruby_gpg2 (0.12.0)
|
|
173
181
|
lino (>= 4.1)
|
|
174
|
-
sawyer (0.9.
|
|
182
|
+
sawyer (0.9.3)
|
|
175
183
|
addressable (>= 2.3.5)
|
|
176
184
|
faraday (>= 0.17.3, < 3)
|
|
185
|
+
securerandom (0.4.1)
|
|
177
186
|
shellany (0.0.1)
|
|
178
187
|
simplecov (0.22.0)
|
|
179
188
|
docile (~> 1.1)
|
|
@@ -182,13 +191,14 @@ GEM
|
|
|
182
191
|
simplecov-html (0.12.3)
|
|
183
192
|
simplecov_json_formatter (0.1.4)
|
|
184
193
|
sshkey (2.0.0)
|
|
185
|
-
strscan (3.1.0)
|
|
186
194
|
terminal-notifier-guard (1.7.0)
|
|
187
|
-
thor (1.3.
|
|
195
|
+
thor (1.3.2)
|
|
188
196
|
tzinfo (2.0.6)
|
|
189
197
|
concurrent-ruby (~> 1.0)
|
|
190
|
-
unicode-display_width (
|
|
191
|
-
|
|
198
|
+
unicode-display_width (3.1.4)
|
|
199
|
+
unicode-emoji (~> 4.0, >= 4.0.4)
|
|
200
|
+
unicode-emoji (4.0.4)
|
|
201
|
+
uri (1.1.1)
|
|
192
202
|
|
|
193
203
|
PLATFORMS
|
|
194
204
|
arm64-darwin-21
|
|
@@ -205,12 +215,11 @@ DEPENDENCIES
|
|
|
205
215
|
guard
|
|
206
216
|
guard-rspec
|
|
207
217
|
rake
|
|
208
|
-
rake_circle_ci
|
|
209
218
|
rake_git
|
|
210
219
|
rake_git_crypt
|
|
211
220
|
rake_github
|
|
212
221
|
rake_gpg
|
|
213
|
-
|
|
222
|
+
rake_slack
|
|
214
223
|
rspec
|
|
215
224
|
rubocop
|
|
216
225
|
rubocop-rake
|
data/Rakefile
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require 'rake_circle_ci'
|
|
4
3
|
require 'rake_git'
|
|
5
4
|
require 'rake_git_crypt'
|
|
6
5
|
require 'rake_github'
|
|
7
6
|
require 'rake_gpg'
|
|
8
|
-
require '
|
|
7
|
+
require 'rake_slack'
|
|
9
8
|
require 'rspec/core/rake_task'
|
|
10
9
|
require 'rubocop/rake_task'
|
|
11
10
|
require 'securerandom'
|
|
12
|
-
require 'yaml'
|
|
13
11
|
|
|
14
12
|
task default: %i[
|
|
15
13
|
library:fix
|
|
@@ -59,13 +57,6 @@ namespace :encryption do
|
|
|
59
57
|
end
|
|
60
58
|
|
|
61
59
|
namespace :keys do
|
|
62
|
-
namespace :deploy do
|
|
63
|
-
RakeSSH.define_key_tasks(
|
|
64
|
-
path: 'config/secrets/ci/',
|
|
65
|
-
comment: 'maintainers@infrablocks.io'
|
|
66
|
-
)
|
|
67
|
-
end
|
|
68
|
-
|
|
69
60
|
namespace :secrets do
|
|
70
61
|
namespace :gpg do
|
|
71
62
|
RakeGPG.define_generate_key_task(
|
|
@@ -96,7 +87,6 @@ namespace :secrets do
|
|
|
96
87
|
desc 'Generate all generatable secrets.'
|
|
97
88
|
task generate: %w[
|
|
98
89
|
encryption:passphrase:generate
|
|
99
|
-
keys:deploy:generate
|
|
100
90
|
keys:secrets:generate
|
|
101
91
|
]
|
|
102
92
|
|
|
@@ -120,57 +110,98 @@ namespace :library do
|
|
|
120
110
|
|
|
121
111
|
desc 'Attempt to automatically fix issues with the library'
|
|
122
112
|
task fix: [:'rubocop:autocorrect_all']
|
|
113
|
+
|
|
114
|
+
desc 'Build the library'
|
|
115
|
+
task :build do
|
|
116
|
+
sh 'gem build ruby_helm.gemspec'
|
|
117
|
+
end
|
|
123
118
|
end
|
|
124
119
|
|
|
125
120
|
namespace :test do
|
|
126
121
|
RSpec::Core::RakeTask.new(:unit)
|
|
127
122
|
end
|
|
128
123
|
|
|
129
|
-
RakeCircleCI.define_project_tasks(
|
|
130
|
-
namespace: :circle_ci,
|
|
131
|
-
project_slug: 'github/infrablocks/ruby_helm'
|
|
132
|
-
) do |t|
|
|
133
|
-
circle_ci_config =
|
|
134
|
-
YAML.load_file('config/secrets/circle_ci/config.yaml')
|
|
135
|
-
|
|
136
|
-
t.api_token = circle_ci_config['circle_ci_api_token']
|
|
137
|
-
t.environment_variables = {
|
|
138
|
-
ENCRYPTION_PASSPHRASE:
|
|
139
|
-
File.read('config/secrets/ci/encryption.passphrase')
|
|
140
|
-
.chomp
|
|
141
|
-
}
|
|
142
|
-
t.checkout_keys = []
|
|
143
|
-
t.ssh_keys = [
|
|
144
|
-
{
|
|
145
|
-
hostname: 'github.com',
|
|
146
|
-
private_key: File.read('config/secrets/ci/ssh.private')
|
|
147
|
-
}
|
|
148
|
-
]
|
|
149
|
-
end
|
|
150
|
-
|
|
151
124
|
RakeGithub.define_repository_tasks(
|
|
152
125
|
namespace: :github,
|
|
153
126
|
repository: 'infrablocks/ruby_helm'
|
|
154
127
|
) do |t|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
128
|
+
# Operator's ambient auth. Resolve once and fail fast: a missing,
|
|
129
|
+
# unauthenticated, or absent gh yields an empty string, which would
|
|
130
|
+
# otherwise surface later as an opaque Octokit 401. An empty or
|
|
131
|
+
# whitespace-only GITHUB_TOKEN is treated as absent so an authenticated
|
|
132
|
+
# operator falls through to `gh auth token` rather than hitting the raise.
|
|
133
|
+
github_token = ENV['GITHUB_TOKEN'].to_s.strip
|
|
134
|
+
if github_token.empty?
|
|
135
|
+
github_token = begin
|
|
136
|
+
`gh auth token`
|
|
137
|
+
rescue Errno::ENOENT
|
|
138
|
+
''
|
|
139
|
+
end.strip
|
|
140
|
+
end
|
|
141
|
+
if github_token.empty?
|
|
142
|
+
raise 'No GitHub token available: set GITHUB_TOKEN or run `gh auth login`'
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
t.access_token = github_token
|
|
146
|
+
|
|
147
|
+
# Actions store only: dependabot runs never reach the passphrase — the
|
|
148
|
+
# only pr.yaml job that unlocks git-crypt (prerelease) is guarded to
|
|
149
|
+
# same-repo human PRs. Guard against a locked clone: without
|
|
150
|
+
# it, File.read returns git-crypt ciphertext and github:secrets:ensure
|
|
151
|
+
# silently uploads garbage that only surfaces much later as an opaque
|
|
152
|
+
# GPG unlock failure in the release job.
|
|
153
|
+
passphrase_path = 'config/secrets/ci/encryption.passphrase'
|
|
154
|
+
unless File.exist?(passphrase_path)
|
|
155
|
+
raise "Passphrase file not found: #{passphrase_path} — expected a " \
|
|
156
|
+
'git-crypt-unlocked clone with the CI secrets present'
|
|
157
|
+
end
|
|
158
|
+
passphrase = File.binread(passphrase_path)
|
|
159
|
+
if passphrase.start_with?("\x00GITCRYPT")
|
|
160
|
+
raise 'encryption.passphrase is git-crypt ciphertext — unlock the ' \
|
|
161
|
+
'clone before provisioning'
|
|
162
|
+
end
|
|
163
|
+
t.secrets = [
|
|
164
|
+
{ name: 'ENCRYPTION_PASSPHRASE', value: passphrase.chomp }
|
|
164
165
|
]
|
|
166
|
+
t.environments = [
|
|
167
|
+
{ name: 'release',
|
|
168
|
+
reviewers: [{ team: 'maintainers' }] }
|
|
169
|
+
]
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
namespace :slack do
|
|
173
|
+
RakeSlack.define_notification_tasks do |t|
|
|
174
|
+
t.bot_token = ENV.fetch('SLACK_BOT_TOKEN', nil)
|
|
175
|
+
t.routing_rules = [
|
|
176
|
+
{ when: { type: 'on_hold' },
|
|
177
|
+
channel: 'C038EDCRSQJ', format: :on_hold }, # release
|
|
178
|
+
{ when: { actor: 'dependabot[bot]', outcome: 'success' },
|
|
179
|
+
channel: 'C03N711HVDG', format: :success }, # builds-dependabot
|
|
180
|
+
{ when: { actor: 'dependabot[bot]' },
|
|
181
|
+
channel: 'C03N711HVDG', format: :failure }, # builds-dependabot
|
|
182
|
+
{ when: { outcome: 'success' },
|
|
183
|
+
channel: 'C023XUE76GH', format: :success }, # builds
|
|
184
|
+
# Failures go to builds, not team-dev (org default), to keep noise
|
|
185
|
+
# out of a popular channel while this pipeline beds in.
|
|
186
|
+
{ when: {},
|
|
187
|
+
channel: 'C023XUE76GH', format: :failure } # builds
|
|
188
|
+
]
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
namespace :repository do
|
|
193
|
+
desc 'Set the git author for CI'
|
|
194
|
+
task :set_ci_author do
|
|
195
|
+
sh 'git config --global user.name "InfraBlocks CI"'
|
|
196
|
+
sh 'git config --global user.email "ci@infrablocks.io"'
|
|
197
|
+
end
|
|
165
198
|
end
|
|
166
199
|
|
|
167
200
|
namespace :pipeline do
|
|
168
|
-
desc 'Prepare
|
|
201
|
+
desc 'Prepare GitHub Actions pipeline'
|
|
169
202
|
task prepare: %i[
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
circle_ci:ssh_keys:ensure
|
|
173
|
-
github:deploy_keys:ensure
|
|
203
|
+
github:secrets:ensure
|
|
204
|
+
github:environments:ensure
|
|
174
205
|
]
|
|
175
206
|
end
|
|
176
207
|
|
|
@@ -181,6 +212,38 @@ namespace :version do
|
|
|
181
212
|
end
|
|
182
213
|
end
|
|
183
214
|
|
|
215
|
+
namespace :prerelease do
|
|
216
|
+
desc 'Build and push a namespaced pre-release to RubyGems ' \
|
|
217
|
+
'(PR CI only; no bump, no tag, no commit, no push)'
|
|
218
|
+
task :publish, %i[pr_number run_number run_attempt] do |_, args|
|
|
219
|
+
%i[pr_number run_number run_attempt].each do |name|
|
|
220
|
+
raise "Missing task argument: #{name}" if args[name].to_s.empty?
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
version_file = 'lib/ruby_helm/version.rb'
|
|
224
|
+
version_pattern = /(VERSION\s*=\s*')([^']+)(')/
|
|
225
|
+
source = File.read(version_file)
|
|
226
|
+
base = source[version_pattern, 2]
|
|
227
|
+
raise "Could not read VERSION from #{version_file}" unless base
|
|
228
|
+
|
|
229
|
+
version = "#{base}.pr#{args.pr_number}" \
|
|
230
|
+
".#{args.run_number}.#{args.run_attempt}"
|
|
231
|
+
gem_file = "ruby_helm-#{version}.gem"
|
|
232
|
+
begin
|
|
233
|
+
File.write(version_file,
|
|
234
|
+
source.sub(version_pattern, "\\1#{version}\\3"))
|
|
235
|
+
# Build + push directly: `gem release` aborts on the (deliberately)
|
|
236
|
+
# uncommitted version rewrite. PR CI must not tag, commit, or push
|
|
237
|
+
# (contrast the `release` task).
|
|
238
|
+
sh 'gem build ruby_helm.gemspec'
|
|
239
|
+
sh "gem push #{gem_file}"
|
|
240
|
+
ensure
|
|
241
|
+
File.write(version_file, source)
|
|
242
|
+
rm_f gem_file
|
|
243
|
+
end
|
|
244
|
+
end
|
|
245
|
+
end
|
|
246
|
+
|
|
184
247
|
desc 'Release gem'
|
|
185
248
|
task :release do
|
|
186
249
|
sh 'gem release --tag --push'
|
data/lib/ruby_helm/version.rb
CHANGED
data/ruby_helm.gemspec
CHANGED
|
@@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
|
|
|
34
34
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
35
35
|
spec.require_paths = ['lib']
|
|
36
36
|
|
|
37
|
-
spec.required_ruby_version = '>= 3.
|
|
37
|
+
spec.required_ruby_version = '>= 3.3'
|
|
38
38
|
|
|
39
39
|
spec.add_dependency 'lino', '>= 4.1'
|
|
40
40
|
|
|
@@ -43,12 +43,11 @@ Gem::Specification.new do |spec|
|
|
|
43
43
|
spec.add_development_dependency 'guard'
|
|
44
44
|
spec.add_development_dependency 'guard-rspec'
|
|
45
45
|
spec.add_development_dependency 'rake'
|
|
46
|
-
spec.add_development_dependency 'rake_circle_ci'
|
|
47
46
|
spec.add_development_dependency 'rake_git'
|
|
48
47
|
spec.add_development_dependency 'rake_git_crypt'
|
|
49
48
|
spec.add_development_dependency 'rake_github'
|
|
50
49
|
spec.add_development_dependency 'rake_gpg'
|
|
51
|
-
spec.add_development_dependency '
|
|
50
|
+
spec.add_development_dependency 'rake_slack'
|
|
52
51
|
spec.add_development_dependency 'rspec'
|
|
53
52
|
spec.add_development_dependency 'rubocop'
|
|
54
53
|
spec.add_development_dependency 'rubocop-rake'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby_helm
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.0.pre.
|
|
4
|
+
version: 0.6.0.pre.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- InfraBlocks Maintainers
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-07-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: lino
|
|
@@ -94,20 +94,6 @@ dependencies:
|
|
|
94
94
|
- - ">="
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
96
|
version: '0'
|
|
97
|
-
- !ruby/object:Gem::Dependency
|
|
98
|
-
name: rake_circle_ci
|
|
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
97
|
- !ruby/object:Gem::Dependency
|
|
112
98
|
name: rake_git
|
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -165,7 +151,7 @@ dependencies:
|
|
|
165
151
|
- !ruby/object:Gem::Version
|
|
166
152
|
version: '0'
|
|
167
153
|
- !ruby/object:Gem::Dependency
|
|
168
|
-
name:
|
|
154
|
+
name: rake_slack
|
|
169
155
|
requirement: !ruby/object:Gem::Requirement
|
|
170
156
|
requirements:
|
|
171
157
|
- - ">="
|
|
@@ -292,7 +278,7 @@ licenses:
|
|
|
292
278
|
- MIT
|
|
293
279
|
metadata:
|
|
294
280
|
rubygems_mfa_required: 'false'
|
|
295
|
-
post_install_message:
|
|
281
|
+
post_install_message:
|
|
296
282
|
rdoc_options: []
|
|
297
283
|
require_paths:
|
|
298
284
|
- lib
|
|
@@ -300,15 +286,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
300
286
|
requirements:
|
|
301
287
|
- - ">="
|
|
302
288
|
- !ruby/object:Gem::Version
|
|
303
|
-
version: '3.
|
|
289
|
+
version: '3.3'
|
|
304
290
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
305
291
|
requirements:
|
|
306
|
-
- - "
|
|
292
|
+
- - ">="
|
|
307
293
|
- !ruby/object:Gem::Version
|
|
308
|
-
version:
|
|
294
|
+
version: '0'
|
|
309
295
|
requirements: []
|
|
310
|
-
rubygems_version: 3.
|
|
311
|
-
signing_key:
|
|
296
|
+
rubygems_version: 3.5.22
|
|
297
|
+
signing_key:
|
|
312
298
|
specification_version: 4
|
|
313
299
|
summary: A thin Ruby wrapper around Helm
|
|
314
300
|
test_files: []
|