judges 0.53.6 → 0.53.8
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 -20
- data/features/test.feature +2 -2
- data/judges.gemspec +2 -2
- data/lib/judges/commands/push.rb +3 -3
- data/lib/judges/commands/upload.rb +13 -11
- 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: c75fa1f015fb78647c5f976812eb3a93032c12643c41c5d2b008c7048bba3825
|
4
|
+
data.tar.gz: 1ddcb544a2593bee9a516a2301e81d67f223b112e48c31c2beda96e6356123df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d786a711fafe73654f96b7f0d3abc36ebe78f542d0f631d7d14afc7b883e893db641aad061e7ca266eab62905de9e87eacd326b05a40590e76f536f9acacf13
|
7
|
+
data.tar.gz: 54d21760d04b90f45a82ecd672b60f228fbc308a16c5b3998751feedfc9830a2dafc7d23d3fb090f68c10bb213e6106fac9343c0898f340c2a2c51b93e28d2ec
|
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,7 +122,7 @@ GEM
|
|
122
122
|
logger (1.7.0)
|
123
123
|
loog (0.6.1)
|
124
124
|
logger (~> 1.0)
|
125
|
-
|
125
|
+
memoist3 (1.0.0)
|
126
126
|
mini_mime (1.1.5)
|
127
127
|
minitest (5.25.5)
|
128
128
|
minitest-reporters (1.7.1)
|
@@ -155,7 +155,7 @@ GEM
|
|
155
155
|
racc (~> 1.4)
|
156
156
|
nokogiri (1.18.9-x86_64-linux-musl)
|
157
157
|
racc (~> 1.4)
|
158
|
-
online (0.0
|
158
|
+
online (0.1.0)
|
159
159
|
timeout (~> 0.4)
|
160
160
|
os (1.1.4)
|
161
161
|
ostruct (0.6.3)
|
@@ -178,8 +178,8 @@ GEM
|
|
178
178
|
tago (> 0)
|
179
179
|
regexp_parser (2.11.2)
|
180
180
|
retries (0.0.5)
|
181
|
-
rexml (3.4.
|
182
|
-
rubocop (1.80.
|
181
|
+
rexml (3.4.4)
|
182
|
+
rubocop (1.80.2)
|
183
183
|
json (~> 2.3)
|
184
184
|
language_server-protocol (~> 3.17.0.2)
|
185
185
|
lint_roller (~> 1.1.0)
|
@@ -193,14 +193,14 @@ GEM
|
|
193
193
|
rubocop-ast (1.46.0)
|
194
194
|
parser (>= 3.3.7.2)
|
195
195
|
prism (~> 1.4)
|
196
|
-
rubocop-minitest (0.38.
|
196
|
+
rubocop-minitest (0.38.2)
|
197
197
|
lint_roller (~> 1.1)
|
198
198
|
rubocop (>= 1.75.0, < 2.0)
|
199
199
|
rubocop-ast (>= 1.38.0, < 2.0)
|
200
|
-
rubocop-performance (1.
|
200
|
+
rubocop-performance (1.26.0)
|
201
201
|
lint_roller (~> 1.1)
|
202
202
|
rubocop (>= 1.75.0, < 2.0)
|
203
|
-
rubocop-ast (>= 1.
|
203
|
+
rubocop-ast (>= 1.44.0, < 2.0)
|
204
204
|
rubocop-rake (0.7.1)
|
205
205
|
lint_roller (~> 1.1)
|
206
206
|
rubocop (>= 1.72.1)
|
@@ -214,17 +214,17 @@ GEM
|
|
214
214
|
simplecov (~> 0.19)
|
215
215
|
simplecov-html (0.13.2)
|
216
216
|
simplecov_json_formatter (0.1.4)
|
217
|
-
sys-uname (1.4.
|
217
|
+
sys-uname (1.4.1)
|
218
218
|
ffi (~> 1.1)
|
219
|
-
|
220
|
-
tago (0.
|
219
|
+
memoist3 (~> 1.0.0)
|
220
|
+
tago (0.2.0)
|
221
221
|
timeout (0.4.3)
|
222
222
|
total (0.4.1)
|
223
223
|
typhoeus (1.4.1)
|
224
224
|
ethon (>= 0.9.0)
|
225
|
-
unicode-display_width (3.
|
226
|
-
unicode-emoji (~> 4.
|
227
|
-
unicode-emoji (4.0
|
225
|
+
unicode-display_width (3.2.0)
|
226
|
+
unicode-emoji (~> 4.1)
|
227
|
+
unicode-emoji (4.1.0)
|
228
228
|
uri (1.0.3)
|
229
229
|
w3c_validators (1.3.7)
|
230
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.8'
|
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
|
@@ -9,7 +9,7 @@ require 'baza-rb'
|
|
9
9
|
require 'elapsed'
|
10
10
|
require_relative '../../judges'
|
11
11
|
|
12
|
-
# The +upload+ command.
|
12
|
+
# The +upload+ command, to send a durable to Zerocracy.
|
13
13
|
#
|
14
14
|
# This class is instantiated by the +bin/judge+ command line interface. You
|
15
15
|
# are not supposed to instantiate it yourself.
|
@@ -45,18 +45,20 @@ class Judges::Upload
|
|
45
45
|
id = baza.durable_find(jname, name)
|
46
46
|
size = File.size(path)
|
47
47
|
if id.nil? || id.to_s.strip.empty?
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
baza.durable_lock(id, opts['owner'] || 'default')
|
53
|
-
begin
|
54
|
-
baza.durable_save(id, path)
|
55
|
-
throw :"👍 Uploaded #{path} to existing durable '#{name}' in '#{jname}' (ID: #{id}, #{size} bytes)"
|
56
|
-
ensure
|
57
|
-
baza.durable_unlock(id, opts['owner'] || 'default')
|
48
|
+
Tempfile.create do |f|
|
49
|
+
File.write(f.path, 'placeholder')
|
50
|
+
id = baza.durable_place(jname, f.path)
|
51
|
+
@loog.info("Placed a placeholder to new durable '#{name}' in '#{jname}' (ID: #{id})")
|
58
52
|
end
|
59
53
|
end
|
54
|
+
id = id.to_i
|
55
|
+
baza.durable_lock(id, opts['owner'] || 'default')
|
56
|
+
begin
|
57
|
+
baza.durable_save(id, path)
|
58
|
+
throw :"👍 Uploaded #{path} to existing durable '#{name}' in '#{jname}' (ID: #{id}, #{size} bytes)"
|
59
|
+
ensure
|
60
|
+
baza.durable_unlock(id, opts['owner'] || 'default')
|
61
|
+
end
|
60
62
|
end
|
61
63
|
end
|
62
64
|
end
|
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.8
|
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
|