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