judges 0.52.2 → 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 +11 -10
- 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.10.
|
31
|
+
baza.rb (0.10.1)
|
32
32
|
backtrace (~> 0.4)
|
33
33
|
elapsed (~> 0.0)
|
34
34
|
faraday (~> 2.13)
|
@@ -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.14.0)
|
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.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)
|
@@ -176,7 +176,7 @@ GEM
|
|
176
176
|
rake (13.3.0)
|
177
177
|
random-port (0.7.5)
|
178
178
|
tago (> 0)
|
179
|
-
regexp_parser (2.11.
|
179
|
+
regexp_parser (2.11.2)
|
180
180
|
retries (0.0.5)
|
181
181
|
rexml (3.4.1)
|
182
182
|
rubocop (1.79.2)
|
@@ -221,7 +221,7 @@ GEM
|
|
221
221
|
total (0.4.1)
|
222
222
|
typhoeus (1.4.1)
|
223
223
|
ethon (>= 0.9.0)
|
224
|
-
unicode-display_width (3.1.
|
224
|
+
unicode-display_width (3.1.5)
|
225
225
|
unicode-emoji (~> 4.0, >= 4.0.4)
|
226
226
|
unicode-emoji (4.0.4)
|
227
227
|
uri (1.0.3)
|
@@ -248,8 +248,9 @@ PLATFORMS
|
|
248
248
|
x86_64-linux-musl
|
249
249
|
|
250
250
|
DEPENDENCIES
|
251
|
-
base64 (~> 0.
|
251
|
+
base64 (~> 0.3)
|
252
252
|
cucumber (~> 10.0)
|
253
|
+
diff-lcs (= 1.6.2)
|
253
254
|
judges!
|
254
255
|
minitest (~> 5.25)
|
255
256
|
minitest-reporters (~> 1.7)
|
@@ -257,13 +258,13 @@ DEPENDENCIES
|
|
257
258
|
net-ping (~> 2.0)
|
258
259
|
online (~> 0.0)
|
259
260
|
os (~> 1.1)
|
260
|
-
qbash (~> 0.
|
261
|
+
qbash (~> 0.4)
|
261
262
|
rake (~> 13.2)
|
262
|
-
random-port (~> 0.
|
263
|
+
random-port (~> 0.7)
|
263
264
|
rubocop (~> 1.74)
|
264
|
-
rubocop-minitest (~> 0.
|
265
|
+
rubocop-minitest (~> 0.38)
|
265
266
|
rubocop-performance (~> 1.25)
|
266
|
-
rubocop-rake (~> 0.
|
267
|
+
rubocop-rake (~> 0.7)
|
267
268
|
simplecov (~> 0.22)
|
268
269
|
simplecov-cobertura (~> 3.0)
|
269
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: []
|