judges 0.52.1 → 0.53.0
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/.github/workflows/actionlint.yml +1 -1
- data/.github/workflows/codecov.yml +1 -1
- data/.github/workflows/copyrights.yml +1 -1
- data/.github/workflows/eslint.yml +1 -1
- data/.github/workflows/markdown-lint.yml +1 -1
- data/.github/workflows/pdd.yml +1 -1
- data/.github/workflows/rake.yml +1 -1
- data/.github/workflows/reuse.yml +1 -1
- data/.github/workflows/typos.yml +2 -2
- data/.github/workflows/xcop.yml +1 -1
- data/.github/workflows/yamllint.yml +1 -1
- data/Gemfile +6 -5
- data/Gemfile.lock +33 -34
- data/features/test.feature +2 -2
- data/judges.gemspec +1 -1
- data/lib/judges/commands/update.rb +2 -1
- data/lib/judges.rb +1 -1
- data/test/commands/test_update.rb +13 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28476c2fdf2ce4ade1719df441e59d5b1b0cd8f2504419bb298aa11c05c7bbc1
|
4
|
+
data.tar.gz: 6a02a3d691eb27817517a49e60e089a72c40c2e41a844c992c50e0368ea04e18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35b6719aac90034754e98a74a2a16da99995b06f6bf17e7d20a1c604cbb5efdf7af388b41ee60cf55c9b022076eaa8a862c93ed2db70168d05c3e6d1b3025502
|
7
|
+
data.tar.gz: c92556ae80920c8079187acf6bae340a42f9636b96d92f998229e62e931defa5b0dd6e5b3dc3ea2bc25fadff1417e234e97c0ed1f6b07a05bb66c83dd612855f
|
@@ -15,7 +15,7 @@ jobs:
|
|
15
15
|
timeout-minutes: 15
|
16
16
|
runs-on: ubuntu-24.04
|
17
17
|
steps:
|
18
|
-
- uses: actions/checkout@
|
18
|
+
- uses: actions/checkout@v5
|
19
19
|
- name: Download actionlint
|
20
20
|
id: get_actionlint
|
21
21
|
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
|
data/.github/workflows/pdd.yml
CHANGED
data/.github/workflows/rake.yml
CHANGED
data/.github/workflows/reuse.yml
CHANGED
data/.github/workflows/typos.yml
CHANGED
data/.github/workflows/xcop.yml
CHANGED
data/Gemfile
CHANGED
@@ -6,21 +6,22 @@
|
|
6
6
|
source 'https://rubygems.org'
|
7
7
|
gemspec
|
8
8
|
|
9
|
-
gem 'base64', '~>0.
|
9
|
+
gem 'base64', '~>0.3'
|
10
10
|
gem 'cucumber', '~>10.0', require: false
|
11
|
+
gem 'diff-lcs', '1.6.2', require: false # GPL
|
11
12
|
gem 'minitest', '~>5.25', require: false
|
12
13
|
gem 'minitest-reporters', '~>1.7', require: false
|
13
14
|
gem 'minitest-retry', '~>0.2', require: false
|
14
15
|
gem 'net-ping', '~>2.0', require: false
|
15
16
|
gem 'online', '~>0.0', require: false
|
16
17
|
gem 'os', '~>1.1', require: false
|
17
|
-
gem 'qbash', '~>0.
|
18
|
+
gem 'qbash', '~>0.4', require: false
|
18
19
|
gem 'rake', '~>13.2', require: false
|
19
|
-
gem 'random-port', '~>0.
|
20
|
+
gem 'random-port', '~>0.7', require: false
|
20
21
|
gem 'rubocop', '~>1.74', require: false
|
21
|
-
gem 'rubocop-minitest', '~>0.
|
22
|
+
gem 'rubocop-minitest', '~>0.38', require: false
|
22
23
|
gem 'rubocop-performance', '~>1.25', require: false
|
23
|
-
gem 'rubocop-rake', '~>0.
|
24
|
+
gem 'rubocop-rake', '~>0.7', require: false
|
24
25
|
gem 'simplecov', '~>0.22', require: false
|
25
26
|
gem 'simplecov-cobertura', '~>3.0', require: false
|
26
27
|
gem 'w3c_validators', '~>1.3', require: false
|
data/Gemfile.lock
CHANGED
@@ -28,7 +28,7 @@ GEM
|
|
28
28
|
ast (2.4.3)
|
29
29
|
backtrace (0.4.1)
|
30
30
|
base64 (0.3.0)
|
31
|
-
baza.rb (0.
|
31
|
+
baza.rb (0.10.1)
|
32
32
|
backtrace (~> 0.4)
|
33
33
|
elapsed (~> 0.0)
|
34
34
|
faraday (~> 2.13)
|
@@ -59,28 +59,28 @@ GEM
|
|
59
59
|
multi_test (~> 1.1)
|
60
60
|
sys-uname (~> 1.3)
|
61
61
|
cucumber-ci-environment (10.0.1)
|
62
|
-
cucumber-core (15.
|
63
|
-
cucumber-gherkin (> 27, <
|
64
|
-
cucumber-messages (> 26, <
|
62
|
+
cucumber-core (15.2.0)
|
63
|
+
cucumber-gherkin (> 27, < 33)
|
64
|
+
cucumber-messages (> 26, < 30)
|
65
65
|
cucumber-tag-expressions (> 5, < 7)
|
66
66
|
cucumber-cucumber-expressions (18.0.1)
|
67
67
|
bigdecimal
|
68
|
-
cucumber-gherkin (
|
68
|
+
cucumber-gherkin (32.2.0)
|
69
69
|
cucumber-messages (> 25, < 28)
|
70
|
-
cucumber-html-formatter (21.
|
70
|
+
cucumber-html-formatter (21.14.0)
|
71
71
|
cucumber-messages (> 19, < 28)
|
72
72
|
cucumber-messages (27.2.0)
|
73
73
|
cucumber-tag-expressions (6.1.2)
|
74
74
|
decoor (0.1.0)
|
75
75
|
diff-lcs (1.6.2)
|
76
76
|
docile (1.4.1)
|
77
|
-
elapsed (0.
|
78
|
-
loog (
|
79
|
-
tago (
|
77
|
+
elapsed (0.2.0)
|
78
|
+
loog (~> 0.6)
|
79
|
+
tago (~> 0.1)
|
80
80
|
ellipsized (0.3.0)
|
81
81
|
ethon (0.16.0)
|
82
82
|
ffi (>= 1.15.0)
|
83
|
-
factbase (0.
|
83
|
+
factbase (0.15.0)
|
84
84
|
backtrace (~> 0.4)
|
85
85
|
decoor (~> 0.0)
|
86
86
|
ellipsized (~> 0.3)
|
@@ -91,7 +91,7 @@ GEM
|
|
91
91
|
others (~> 0.0)
|
92
92
|
tago (~> 0.0)
|
93
93
|
yaml (~> 0.3)
|
94
|
-
faraday (2.13.
|
94
|
+
faraday (2.13.4)
|
95
95
|
faraday-net_http (>= 2.0, < 3.5)
|
96
96
|
json
|
97
97
|
logger
|
@@ -116,7 +116,7 @@ GEM
|
|
116
116
|
ostruct
|
117
117
|
hashdiff (1.2.0)
|
118
118
|
iri (0.11.2)
|
119
|
-
json (2.13.
|
119
|
+
json (2.13.2)
|
120
120
|
language_server-protocol (3.17.0.5)
|
121
121
|
lint_roller (1.1.0)
|
122
122
|
logger (1.7.0)
|
@@ -137,31 +137,31 @@ GEM
|
|
137
137
|
net-http (0.6.0)
|
138
138
|
uri
|
139
139
|
net-ping (2.0.8)
|
140
|
-
nokogiri (1.18.
|
140
|
+
nokogiri (1.18.9-aarch64-linux-gnu)
|
141
141
|
racc (~> 1.4)
|
142
|
-
nokogiri (1.18.
|
142
|
+
nokogiri (1.18.9-aarch64-linux-musl)
|
143
143
|
racc (~> 1.4)
|
144
|
-
nokogiri (1.18.
|
144
|
+
nokogiri (1.18.9-arm-linux-gnu)
|
145
145
|
racc (~> 1.4)
|
146
|
-
nokogiri (1.18.
|
146
|
+
nokogiri (1.18.9-arm-linux-musl)
|
147
147
|
racc (~> 1.4)
|
148
|
-
nokogiri (1.18.
|
148
|
+
nokogiri (1.18.9-arm64-darwin)
|
149
149
|
racc (~> 1.4)
|
150
|
-
nokogiri (1.18.
|
150
|
+
nokogiri (1.18.9-x64-mingw-ucrt)
|
151
151
|
racc (~> 1.4)
|
152
|
-
nokogiri (1.18.
|
152
|
+
nokogiri (1.18.9-x86_64-darwin)
|
153
153
|
racc (~> 1.4)
|
154
|
-
nokogiri (1.18.
|
154
|
+
nokogiri (1.18.9-x86_64-linux-gnu)
|
155
155
|
racc (~> 1.4)
|
156
|
-
nokogiri (1.18.
|
156
|
+
nokogiri (1.18.9-x86_64-linux-musl)
|
157
157
|
racc (~> 1.4)
|
158
158
|
online (0.0.1)
|
159
159
|
timeout (~> 0.4)
|
160
160
|
os (1.1.4)
|
161
|
-
ostruct (0.6.
|
161
|
+
ostruct (0.6.3)
|
162
162
|
others (0.1.1)
|
163
163
|
parallel (1.27.0)
|
164
|
-
parser (3.3.
|
164
|
+
parser (3.3.9.0)
|
165
165
|
ast (~> 2.4.1)
|
166
166
|
racc
|
167
167
|
prism (1.4.0)
|
@@ -176,10 +176,10 @@ GEM
|
|
176
176
|
rake (13.3.0)
|
177
177
|
random-port (0.7.5)
|
178
178
|
tago (> 0)
|
179
|
-
regexp_parser (2.
|
179
|
+
regexp_parser (2.11.2)
|
180
180
|
retries (0.0.5)
|
181
181
|
rexml (3.4.1)
|
182
|
-
rubocop (1.79.
|
182
|
+
rubocop (1.79.2)
|
183
183
|
json (~> 2.3)
|
184
184
|
language_server-protocol (~> 3.17.0.2)
|
185
185
|
lint_roller (~> 1.1.0)
|
@@ -189,7 +189,6 @@ GEM
|
|
189
189
|
regexp_parser (>= 2.9.3, < 3.0)
|
190
190
|
rubocop-ast (>= 1.46.0, < 2.0)
|
191
191
|
ruby-progressbar (~> 1.7)
|
192
|
-
tsort (>= 0.2.0)
|
193
192
|
unicode-display_width (>= 2.4.0, < 4.0)
|
194
193
|
rubocop-ast (1.46.0)
|
195
194
|
parser (>= 3.3.7.2)
|
@@ -213,17 +212,16 @@ GEM
|
|
213
212
|
simplecov-cobertura (3.0.0)
|
214
213
|
rexml
|
215
214
|
simplecov (~> 0.19)
|
216
|
-
simplecov-html (0.13.
|
215
|
+
simplecov-html (0.13.2)
|
217
216
|
simplecov_json_formatter (0.1.4)
|
218
217
|
sys-uname (1.3.1)
|
219
218
|
ffi (~> 1.1)
|
220
219
|
tago (0.1.0)
|
221
220
|
timeout (0.4.3)
|
222
221
|
total (0.4.1)
|
223
|
-
tsort (0.2.0)
|
224
222
|
typhoeus (1.4.1)
|
225
223
|
ethon (>= 0.9.0)
|
226
|
-
unicode-display_width (3.1.
|
224
|
+
unicode-display_width (3.1.5)
|
227
225
|
unicode-emoji (~> 4.0, >= 4.0.4)
|
228
226
|
unicode-emoji (4.0.4)
|
229
227
|
uri (1.0.3)
|
@@ -250,8 +248,9 @@ PLATFORMS
|
|
250
248
|
x86_64-linux-musl
|
251
249
|
|
252
250
|
DEPENDENCIES
|
253
|
-
base64 (~> 0.
|
251
|
+
base64 (~> 0.3)
|
254
252
|
cucumber (~> 10.0)
|
253
|
+
diff-lcs (= 1.6.2)
|
255
254
|
judges!
|
256
255
|
minitest (~> 5.25)
|
257
256
|
minitest-reporters (~> 1.7)
|
@@ -259,13 +258,13 @@ DEPENDENCIES
|
|
259
258
|
net-ping (~> 2.0)
|
260
259
|
online (~> 0.0)
|
261
260
|
os (~> 1.1)
|
262
|
-
qbash (~> 0.
|
261
|
+
qbash (~> 0.4)
|
263
262
|
rake (~> 13.2)
|
264
|
-
random-port (~> 0.
|
263
|
+
random-port (~> 0.7)
|
265
264
|
rubocop (~> 1.74)
|
266
|
-
rubocop-minitest (~> 0.
|
265
|
+
rubocop-minitest (~> 0.38)
|
267
266
|
rubocop-performance (~> 1.25)
|
268
|
-
rubocop-rake (~> 0.
|
267
|
+
rubocop-rake (~> 0.7)
|
269
268
|
simplecov (~> 0.22)
|
270
269
|
simplecov-cobertura (~> 3.0)
|
271
270
|
w3c_validators (~> 1.3)
|
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.15.0 --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.15.0'"
|
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.
|
12
|
+
s.version = '0.53.0'
|
13
13
|
s.license = 'MIT'
|
14
14
|
s.summary = 'Command-Line Tool for a Factbase'
|
15
15
|
s.description =
|
@@ -46,7 +46,8 @@ class Judges::Update
|
|
46
46
|
impex = Judges::Impex.new(@loog, args[1])
|
47
47
|
fb = impex.import(strict: false)
|
48
48
|
fb = Factbase::Logged.new(fb, @loog) if opts['log']
|
49
|
-
options = Judges::Options.new(opts['
|
49
|
+
options = Judges::Options.new(timeout: opts['timeout'], lifetime: opts['lifetime'])
|
50
|
+
options += Judges::Options.new(opts['option'])
|
50
51
|
if opts['options-file']
|
51
52
|
options += Judges::Options.new(
|
52
53
|
File.readlines(opts['options-file'])
|
data/lib/judges.rb
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
# SPDX-License-Identifier: MIT
|
5
5
|
|
6
6
|
require 'loog'
|
7
|
+
require 'loog/tee'
|
7
8
|
require 'nokogiri'
|
8
9
|
require 'factbase/to_xml'
|
9
10
|
require_relative '../test__helper'
|
@@ -88,6 +89,18 @@ class TestUpdate < Minitest::Test
|
|
88
89
|
end
|
89
90
|
end
|
90
91
|
|
92
|
+
def test_passes_timeout_and_lifetime_through
|
93
|
+
%w[lifetime timeout].each do |o|
|
94
|
+
Dir.mktmpdir do |d|
|
95
|
+
save_it(File.join(d, 'foo/foo.rb'), "$loog.info '#{o}=' + $options.#{o}.to_s")
|
96
|
+
file = File.join(d, 'base.fb')
|
97
|
+
log = Loog::Buffer.new
|
98
|
+
Judges::Update.new(Loog::Tee.new(log, Loog::NULL)).run({ o => 666 }, [d, file])
|
99
|
+
assert_includes(log.to_s, "#{o}=666")
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
91
104
|
def test_update_with_error_no_quiet
|
92
105
|
assert_raises(StandardError) do
|
93
106
|
Dir.mktmpdir do |d|
|
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.
|
4
|
+
version: 0.53.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yegor Bugayenko
|
@@ -358,7 +358,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
358
358
|
- !ruby/object:Gem::Version
|
359
359
|
version: '0'
|
360
360
|
requirements: []
|
361
|
-
rubygems_version: 3.6.
|
361
|
+
rubygems_version: 3.6.9
|
362
362
|
specification_version: 4
|
363
363
|
summary: Command-Line Tool for a Factbase
|
364
364
|
test_files: []
|