judges 0.53.5 → 0.53.7
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 +20 -18
- data/features/test.feature +2 -2
- data/judges.gemspec +2 -2
- data/lib/judges/commands/push.rb +3 -3
- data/lib/judges/commands/update.rb +8 -1
- data/lib/judges.rb +1 -1
- metadata +1 -39
- data/.0pdd.yml +0 -8
- data/.gitattributes +0 -7
- data/.github/workflows/actionlint.yml +0 -25
- data/.github/workflows/codecov.yml +0 -27
- data/.github/workflows/copyrights.yml +0 -19
- data/.github/workflows/eslint.yml +0 -20
- data/.github/workflows/markdown-lint.yml +0 -23
- data/.github/workflows/pdd.yml +0 -19
- data/.github/workflows/rake.yml +0 -28
- data/.github/workflows/reuse.yml +0 -19
- data/.github/workflows/typos.yml +0 -19
- data/.github/workflows/xcop.yml +0 -19
- data/.github/workflows/yamllint.yml +0 -19
- data/.gitignore +0 -12
- data/.pdd +0 -7
- data/.rubocop.yml +0 -53
- data/.rultor.yml +0 -37
- data/renovate.json +0 -6
- data/test/commands/test_download.rb +0 -127
- data/test/commands/test_eval.rb +0 -28
- data/test/commands/test_import.rb +0 -40
- data/test/commands/test_inspect.rb +0 -44
- data/test/commands/test_join.rb +0 -38
- data/test/commands/test_print.rb +0 -146
- data/test/commands/test_pull.rb +0 -77
- data/test/commands/test_push.rb +0 -79
- data/test/commands/test_test.rb +0 -217
- data/test/commands/test_trim.rb +0 -31
- data/test/commands/test_update.rb +0 -282
- data/test/commands/test_upload.rb +0 -119
- data/test/test__helper.rb +0 -45
- data/test/test_bin.rb +0 -26
- data/test/test_categories.rb +0 -33
- data/test/test_impex.rb +0 -35
- data/test/test_judge.rb +0 -114
- data/test/test_judges.rb +0 -137
- data/test/test_options.rb +0 -88
- data/test/test_to_rel.rb +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c24a03c87197bb97e5e92654de15874c1e104e22592ff3cd511be7262722c728
|
4
|
+
data.tar.gz: c968a06426c1ad81022ee528bacec3a108e2aaa34a59de8e08d015dae65271f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc644b322013055974b5f5b6b81f39ce2f846b691ed66b0430513c15b46ec1666ebf4953c5c4c86a6ca47d437a2393b8ddc8964c5b06462163162872087791db
|
7
|
+
data.tar.gz: 0e109826b79327638a57e7af592e167732c90d54a4774f6cc5509a1de889ecaf2b6f4d732a655dbcc73eed2601059fd559a7d1bc065af48837f3cc18d098c1ff
|
data/Gemfile.lock
CHANGED
@@ -28,9 +28,9 @@ GEM
|
|
28
28
|
ast (2.4.3)
|
29
29
|
backtrace (0.4.1)
|
30
30
|
base64 (0.3.0)
|
31
|
-
baza.rb (0.10.
|
31
|
+
baza.rb (0.10.2)
|
32
32
|
backtrace (~> 0.4)
|
33
|
-
elapsed (~> 0.
|
33
|
+
elapsed (~> 0.2)
|
34
34
|
faraday (~> 2.13)
|
35
35
|
faraday-http-cache (~> 2.5)
|
36
36
|
faraday-multipart (~> 1.1)
|
@@ -38,9 +38,9 @@ GEM
|
|
38
38
|
iri (~> 0.11)
|
39
39
|
loog (~> 0.6)
|
40
40
|
retries (~> 0.0)
|
41
|
-
tago (~> 0.
|
41
|
+
tago (~> 0.2)
|
42
42
|
typhoeus (~> 1.4)
|
43
|
-
bigdecimal (3.2.
|
43
|
+
bigdecimal (3.2.3)
|
44
44
|
builder (3.3.0)
|
45
45
|
concurrent-ruby (1.3.5)
|
46
46
|
crack (1.0.0)
|
@@ -67,7 +67,7 @@ GEM
|
|
67
67
|
bigdecimal
|
68
68
|
cucumber-gherkin (32.2.0)
|
69
69
|
cucumber-messages (> 25, < 28)
|
70
|
-
cucumber-html-formatter (21.
|
70
|
+
cucumber-html-formatter (21.15.1)
|
71
71
|
cucumber-messages (> 19, < 28)
|
72
72
|
cucumber-messages (27.2.0)
|
73
73
|
cucumber-tag-expressions (6.1.2)
|
@@ -80,7 +80,7 @@ GEM
|
|
80
80
|
ellipsized (0.3.0)
|
81
81
|
ethon (0.17.0)
|
82
82
|
ffi (>= 1.15.0)
|
83
|
-
factbase (0.
|
83
|
+
factbase (0.16.4)
|
84
84
|
backtrace (~> 0.4)
|
85
85
|
decoor (~> 0.1)
|
86
86
|
ellipsized (~> 0.3)
|
@@ -114,7 +114,7 @@ GEM
|
|
114
114
|
ffi (1.17.2-x86_64-linux-musl)
|
115
115
|
gli (2.22.2)
|
116
116
|
ostruct
|
117
|
-
hashdiff (1.2.
|
117
|
+
hashdiff (1.2.1)
|
118
118
|
iri (0.11.2)
|
119
119
|
json (2.13.2)
|
120
120
|
language_server-protocol (3.17.0.5)
|
@@ -122,6 +122,7 @@ GEM
|
|
122
122
|
logger (1.7.0)
|
123
123
|
loog (0.6.1)
|
124
124
|
logger (~> 1.0)
|
125
|
+
memoist3 (1.0.0)
|
125
126
|
mini_mime (1.1.5)
|
126
127
|
minitest (5.25.5)
|
127
128
|
minitest-reporters (1.7.1)
|
@@ -154,7 +155,7 @@ GEM
|
|
154
155
|
racc (~> 1.4)
|
155
156
|
nokogiri (1.18.9-x86_64-linux-musl)
|
156
157
|
racc (~> 1.4)
|
157
|
-
online (0.0
|
158
|
+
online (0.1.0)
|
158
159
|
timeout (~> 0.4)
|
159
160
|
os (1.1.4)
|
160
161
|
ostruct (0.6.3)
|
@@ -177,8 +178,8 @@ GEM
|
|
177
178
|
tago (> 0)
|
178
179
|
regexp_parser (2.11.2)
|
179
180
|
retries (0.0.5)
|
180
|
-
rexml (3.4.
|
181
|
-
rubocop (1.80.
|
181
|
+
rexml (3.4.4)
|
182
|
+
rubocop (1.80.2)
|
182
183
|
json (~> 2.3)
|
183
184
|
language_server-protocol (~> 3.17.0.2)
|
184
185
|
lint_roller (~> 1.1.0)
|
@@ -192,14 +193,14 @@ GEM
|
|
192
193
|
rubocop-ast (1.46.0)
|
193
194
|
parser (>= 3.3.7.2)
|
194
195
|
prism (~> 1.4)
|
195
|
-
rubocop-minitest (0.38.
|
196
|
+
rubocop-minitest (0.38.2)
|
196
197
|
lint_roller (~> 1.1)
|
197
198
|
rubocop (>= 1.75.0, < 2.0)
|
198
199
|
rubocop-ast (>= 1.38.0, < 2.0)
|
199
|
-
rubocop-performance (1.
|
200
|
+
rubocop-performance (1.26.0)
|
200
201
|
lint_roller (~> 1.1)
|
201
202
|
rubocop (>= 1.75.0, < 2.0)
|
202
|
-
rubocop-ast (>= 1.
|
203
|
+
rubocop-ast (>= 1.44.0, < 2.0)
|
203
204
|
rubocop-rake (0.7.1)
|
204
205
|
lint_roller (~> 1.1)
|
205
206
|
rubocop (>= 1.72.1)
|
@@ -213,16 +214,17 @@ GEM
|
|
213
214
|
simplecov (~> 0.19)
|
214
215
|
simplecov-html (0.13.2)
|
215
216
|
simplecov_json_formatter (0.1.4)
|
216
|
-
sys-uname (1.
|
217
|
+
sys-uname (1.4.1)
|
217
218
|
ffi (~> 1.1)
|
218
|
-
|
219
|
+
memoist3 (~> 1.0.0)
|
220
|
+
tago (0.2.0)
|
219
221
|
timeout (0.4.3)
|
220
222
|
total (0.4.1)
|
221
223
|
typhoeus (1.4.1)
|
222
224
|
ethon (>= 0.9.0)
|
223
|
-
unicode-display_width (3.
|
224
|
-
unicode-emoji (~> 4.
|
225
|
-
unicode-emoji (4.0
|
225
|
+
unicode-display_width (3.2.0)
|
226
|
+
unicode-emoji (~> 4.1)
|
227
|
+
unicode-emoji (4.1.0)
|
226
228
|
uri (1.0.3)
|
227
229
|
w3c_validators (1.3.7)
|
228
230
|
json (>= 1.8)
|
data/features/test.feature
CHANGED
@@ -16,9 +16,9 @@ Feature: Test
|
|
16
16
|
And Exit code is zero
|
17
17
|
|
18
18
|
Scenario: Factbase version can be set
|
19
|
-
When I run bin/judges with "--factbase 0.
|
19
|
+
When I run bin/judges with "--factbase 0.16.4 --verbose test --judge guess ./fixtures"
|
20
20
|
Then Exit code is zero
|
21
|
-
And Stdout contains "Factbase version to be used: '0.
|
21
|
+
And Stdout contains "Factbase version to be used: '0.16.4'"
|
22
22
|
|
23
23
|
Scenario: Simple test of no judges
|
24
24
|
Given I run bin/judges with "test --judge absent_for_sure ./fixtures"
|
data/judges.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
|
10
10
|
s.required_ruby_version = '>=3.2'
|
11
11
|
s.name = 'judges'
|
12
|
-
s.version = '0.53.
|
12
|
+
s.version = '0.53.7'
|
13
13
|
s.license = 'MIT'
|
14
14
|
s.summary = 'Command-Line Tool for a Factbase'
|
15
15
|
s.description =
|
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.authors = ['Yegor Bugayenko']
|
22
22
|
s.email = 'yegor256@gmail.com'
|
23
23
|
s.homepage = 'https://github.com/yegor256/judges'
|
24
|
-
s.files = `git ls-files`.split($RS)
|
24
|
+
s.files = `git ls-files | grep -v -E '^(test/|\\.|renovate)'`.split($RS)
|
25
25
|
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
26
26
|
s.rdoc_options = ['--charset=UTF-8']
|
27
27
|
s.extra_rdoc_files = ['README.md', 'LICENSE.txt']
|
data/lib/judges/commands/push.rb
CHANGED
@@ -30,7 +30,7 @@ class Judges::Push
|
|
30
30
|
# @param [Array] args List of command line arguments
|
31
31
|
# @raise [RuntimeError] If not exactly two arguments provided
|
32
32
|
def run(opts, args)
|
33
|
-
raise 'Exactly two arguments required' unless args.size == 2
|
33
|
+
raise 'Exactly two arguments required: <name> and <path>' unless args.size == 2
|
34
34
|
name = args[0]
|
35
35
|
fb = Judges::Impex.new(@loog, args[1]).import
|
36
36
|
baza = BazaRb.new(
|
@@ -44,8 +44,8 @@ class Judges::Push
|
|
44
44
|
elapsed(@loog, level: Logger::INFO) do
|
45
45
|
baza.lock(name, opts['owner'])
|
46
46
|
begin
|
47
|
-
|
48
|
-
throw :"👍 Pushed #{fb.size} facts
|
47
|
+
baza.push(name, fb.export, opts['meta'] || [])
|
48
|
+
throw :"👍 Pushed #{fb.size} facts to baza"
|
49
49
|
ensure
|
50
50
|
baza.unlock(name, opts['owner'])
|
51
51
|
end
|
@@ -150,7 +150,7 @@ class Judges::Update
|
|
150
150
|
s.added = churn.added.size
|
151
151
|
else
|
152
152
|
s = before.first
|
153
|
-
errs = s['
|
153
|
+
errs = s['error']&.size || 0
|
154
154
|
@loog.info(
|
155
155
|
"A summary found, with #{errs.positive? || 'no'} error#{'s' if errs > 1 || errs.zero?}: " \
|
156
156
|
"#{%w[when cycles version inserted deleted added].map { |a| "#{a}=#{s[a]&.first}" }.join(', ')}"
|
@@ -183,6 +183,13 @@ class Judges::Update
|
|
183
183
|
@loog.info("Not running #{judge.name.inspect} due to #{errors.count} errors above, in --fail-fast mode")
|
184
184
|
next
|
185
185
|
end
|
186
|
+
if opts['lifetime'] && opts['timeout']
|
187
|
+
remained = @start + opts['lifetime'] - Time.now
|
188
|
+
if remained < opts['timeout'] / 16
|
189
|
+
@loog.info("Not running #{judge.name.inspect}, not enough time left (just #{remained.seconds})")
|
190
|
+
next
|
191
|
+
end
|
192
|
+
end
|
186
193
|
next unless include?(opts, judge.name)
|
187
194
|
@loog.info("\n👉 Running #{judge.name} (##{i}) at #{judge.dir.to_rel} (#{@start.ago} already)...")
|
188
195
|
used += 1
|
data/lib/judges.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: judges
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.53.
|
4
|
+
version: 0.53.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yegor Bugayenko
|
@@ -244,23 +244,6 @@ extra_rdoc_files:
|
|
244
244
|
- LICENSE.txt
|
245
245
|
- README.md
|
246
246
|
files:
|
247
|
-
- ".0pdd.yml"
|
248
|
-
- ".gitattributes"
|
249
|
-
- ".github/workflows/actionlint.yml"
|
250
|
-
- ".github/workflows/codecov.yml"
|
251
|
-
- ".github/workflows/copyrights.yml"
|
252
|
-
- ".github/workflows/eslint.yml"
|
253
|
-
- ".github/workflows/markdown-lint.yml"
|
254
|
-
- ".github/workflows/pdd.yml"
|
255
|
-
- ".github/workflows/rake.yml"
|
256
|
-
- ".github/workflows/reuse.yml"
|
257
|
-
- ".github/workflows/typos.yml"
|
258
|
-
- ".github/workflows/xcop.yml"
|
259
|
-
- ".github/workflows/yamllint.yml"
|
260
|
-
- ".gitignore"
|
261
|
-
- ".pdd"
|
262
|
-
- ".rubocop.yml"
|
263
|
-
- ".rultor.yml"
|
264
247
|
- Gemfile
|
265
248
|
- Gemfile.lock
|
266
249
|
- LICENSE.txt
|
@@ -317,27 +300,6 @@ files:
|
|
317
300
|
- lib/judges/to_rel.rb
|
318
301
|
- package-lock.json
|
319
302
|
- package.json
|
320
|
-
- renovate.json
|
321
|
-
- test/commands/test_download.rb
|
322
|
-
- test/commands/test_eval.rb
|
323
|
-
- test/commands/test_import.rb
|
324
|
-
- test/commands/test_inspect.rb
|
325
|
-
- test/commands/test_join.rb
|
326
|
-
- test/commands/test_print.rb
|
327
|
-
- test/commands/test_pull.rb
|
328
|
-
- test/commands/test_push.rb
|
329
|
-
- test/commands/test_test.rb
|
330
|
-
- test/commands/test_trim.rb
|
331
|
-
- test/commands/test_update.rb
|
332
|
-
- test/commands/test_upload.rb
|
333
|
-
- test/test__helper.rb
|
334
|
-
- test/test_bin.rb
|
335
|
-
- test/test_categories.rb
|
336
|
-
- test/test_impex.rb
|
337
|
-
- test/test_judge.rb
|
338
|
-
- test/test_judges.rb
|
339
|
-
- test/test_options.rb
|
340
|
-
- test/test_to_rel.rb
|
341
303
|
homepage: https://github.com/yegor256/judges
|
342
304
|
licenses:
|
343
305
|
- MIT
|
data/.0pdd.yml
DELETED
data/.gitattributes
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 Yegor Bugayenko
|
2
|
-
# SPDX-License-Identifier: MIT
|
3
|
-
---
|
4
|
-
# yamllint disable rule:line-length
|
5
|
-
name: actionlint
|
6
|
-
'on':
|
7
|
-
push:
|
8
|
-
branches:
|
9
|
-
- master
|
10
|
-
pull_request:
|
11
|
-
branches:
|
12
|
-
- master
|
13
|
-
jobs:
|
14
|
-
actionlint:
|
15
|
-
timeout-minutes: 15
|
16
|
-
runs-on: ubuntu-24.04
|
17
|
-
steps:
|
18
|
-
- uses: actions/checkout@v5
|
19
|
-
- name: Download actionlint
|
20
|
-
id: get_actionlint
|
21
|
-
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
|
22
|
-
shell: bash
|
23
|
-
- name: Check workflow files
|
24
|
-
run: ${{ steps.get_actionlint.outputs.executable }} -color
|
25
|
-
shell: bash
|
@@ -1,27 +0,0 @@
|
|
1
|
-
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 Yegor Bugayenko
|
2
|
-
# SPDX-License-Identifier: MIT
|
3
|
-
---
|
4
|
-
# yamllint disable rule:line-length
|
5
|
-
name: codecov
|
6
|
-
'on':
|
7
|
-
push:
|
8
|
-
branches:
|
9
|
-
- master
|
10
|
-
jobs:
|
11
|
-
codecov:
|
12
|
-
timeout-minutes: 15
|
13
|
-
runs-on: ubuntu-24.04
|
14
|
-
steps:
|
15
|
-
- uses: actions/checkout@v5
|
16
|
-
- uses: ruby/setup-ruby@v1
|
17
|
-
with:
|
18
|
-
ruby-version: 3.3
|
19
|
-
bundler-cache: true
|
20
|
-
- run: bundle config set --global path "$(pwd)/vendor/bundle"
|
21
|
-
- run: bundle install --no-color
|
22
|
-
- run: bundle exec rake
|
23
|
-
- uses: codecov/codecov-action@v5
|
24
|
-
with:
|
25
|
-
token: ${{ secrets.CODECOV_TOKEN }}
|
26
|
-
files: coverage/.resultset.json
|
27
|
-
fail_ci_if_error: true
|
@@ -1,19 +0,0 @@
|
|
1
|
-
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 Yegor Bugayenko
|
2
|
-
# SPDX-License-Identifier: MIT
|
3
|
-
---
|
4
|
-
# yamllint disable rule:line-length
|
5
|
-
name: copyrights
|
6
|
-
'on':
|
7
|
-
push:
|
8
|
-
branches:
|
9
|
-
- master
|
10
|
-
pull_request:
|
11
|
-
branches:
|
12
|
-
- master
|
13
|
-
jobs:
|
14
|
-
copyrights:
|
15
|
-
timeout-minutes: 15
|
16
|
-
runs-on: ubuntu-24.04
|
17
|
-
steps:
|
18
|
-
- uses: actions/checkout@v5
|
19
|
-
- uses: yegor256/copyrights-action@0.0.12
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 Yegor Bugayenko
|
2
|
-
# SPDX-License-Identifier: MIT
|
3
|
-
---
|
4
|
-
# yamllint disable rule:line-length
|
5
|
-
name: eslint
|
6
|
-
'on':
|
7
|
-
push:
|
8
|
-
branches:
|
9
|
-
- master
|
10
|
-
pull_request:
|
11
|
-
branches:
|
12
|
-
- master
|
13
|
-
jobs:
|
14
|
-
eslint:
|
15
|
-
timeout-minutes: 15
|
16
|
-
runs-on: ubuntu-24.04
|
17
|
-
steps:
|
18
|
-
- uses: actions/checkout@v5
|
19
|
-
- run: npm install
|
20
|
-
- run: npx eslint .
|
@@ -1,23 +0,0 @@
|
|
1
|
-
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 Yegor Bugayenko
|
2
|
-
# SPDX-License-Identifier: MIT
|
3
|
-
---
|
4
|
-
# yamllint disable rule:line-length
|
5
|
-
name: markdown-lint
|
6
|
-
'on':
|
7
|
-
push:
|
8
|
-
branches:
|
9
|
-
- master
|
10
|
-
pull_request:
|
11
|
-
branches:
|
12
|
-
- master
|
13
|
-
paths-ignore: ['paper/**', 'sandbox/**']
|
14
|
-
concurrency:
|
15
|
-
group: markdown-lint-${{ github.ref }}
|
16
|
-
cancel-in-progress: true
|
17
|
-
jobs:
|
18
|
-
markdown-lint:
|
19
|
-
timeout-minutes: 15
|
20
|
-
runs-on: ubuntu-24.04
|
21
|
-
steps:
|
22
|
-
- uses: actions/checkout@v5
|
23
|
-
- uses: DavidAnson/markdownlint-cli2-action@v20.0.0
|
data/.github/workflows/pdd.yml
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 Yegor Bugayenko
|
2
|
-
# SPDX-License-Identifier: MIT
|
3
|
-
---
|
4
|
-
# yamllint disable rule:line-length
|
5
|
-
name: pdd
|
6
|
-
'on':
|
7
|
-
push:
|
8
|
-
branches:
|
9
|
-
- master
|
10
|
-
pull_request:
|
11
|
-
branches:
|
12
|
-
- master
|
13
|
-
jobs:
|
14
|
-
pdd:
|
15
|
-
timeout-minutes: 15
|
16
|
-
runs-on: ubuntu-24.04
|
17
|
-
steps:
|
18
|
-
- uses: actions/checkout@v5
|
19
|
-
- uses: volodya-lombrozo/pdd-action@master
|
data/.github/workflows/rake.yml
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 Yegor Bugayenko
|
2
|
-
# SPDX-License-Identifier: MIT
|
3
|
-
---
|
4
|
-
# yamllint disable rule:line-length
|
5
|
-
name: rake
|
6
|
-
'on':
|
7
|
-
push:
|
8
|
-
branches:
|
9
|
-
- master
|
10
|
-
pull_request:
|
11
|
-
branches:
|
12
|
-
- master
|
13
|
-
jobs:
|
14
|
-
rake:
|
15
|
-
strategy:
|
16
|
-
matrix:
|
17
|
-
os: [ubuntu-24.04, macos-15, windows-2022]
|
18
|
-
ruby: [3.3]
|
19
|
-
runs-on: ${{ matrix.os }}
|
20
|
-
steps:
|
21
|
-
- uses: actions/checkout@v5
|
22
|
-
- uses: ruby/setup-ruby@v1
|
23
|
-
with:
|
24
|
-
ruby-version: ${{ matrix.ruby }}
|
25
|
-
bundler-cache: true
|
26
|
-
- run: bundle config set --global path "$(pwd)/vendor/bundle"
|
27
|
-
- run: bundle install --no-color
|
28
|
-
- run: bundle exec rake
|
data/.github/workflows/reuse.yml
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 Yegor Bugayenko
|
2
|
-
# SPDX-License-Identifier: MIT
|
3
|
-
---
|
4
|
-
# yamllint disable rule:line-length
|
5
|
-
name: reuse
|
6
|
-
'on':
|
7
|
-
push:
|
8
|
-
branches:
|
9
|
-
- master
|
10
|
-
pull_request:
|
11
|
-
branches:
|
12
|
-
- master
|
13
|
-
jobs:
|
14
|
-
reuse:
|
15
|
-
timeout-minutes: 15
|
16
|
-
runs-on: ubuntu-24.04
|
17
|
-
steps:
|
18
|
-
- uses: actions/checkout@v5
|
19
|
-
- uses: fsfe/reuse-action@v5
|
data/.github/workflows/typos.yml
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 Yegor Bugayenko
|
2
|
-
# SPDX-License-Identifier: MIT
|
3
|
-
---
|
4
|
-
# yamllint disable rule:line-length
|
5
|
-
name: typos
|
6
|
-
'on':
|
7
|
-
push:
|
8
|
-
branches:
|
9
|
-
- master
|
10
|
-
pull_request:
|
11
|
-
branches:
|
12
|
-
- master
|
13
|
-
jobs:
|
14
|
-
typos:
|
15
|
-
timeout-minutes: 15
|
16
|
-
runs-on: ubuntu-24.04
|
17
|
-
steps:
|
18
|
-
- uses: actions/checkout@v5
|
19
|
-
- uses: crate-ci/typos@v1.35.5
|
data/.github/workflows/xcop.yml
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 Yegor Bugayenko
|
2
|
-
# SPDX-License-Identifier: MIT
|
3
|
-
---
|
4
|
-
# yamllint disable rule:line-length
|
5
|
-
name: xcop
|
6
|
-
'on':
|
7
|
-
push:
|
8
|
-
branches:
|
9
|
-
- master
|
10
|
-
pull_request:
|
11
|
-
branches:
|
12
|
-
- master
|
13
|
-
jobs:
|
14
|
-
xcop:
|
15
|
-
timeout-minutes: 15
|
16
|
-
runs-on: ubuntu-24.04
|
17
|
-
steps:
|
18
|
-
- uses: actions/checkout@v5
|
19
|
-
- uses: g4s8/xcop-action@master
|
@@ -1,19 +0,0 @@
|
|
1
|
-
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 Yegor Bugayenko
|
2
|
-
# SPDX-License-Identifier: MIT
|
3
|
-
---
|
4
|
-
# yamllint disable rule:line-length
|
5
|
-
name: yamllint
|
6
|
-
'on':
|
7
|
-
push:
|
8
|
-
branches:
|
9
|
-
- master
|
10
|
-
pull_request:
|
11
|
-
branches:
|
12
|
-
- master
|
13
|
-
jobs:
|
14
|
-
yamllint:
|
15
|
-
timeout-minutes: 15
|
16
|
-
runs-on: ubuntu-24.04
|
17
|
-
steps:
|
18
|
-
- uses: actions/checkout@v5
|
19
|
-
- uses: ibiqlik/action-yamllint@v3
|
data/.gitignore
DELETED
data/.pdd
DELETED
data/.rubocop.yml
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 Yegor Bugayenko
|
2
|
-
# SPDX-License-Identifier: MIT
|
3
|
-
---
|
4
|
-
AllCops:
|
5
|
-
Exclude:
|
6
|
-
- 'bin/**/*'
|
7
|
-
- 'assets/**/*'
|
8
|
-
- 'vendor/**/*'
|
9
|
-
DisplayCopNames: true
|
10
|
-
TargetRubyVersion: 3.2
|
11
|
-
SuggestExtensions: false
|
12
|
-
NewCops: enable
|
13
|
-
plugins:
|
14
|
-
- rubocop-minitest
|
15
|
-
- rubocop-performance
|
16
|
-
- rubocop-rake
|
17
|
-
Minitest/EmptyLineBeforeAssertionMethods:
|
18
|
-
Enabled: false
|
19
|
-
Metrics/ParameterLists:
|
20
|
-
Enabled: false
|
21
|
-
Style/GlobalVars:
|
22
|
-
Enabled: false
|
23
|
-
Metrics/MethodLength:
|
24
|
-
Enabled: false
|
25
|
-
Gemspec/RequiredRubyVersion:
|
26
|
-
Enabled: false
|
27
|
-
Style/ClassAndModuleChildren:
|
28
|
-
Enabled: false
|
29
|
-
Layout/MultilineMethodCallIndentation:
|
30
|
-
Enabled: false
|
31
|
-
Metrics/AbcSize:
|
32
|
-
Enabled: false
|
33
|
-
Metrics/ClassLength:
|
34
|
-
Enabled: false
|
35
|
-
Metrics/BlockLength:
|
36
|
-
Enabled: false
|
37
|
-
Metrics/CyclomaticComplexity:
|
38
|
-
Enabled: false
|
39
|
-
Metrics/PerceivedComplexity:
|
40
|
-
Enabled: false
|
41
|
-
Layout/EmptyLineAfterGuardClause:
|
42
|
-
Enabled: false
|
43
|
-
Layout/CaseIndentation:
|
44
|
-
Enabled: false
|
45
|
-
Naming/MethodParameterName:
|
46
|
-
MinNameLength: 2
|
47
|
-
Layout/EndOfLine:
|
48
|
-
EnforcedStyle: lf
|
49
|
-
Layout/MultilineAssignmentLayout:
|
50
|
-
Enabled: true
|
51
|
-
Layout/FirstHashElementIndentation:
|
52
|
-
EnforcedStyle: consistent
|
53
|
-
require: []
|
data/.rultor.yml
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 Yegor Bugayenko
|
2
|
-
# SPDX-License-Identifier: MIT
|
3
|
-
---
|
4
|
-
# yamllint disable rule:line-length
|
5
|
-
docker:
|
6
|
-
image: yegor256/ruby
|
7
|
-
assets:
|
8
|
-
rubygems.yml: yegor256/home#assets/rubygems.yml
|
9
|
-
install: |
|
10
|
-
pdd -f /dev/null
|
11
|
-
bundle install --no-color
|
12
|
-
release:
|
13
|
-
pre: false
|
14
|
-
script: |-
|
15
|
-
[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1
|
16
|
-
bundle exec rake
|
17
|
-
rm -rf *.gem
|
18
|
-
sed -i "s/0\.0\.0/${tag}/g" judges.gemspec
|
19
|
-
git add judges.gemspec
|
20
|
-
sed -i "s/0\.0\.0/${tag}/g" lib/judges.rb
|
21
|
-
git add lib/judges.rb
|
22
|
-
git commit -m "version set to ${tag}"
|
23
|
-
gem build judges.gemspec
|
24
|
-
chmod 0600 ../rubygems.yml
|
25
|
-
gem push *.gem --config-file ../rubygems.yml
|
26
|
-
|
27
|
-
cp assets/index.css /tmp/index.css
|
28
|
-
cp assets/index.js /tmp/index.js
|
29
|
-
git checkout gh-pages
|
30
|
-
mkdir -p assets
|
31
|
-
cp /tmp/index.css assets/index.css
|
32
|
-
cp /tmp/index.js assets/index.js
|
33
|
-
git add assets/
|
34
|
-
git commit -a --allow-empty -m 'New JS and CSS'
|
35
|
-
merge:
|
36
|
-
script: |-
|
37
|
-
bundle exec rake
|