ruby_helm 0.6.0.pre.1 → 0.6.0.pre.2.pr158.2.1
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 +91 -80
- 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: bac193e1fba00d8aa0a825f95c604848905aeece03516604668872b376acd756
|
|
4
|
+
data.tar.gz: 815cf95a260f919290e7b6ba76af08ef03a86599d3139f486fe037948a41b8d0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4eae9afed794855a13651010b1bbb77ce78930bdb5924cd8dcae52513fa72406f88da8dd724fb03d63dffd281d73175b7968246bfedd3752e3a716feecfe8b99
|
|
7
|
+
data.tar.gz: 7aa5aba343565ec7bb92866299aa664ab3979f344a6938c6551e416112838e7d1e60ebbed8e8ea0ce5b0b331d9c7295d89a34572d6e4e00930d17ea130f51833
|
data/Gemfile.lock
CHANGED
|
@@ -1,53 +1,63 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
ruby_helm (0.6.0.pre.1)
|
|
4
|
+
ruby_helm (0.6.0.pre.2.pr158.2.1)
|
|
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
|
-
|
|
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)
|
|
40
48
|
formatador (1.1.0)
|
|
41
|
-
gem-release (2.2.
|
|
49
|
+
gem-release (2.2.4)
|
|
42
50
|
git (1.19.1)
|
|
43
51
|
addressable (~> 2.8)
|
|
44
52
|
rchardet (~> 1.8)
|
|
45
|
-
guard (2.
|
|
53
|
+
guard (2.19.1)
|
|
46
54
|
formatador (>= 0.2.4)
|
|
47
55
|
listen (>= 2.7, < 4.0)
|
|
56
|
+
logger (~> 1.6)
|
|
48
57
|
lumberjack (>= 1.0.12, < 2.0)
|
|
49
58
|
nenv (~> 0.1)
|
|
50
59
|
notiffany (~> 0.0)
|
|
60
|
+
ostruct (~> 0.6)
|
|
51
61
|
pry (>= 0.13.0)
|
|
52
62
|
shellany (~> 0.0)
|
|
53
63
|
thor (>= 0.18.1)
|
|
@@ -58,50 +68,46 @@ GEM
|
|
|
58
68
|
rspec (>= 2.99.0, < 4.0)
|
|
59
69
|
hamster (3.0.0)
|
|
60
70
|
concurrent-ruby (~> 1.0)
|
|
61
|
-
i18n (1.
|
|
71
|
+
i18n (1.15.2)
|
|
62
72
|
concurrent-ruby (~> 1.0)
|
|
63
|
-
immutable-struct (2.
|
|
64
|
-
json (2.
|
|
65
|
-
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)
|
|
66
76
|
lino (4.1.0)
|
|
67
77
|
childprocess (~> 5.0.0)
|
|
68
78
|
hamster (~> 3.0)
|
|
69
79
|
open4 (~> 1.3)
|
|
80
|
+
lint_roller (1.1.0)
|
|
70
81
|
listen (3.9.0)
|
|
71
82
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
|
72
83
|
rb-inotify (~> 0.9, >= 0.9.10)
|
|
73
|
-
logger (1.
|
|
84
|
+
logger (1.7.0)
|
|
74
85
|
lumberjack (1.2.10)
|
|
75
86
|
method_source (1.1.0)
|
|
76
|
-
minitest (5.
|
|
77
|
-
mutex_m (0.2.0)
|
|
87
|
+
minitest (5.27.0)
|
|
78
88
|
nenv (0.3.0)
|
|
79
|
-
net-http (0.
|
|
80
|
-
uri
|
|
89
|
+
net-http (0.9.1)
|
|
90
|
+
uri (>= 0.11.1)
|
|
81
91
|
notiffany (0.1.3)
|
|
82
92
|
nenv (~> 0.1)
|
|
83
93
|
shellany (~> 0.0)
|
|
84
|
-
octokit (
|
|
85
|
-
base64
|
|
94
|
+
octokit (10.0.0)
|
|
86
95
|
faraday (>= 1, < 3)
|
|
87
96
|
sawyer (~> 0.9)
|
|
88
97
|
open4 (1.3.4)
|
|
89
|
-
|
|
90
|
-
|
|
98
|
+
ostruct (0.6.1)
|
|
99
|
+
parallel (1.27.0)
|
|
100
|
+
parser (3.3.8.0)
|
|
91
101
|
ast (~> 2.4.1)
|
|
92
102
|
racc
|
|
93
|
-
|
|
103
|
+
prism (1.4.0)
|
|
104
|
+
pry (0.15.2)
|
|
94
105
|
coderay (~> 1.1)
|
|
95
106
|
method_source (~> 1.0)
|
|
96
|
-
public_suffix (
|
|
97
|
-
racc (1.8.
|
|
107
|
+
public_suffix (7.0.5)
|
|
108
|
+
racc (1.8.1)
|
|
98
109
|
rainbow (3.1.1)
|
|
99
|
-
rake (13.2
|
|
100
|
-
rake_circle_ci (0.11.0)
|
|
101
|
-
colored2 (~> 3.1)
|
|
102
|
-
excon (~> 0.72)
|
|
103
|
-
rake_factory (~> 0.23)
|
|
104
|
-
sshkey (~> 2.0)
|
|
110
|
+
rake (13.4.2)
|
|
105
111
|
rake_factory (0.33.0)
|
|
106
112
|
activesupport (>= 4)
|
|
107
113
|
rake (~> 13.0)
|
|
@@ -109,69 +115,74 @@ GEM
|
|
|
109
115
|
colored2 (~> 3.1)
|
|
110
116
|
git (~> 1.13, >= 1.13.2)
|
|
111
117
|
rake_factory (~> 0.33)
|
|
112
|
-
rake_git_crypt (0.
|
|
118
|
+
rake_git_crypt (0.4.0)
|
|
113
119
|
colored2 (~> 3.1)
|
|
120
|
+
lino (~> 4.1)
|
|
114
121
|
rake_factory (~> 0.33)
|
|
115
122
|
ruby_git_crypt (~> 0.1)
|
|
116
123
|
ruby_gpg2 (~> 0.12)
|
|
117
|
-
rake_github (0.
|
|
124
|
+
rake_github (0.17.0)
|
|
118
125
|
colored2 (~> 3.1)
|
|
119
|
-
octokit (>=
|
|
120
|
-
rake_factory (~> 0.
|
|
126
|
+
octokit (>= 7.0, < 11.0)
|
|
127
|
+
rake_factory (~> 0.33)
|
|
128
|
+
rbnacl (~> 7.1)
|
|
121
129
|
sshkey (~> 2.0)
|
|
122
130
|
rake_gpg (0.20.0)
|
|
123
131
|
rake_factory (~> 0.33)
|
|
124
132
|
ruby_gpg2 (~> 0.12)
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
rake_factory (~> 0.
|
|
128
|
-
sshkey (~> 2.0)
|
|
133
|
+
rake_slack (0.3.0)
|
|
134
|
+
excon (>= 0.72, < 2.0)
|
|
135
|
+
rake_factory (~> 0.33)
|
|
129
136
|
rb-fsevent (0.11.2)
|
|
130
137
|
rb-inotify (0.11.1)
|
|
131
138
|
ffi (~> 1.0)
|
|
139
|
+
rbnacl (7.1.2)
|
|
140
|
+
ffi (~> 1)
|
|
132
141
|
rchardet (1.8.0)
|
|
133
|
-
regexp_parser (2.
|
|
134
|
-
|
|
135
|
-
strscan
|
|
136
|
-
rspec (3.13.0)
|
|
142
|
+
regexp_parser (2.10.0)
|
|
143
|
+
rspec (3.13.1)
|
|
137
144
|
rspec-core (~> 3.13.0)
|
|
138
145
|
rspec-expectations (~> 3.13.0)
|
|
139
146
|
rspec-mocks (~> 3.13.0)
|
|
140
|
-
rspec-core (3.13.
|
|
147
|
+
rspec-core (3.13.4)
|
|
141
148
|
rspec-support (~> 3.13.0)
|
|
142
|
-
rspec-expectations (3.13.
|
|
149
|
+
rspec-expectations (3.13.5)
|
|
143
150
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
144
151
|
rspec-support (~> 3.13.0)
|
|
145
|
-
rspec-mocks (3.13.
|
|
152
|
+
rspec-mocks (3.13.5)
|
|
146
153
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
147
154
|
rspec-support (~> 3.13.0)
|
|
148
|
-
rspec-support (3.13.
|
|
149
|
-
rubocop (1.
|
|
155
|
+
rspec-support (3.13.4)
|
|
156
|
+
rubocop (1.76.0)
|
|
150
157
|
json (~> 2.3)
|
|
151
|
-
language_server-protocol (
|
|
158
|
+
language_server-protocol (~> 3.17.0.2)
|
|
159
|
+
lint_roller (~> 1.1.0)
|
|
152
160
|
parallel (~> 1.10)
|
|
153
161
|
parser (>= 3.3.0.2)
|
|
154
162
|
rainbow (>= 2.2.2, < 4.0)
|
|
155
|
-
regexp_parser (>= 2.
|
|
156
|
-
|
|
157
|
-
rubocop-ast (>= 1.31.1, < 2.0)
|
|
163
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
|
164
|
+
rubocop-ast (>= 1.45.0, < 2.0)
|
|
158
165
|
ruby-progressbar (~> 1.7)
|
|
159
|
-
unicode-display_width (>= 2.4.0, <
|
|
160
|
-
rubocop-ast (1.
|
|
161
|
-
parser (>= 3.3.
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
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)
|
|
166
176
|
ruby-progressbar (1.13.0)
|
|
167
177
|
ruby_git_crypt (0.1.0)
|
|
168
178
|
immutable-struct (~> 2.4)
|
|
169
179
|
lino (>= 4.1)
|
|
170
180
|
ruby_gpg2 (0.12.0)
|
|
171
181
|
lino (>= 4.1)
|
|
172
|
-
sawyer (0.9.
|
|
182
|
+
sawyer (0.9.3)
|
|
173
183
|
addressable (>= 2.3.5)
|
|
174
184
|
faraday (>= 0.17.3, < 3)
|
|
185
|
+
securerandom (0.4.1)
|
|
175
186
|
shellany (0.0.1)
|
|
176
187
|
simplecov (0.22.0)
|
|
177
188
|
docile (~> 1.1)
|
|
@@ -180,13 +191,14 @@ GEM
|
|
|
180
191
|
simplecov-html (0.12.3)
|
|
181
192
|
simplecov_json_formatter (0.1.4)
|
|
182
193
|
sshkey (2.0.0)
|
|
183
|
-
strscan (3.1.0)
|
|
184
194
|
terminal-notifier-guard (1.7.0)
|
|
185
|
-
thor (1.3.
|
|
195
|
+
thor (1.3.2)
|
|
186
196
|
tzinfo (2.0.6)
|
|
187
197
|
concurrent-ruby (~> 1.0)
|
|
188
|
-
unicode-display_width (
|
|
189
|
-
|
|
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)
|
|
190
202
|
|
|
191
203
|
PLATFORMS
|
|
192
204
|
arm64-darwin-21
|
|
@@ -203,12 +215,11 @@ DEPENDENCIES
|
|
|
203
215
|
guard
|
|
204
216
|
guard-rspec
|
|
205
217
|
rake
|
|
206
|
-
rake_circle_ci
|
|
207
218
|
rake_git
|
|
208
219
|
rake_git_crypt
|
|
209
220
|
rake_github
|
|
210
221
|
rake_gpg
|
|
211
|
-
|
|
222
|
+
rake_slack
|
|
212
223
|
rspec
|
|
213
224
|
rubocop
|
|
214
225
|
rubocop-rake
|
|
@@ -218,4 +229,4 @@ DEPENDENCIES
|
|
|
218
229
|
terminal-notifier-guard
|
|
219
230
|
|
|
220
231
|
BUNDLED WITH
|
|
221
|
-
2.
|
|
232
|
+
2.5.15
|
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.1
|
|
4
|
+
version: 0.6.0.pre.2.pr158.2.1
|
|
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: []
|