judges 0.30.0 → 0.31.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/.0pdd.yml +1 -1
- data/.github/workflows/actionlint.yml +1 -1
- data/.github/workflows/codecov.yml +4 -2
- data/.github/workflows/copyrights.yml +1 -1
- data/.github/workflows/markdown-lint.yml +1 -1
- data/.github/workflows/pdd.yml +2 -2
- data/.github/workflows/rake.yml +2 -2
- data/.github/workflows/xcop.yml +1 -1
- data/.github/workflows/yamllint.yml +1 -1
- data/.gitignore +1 -1
- data/.rubocop.yml +6 -1
- data/.rultor.yml +1 -1
- data/.simplecov +1 -1
- data/Gemfile +6 -5
- data/Gemfile.lock +56 -42
- data/LICENSE.txt +1 -1
- data/Rakefile +1 -1
- data/assets/index.xsl +1 -1
- data/bin/judges +3 -3
- data/features/inspect.feature +0 -1
- data/features/pull.feature +0 -1
- data/features/step_definitions/steps.rb +1 -1
- data/features/support/env.rb +1 -1
- data/fixtures/guess/guess.rb +1 -1
- data/fixtures/guess/guess_made.yml +1 -1
- data/fixtures/guess/skipped.yml +1 -1
- data/fixtures/try/tried.yml +1 -1
- data/fixtures/try/try.rb +1 -1
- data/judges.gemspec +3 -3
- data/lib/judges/categories.rb +4 -4
- data/lib/judges/churn.rb +2 -2
- data/lib/judges/commands/eval.rb +2 -2
- data/lib/judges/commands/import.rb +3 -3
- data/lib/judges/commands/inspect.rb +2 -2
- data/lib/judges/commands/join.rb +2 -2
- data/lib/judges/commands/print.rb +2 -2
- data/lib/judges/commands/pull.rb +2 -2
- data/lib/judges/commands/push.rb +2 -2
- data/lib/judges/commands/test.rb +4 -4
- data/lib/judges/commands/trim.rb +2 -2
- data/lib/judges/commands/update.rb +11 -7
- data/lib/judges/impex.rb +2 -2
- data/lib/judges/judge.rb +2 -2
- data/lib/judges/judges.rb +2 -2
- data/lib/judges/options.rb +2 -2
- data/lib/judges/to_rel.rb +2 -2
- data/lib/judges.rb +3 -3
- data/test/commands/test_eval.rb +3 -3
- data/test/commands/test_import.rb +3 -3
- data/test/commands/test_inspect.rb +3 -3
- data/test/commands/test_join.rb +5 -5
- data/test/commands/test_print.rb +8 -8
- data/test/commands/test_pull.rb +4 -4
- data/test/commands/test_push.rb +3 -3
- data/test/commands/test_test.rb +4 -4
- data/test/commands/test_trim.rb +2 -2
- data/test/commands/test_update.rb +10 -10
- data/test/test__helper.rb +1 -1
- data/test/test_bin.rb +3 -3
- data/test/test_categories.rb +7 -7
- data/test/test_churn.rb +2 -2
- data/test/test_impex.rb +2 -2
- data/test/test_judge.rb +7 -7
- data/test/test_judges.rb +3 -3
- data/test/test_options.rb +11 -11
- data/test/test_to_rel.rb +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e6c1e6bb3714ed3fef2f2c6878a76c2e1615bd3d2f98605f2f0934cac0c028e3
|
|
4
|
+
data.tar.gz: '0657900496811614deee1417336c59794256e6bc919f729fde247d6154ffc875'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8be8150d01dbeff4f84bdbd1523d51180aa87410a6adc50979cdd3628b0b4dddf1ece276dd50c488919b1d9ab85027506658dbca90412badd913aa67151bbeff
|
|
7
|
+
data.tar.gz: bc497ed3851f00862eb18f365c9e5593137edc3fdd6b254fd9c8908b3eff7772950ed478051c54b1a2ff55e27ec91d5cb373c8b764df86b1c2abdc75e1f8f9da
|
data/.0pdd.yml
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2024 Yegor Bugayenko
|
|
1
|
+
# Copyright (c) 2024-2025 Yegor Bugayenko
|
|
2
2
|
#
|
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
4
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -34,6 +34,8 @@ jobs:
|
|
|
34
34
|
bundler-cache: true
|
|
35
35
|
- run: bundle install
|
|
36
36
|
- run: bundle exec rake
|
|
37
|
-
- uses: codecov/codecov-action@
|
|
37
|
+
- uses: codecov/codecov-action@v5
|
|
38
38
|
with:
|
|
39
39
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
40
|
+
files: coverage/.resultset.json
|
|
41
|
+
fail_ci_if_error: true
|
data/.github/workflows/pdd.yml
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2024 Yegor Bugayenko
|
|
1
|
+
# Copyright (c) 2024-2025 Yegor Bugayenko
|
|
2
2
|
#
|
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
4
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
# SOFTWARE.
|
|
20
20
|
---
|
|
21
21
|
name: pdd
|
|
22
|
-
on:
|
|
22
|
+
'on':
|
|
23
23
|
push:
|
|
24
24
|
branches:
|
|
25
25
|
- master
|
data/.github/workflows/rake.yml
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2024 Yegor Bugayenko
|
|
1
|
+
# Copyright (c) 2024-2025 Yegor Bugayenko
|
|
2
2
|
#
|
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
4
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
# SOFTWARE.
|
|
20
20
|
---
|
|
21
21
|
name: rake
|
|
22
|
-
on:
|
|
22
|
+
'on':
|
|
23
23
|
push:
|
|
24
24
|
branches:
|
|
25
25
|
- master
|
data/.github/workflows/xcop.yml
CHANGED
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2024 Yegor Bugayenko
|
|
1
|
+
# Copyright (c) 2024-2025 Yegor Bugayenko
|
|
2
2
|
#
|
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
4
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -27,7 +27,12 @@ AllCops:
|
|
|
27
27
|
TargetRubyVersion: 3.2
|
|
28
28
|
SuggestExtensions: false
|
|
29
29
|
NewCops: enable
|
|
30
|
+
require:
|
|
31
|
+
- rubocop-minitest
|
|
32
|
+
- rubocop-performance
|
|
30
33
|
|
|
34
|
+
Minitest/EmptyLineBeforeAssertionMethods:
|
|
35
|
+
Enabled: false
|
|
31
36
|
Metrics/ParameterLists:
|
|
32
37
|
Enabled: false
|
|
33
38
|
Style/GlobalVars:
|
data/.rultor.yml
CHANGED
data/.simplecov
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
#
|
|
4
|
-
# Copyright (c) 2024 Yegor Bugayenko
|
|
4
|
+
# Copyright (c) 2024-2025 Yegor Bugayenko
|
|
5
5
|
#
|
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
7
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/Gemfile
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2024 Yegor Bugayenko
|
|
3
|
+
# Copyright (c) 2024-2025 Yegor Bugayenko
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -23,15 +23,16 @@
|
|
|
23
23
|
source 'https://rubygems.org'
|
|
24
24
|
gemspec
|
|
25
25
|
|
|
26
|
-
gem 'cucumber', '9.2.
|
|
26
|
+
gem 'cucumber', '9.2.1', require: false
|
|
27
27
|
gem 'minitest', '5.25.4', require: false
|
|
28
28
|
gem 'minitest-reporters', '1.7.1', require: false
|
|
29
29
|
gem 'rake', '13.2.1', require: false
|
|
30
30
|
gem 'random-port', '~>0.0', require: false
|
|
31
31
|
gem 'rspec-rails', '7.1.0', require: false
|
|
32
|
-
gem 'rubocop', '1.
|
|
33
|
-
gem 'rubocop-
|
|
34
|
-
gem 'rubocop-
|
|
32
|
+
gem 'rubocop', '1.71.0', require: false
|
|
33
|
+
gem 'rubocop-minitest', '0.36.0', require: false
|
|
34
|
+
gem 'rubocop-performance', '1.23.1', require: false
|
|
35
|
+
gem 'rubocop-rspec', '3.4.0', require: false
|
|
35
36
|
gem 'simplecov', '0.22.0', require: false
|
|
36
37
|
gem 'simplecov-cobertura', '2.1.0', require: false
|
|
37
38
|
gem 'w3c_validators', '1.3.7', require: false
|
data/Gemfile.lock
CHANGED
|
@@ -6,7 +6,7 @@ PATH
|
|
|
6
6
|
baza.rb (~> 0)
|
|
7
7
|
concurrent-ruby (~> 1.2)
|
|
8
8
|
elapsed (~> 0)
|
|
9
|
-
factbase (
|
|
9
|
+
factbase (>= 0.5.0)
|
|
10
10
|
gli (~> 2.21)
|
|
11
11
|
iri (~> 0)
|
|
12
12
|
loog (~> 0)
|
|
@@ -69,15 +69,15 @@ GEM
|
|
|
69
69
|
tago (~> 0)
|
|
70
70
|
typhoeus (~> 1.3)
|
|
71
71
|
benchmark (0.4.0)
|
|
72
|
-
bigdecimal (3.1.
|
|
72
|
+
bigdecimal (3.1.9)
|
|
73
73
|
builder (3.3.0)
|
|
74
|
-
concurrent-ruby (1.3.
|
|
75
|
-
connection_pool (2.
|
|
74
|
+
concurrent-ruby (1.3.5)
|
|
75
|
+
connection_pool (2.5.0)
|
|
76
76
|
crack (1.0.0)
|
|
77
77
|
bigdecimal
|
|
78
78
|
rexml
|
|
79
79
|
crass (1.0.6)
|
|
80
|
-
cucumber (9.2.
|
|
80
|
+
cucumber (9.2.1)
|
|
81
81
|
builder (~> 3.2)
|
|
82
82
|
cucumber-ci-environment (> 9, < 11)
|
|
83
83
|
cucumber-core (> 13, < 14)
|
|
@@ -98,7 +98,7 @@ GEM
|
|
|
98
98
|
bigdecimal
|
|
99
99
|
cucumber-gherkin (27.0.0)
|
|
100
100
|
cucumber-messages (>= 19.1.4, < 23)
|
|
101
|
-
cucumber-html-formatter (21.
|
|
101
|
+
cucumber-html-formatter (21.8.0)
|
|
102
102
|
cucumber-messages (> 19, < 27)
|
|
103
103
|
cucumber-messages (22.0.0)
|
|
104
104
|
cucumber-tag-expressions (6.1.1)
|
|
@@ -113,7 +113,7 @@ GEM
|
|
|
113
113
|
erubi (1.13.1)
|
|
114
114
|
ethon (0.16.0)
|
|
115
115
|
ffi (>= 1.15.0)
|
|
116
|
-
factbase (0.
|
|
116
|
+
factbase (0.5.0)
|
|
117
117
|
backtrace (> 0)
|
|
118
118
|
decoor (> 0)
|
|
119
119
|
json (~> 2.7)
|
|
@@ -134,30 +134,33 @@ GEM
|
|
|
134
134
|
net-http (>= 0.5.0)
|
|
135
135
|
faraday-retry (2.2.1)
|
|
136
136
|
faraday (~> 2.0)
|
|
137
|
-
ffi (1.17.
|
|
138
|
-
ffi (1.17.
|
|
139
|
-
ffi (1.17.
|
|
140
|
-
ffi (1.17.
|
|
141
|
-
ffi (1.17.
|
|
142
|
-
ffi (1.17.
|
|
143
|
-
ffi (1.17.
|
|
144
|
-
gli (2.22.
|
|
137
|
+
ffi (1.17.1-aarch64-linux-gnu)
|
|
138
|
+
ffi (1.17.1-arm-linux-gnu)
|
|
139
|
+
ffi (1.17.1-arm64-darwin)
|
|
140
|
+
ffi (1.17.1-x64-mingw-ucrt)
|
|
141
|
+
ffi (1.17.1-x86-linux-gnu)
|
|
142
|
+
ffi (1.17.1-x86_64-darwin)
|
|
143
|
+
ffi (1.17.1-x86_64-linux-gnu)
|
|
144
|
+
gli (2.22.2)
|
|
145
|
+
ostruct
|
|
145
146
|
hashdiff (1.1.2)
|
|
146
|
-
i18n (1.14.
|
|
147
|
+
i18n (1.14.7)
|
|
147
148
|
concurrent-ruby (~> 1.0)
|
|
148
149
|
io-console (0.8.0)
|
|
149
|
-
irb (1.
|
|
150
|
+
irb (1.15.1)
|
|
151
|
+
pp (>= 0.6.0)
|
|
150
152
|
rdoc (>= 4.0.0)
|
|
151
153
|
reline (>= 0.4.2)
|
|
152
154
|
iri (0.8.0)
|
|
153
155
|
json (2.9.1)
|
|
154
|
-
language_server-protocol (3.17.0.
|
|
155
|
-
logger (1.6.
|
|
156
|
-
loofah (2.
|
|
156
|
+
language_server-protocol (3.17.0.4)
|
|
157
|
+
logger (1.6.5)
|
|
158
|
+
loofah (2.24.0)
|
|
157
159
|
crass (~> 1.0.2)
|
|
158
160
|
nokogiri (>= 1.12.0)
|
|
159
161
|
loog (0.6.0)
|
|
160
162
|
mini_mime (1.1.5)
|
|
163
|
+
mini_portile2 (2.8.8)
|
|
161
164
|
minitest (5.25.4)
|
|
162
165
|
minitest-reporters (1.7.1)
|
|
163
166
|
ansi
|
|
@@ -169,32 +172,38 @@ GEM
|
|
|
169
172
|
multipart-post (2.4.1)
|
|
170
173
|
net-http (0.6.0)
|
|
171
174
|
uri
|
|
172
|
-
nokogiri (1.
|
|
175
|
+
nokogiri (1.18.2)
|
|
176
|
+
mini_portile2 (~> 2.8.2)
|
|
173
177
|
racc (~> 1.4)
|
|
174
|
-
nokogiri (1.
|
|
178
|
+
nokogiri (1.18.2-aarch64-linux-gnu)
|
|
175
179
|
racc (~> 1.4)
|
|
176
|
-
nokogiri (1.
|
|
180
|
+
nokogiri (1.18.2-arm-linux-gnu)
|
|
177
181
|
racc (~> 1.4)
|
|
178
|
-
nokogiri (1.
|
|
182
|
+
nokogiri (1.18.2-arm64-darwin)
|
|
179
183
|
racc (~> 1.4)
|
|
180
|
-
nokogiri (1.
|
|
184
|
+
nokogiri (1.18.2-x64-mingw-ucrt)
|
|
181
185
|
racc (~> 1.4)
|
|
182
|
-
nokogiri (1.
|
|
186
|
+
nokogiri (1.18.2-x86_64-darwin)
|
|
183
187
|
racc (~> 1.4)
|
|
184
|
-
nokogiri (1.
|
|
188
|
+
nokogiri (1.18.2-x86_64-linux-gnu)
|
|
185
189
|
racc (~> 1.4)
|
|
190
|
+
ostruct (0.6.1)
|
|
186
191
|
others (0.0.3)
|
|
187
192
|
parallel (1.26.3)
|
|
188
|
-
parser (3.3.
|
|
193
|
+
parser (3.3.7.0)
|
|
189
194
|
ast (~> 2.4.1)
|
|
190
195
|
racc
|
|
191
|
-
|
|
196
|
+
pp (0.6.2)
|
|
197
|
+
prettyprint
|
|
198
|
+
prettyprint (0.2.0)
|
|
199
|
+
psych (5.2.3)
|
|
192
200
|
date
|
|
193
201
|
stringio
|
|
194
202
|
public_suffix (6.0.1)
|
|
195
203
|
racc (1.8.1)
|
|
196
204
|
rack (3.1.8)
|
|
197
|
-
rack-session (2.
|
|
205
|
+
rack-session (2.1.0)
|
|
206
|
+
base64 (>= 0.1.0)
|
|
198
207
|
rack (>= 3.0.0)
|
|
199
208
|
rack-test (2.2.0)
|
|
200
209
|
rack (>= 1.3)
|
|
@@ -217,10 +226,11 @@ GEM
|
|
|
217
226
|
zeitwerk (~> 2.6)
|
|
218
227
|
rainbow (3.1.1)
|
|
219
228
|
rake (13.2.1)
|
|
220
|
-
random-port (0.7.
|
|
221
|
-
|
|
229
|
+
random-port (0.7.5)
|
|
230
|
+
tago (> 0)
|
|
231
|
+
rdoc (6.11.0)
|
|
222
232
|
psych (>= 4.0.0)
|
|
223
|
-
regexp_parser (2.
|
|
233
|
+
regexp_parser (2.10.0)
|
|
224
234
|
reline (0.6.0)
|
|
225
235
|
io-console (~> 0.5)
|
|
226
236
|
retries (0.0.5)
|
|
@@ -242,7 +252,7 @@ GEM
|
|
|
242
252
|
rspec-mocks (~> 3.13)
|
|
243
253
|
rspec-support (~> 3.13)
|
|
244
254
|
rspec-support (3.13.2)
|
|
245
|
-
rubocop (1.
|
|
255
|
+
rubocop (1.71.0)
|
|
246
256
|
json (~> 2.3)
|
|
247
257
|
language_server-protocol (>= 3.17.0)
|
|
248
258
|
parallel (~> 1.10)
|
|
@@ -252,12 +262,15 @@ GEM
|
|
|
252
262
|
rubocop-ast (>= 1.36.2, < 2.0)
|
|
253
263
|
ruby-progressbar (~> 1.7)
|
|
254
264
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
255
|
-
rubocop-ast (1.
|
|
265
|
+
rubocop-ast (1.38.0)
|
|
256
266
|
parser (>= 3.3.1.0)
|
|
257
|
-
rubocop-
|
|
267
|
+
rubocop-minitest (0.36.0)
|
|
268
|
+
rubocop (>= 1.61, < 2.0)
|
|
269
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
|
270
|
+
rubocop-performance (1.23.1)
|
|
258
271
|
rubocop (>= 1.48.1, < 2.0)
|
|
259
272
|
rubocop-ast (>= 1.31.1, < 2.0)
|
|
260
|
-
rubocop-rspec (3.
|
|
273
|
+
rubocop-rspec (3.4.0)
|
|
261
274
|
rubocop (~> 1.61)
|
|
262
275
|
ruby-progressbar (1.13.0)
|
|
263
276
|
securerandom (0.4.1)
|
|
@@ -280,7 +293,7 @@ GEM
|
|
|
280
293
|
ethon (>= 0.9.0)
|
|
281
294
|
tzinfo (2.0.6)
|
|
282
295
|
concurrent-ruby (~> 1.0)
|
|
283
|
-
unicode-display_width (3.1.
|
|
296
|
+
unicode-display_width (3.1.4)
|
|
284
297
|
unicode-emoji (~> 4.0, >= 4.0.4)
|
|
285
298
|
unicode-emoji (4.0.4)
|
|
286
299
|
uri (1.0.2)
|
|
@@ -307,16 +320,17 @@ PLATFORMS
|
|
|
307
320
|
x86_64-linux
|
|
308
321
|
|
|
309
322
|
DEPENDENCIES
|
|
310
|
-
cucumber (= 9.2.
|
|
323
|
+
cucumber (= 9.2.1)
|
|
311
324
|
judges!
|
|
312
325
|
minitest (= 5.25.4)
|
|
313
326
|
minitest-reporters (= 1.7.1)
|
|
314
327
|
rake (= 13.2.1)
|
|
315
328
|
random-port (~> 0.0)
|
|
316
329
|
rspec-rails (= 7.1.0)
|
|
317
|
-
rubocop (= 1.
|
|
318
|
-
rubocop-
|
|
319
|
-
rubocop-
|
|
330
|
+
rubocop (= 1.71.0)
|
|
331
|
+
rubocop-minitest (= 0.36.0)
|
|
332
|
+
rubocop-performance (= 1.23.1)
|
|
333
|
+
rubocop-rspec (= 3.4.0)
|
|
320
334
|
simplecov (= 0.22.0)
|
|
321
335
|
simplecov-cobertura (= 2.1.0)
|
|
322
336
|
w3c_validators (= 1.3.7)
|
data/LICENSE.txt
CHANGED
data/Rakefile
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2024 Yegor Bugayenko
|
|
3
|
+
# Copyright (c) 2024-2025 Yegor Bugayenko
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/assets/index.xsl
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<!--
|
|
3
3
|
(The MIT License)
|
|
4
4
|
|
|
5
|
-
Copyright (c) 2024 Yegor Bugayenko
|
|
5
|
+
Copyright (c) 2024-2025 Yegor Bugayenko
|
|
6
6
|
|
|
7
7
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
8
|
of this software and associated documentation files (the 'Software'), to deal
|
data/bin/judges
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2024 Yegor Bugayenko
|
|
3
|
+
# Copyright (c) 2024-2025 Yegor Bugayenko
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -26,6 +26,7 @@ require 'gli'
|
|
|
26
26
|
require 'loog'
|
|
27
27
|
require 'time'
|
|
28
28
|
require 'factbase'
|
|
29
|
+
require_relative '../lib/judges'
|
|
29
30
|
|
|
30
31
|
Encoding.default_external = Encoding::UTF_8
|
|
31
32
|
Encoding.default_internal = Encoding::UTF_8
|
|
@@ -42,9 +43,8 @@ class JudgesGLI extend GLI::App
|
|
|
42
43
|
|
|
43
44
|
@@loog = Loog::REGULAR
|
|
44
45
|
|
|
45
|
-
program_desc(
|
|
46
|
+
program_desc("Automated executor of judges for a factbase (#{Judges::VERSION})")
|
|
46
47
|
|
|
47
|
-
require_relative '../lib/judges'
|
|
48
48
|
version(Judges::VERSION)
|
|
49
49
|
|
|
50
50
|
synopsis_format(:full)
|
data/features/inspect.feature
CHANGED
data/features/pull.feature
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2024 Yegor Bugayenko
|
|
3
|
+
# Copyright (c) 2024-2025 Yegor Bugayenko
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/features/support/env.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2024 Yegor Bugayenko
|
|
3
|
+
# Copyright (c) 2024-2025 Yegor Bugayenko
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/fixtures/guess/guess.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2024 Yegor Bugayenko
|
|
3
|
+
# Copyright (c) 2024-2025 Yegor Bugayenko
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/fixtures/guess/skipped.yml
CHANGED
data/fixtures/try/tried.yml
CHANGED
data/fixtures/try/try.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2024 Yegor Bugayenko
|
|
3
|
+
# Copyright (c) 2024-2025 Yegor Bugayenko
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
data/judges.gemspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2024 Yegor Bugayenko
|
|
3
|
+
# Copyright (c) 2024-2025 Yegor Bugayenko
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
|
|
|
26
26
|
s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
|
|
27
27
|
s.required_ruby_version = '>=3.2'
|
|
28
28
|
s.name = 'judges'
|
|
29
|
-
s.version = '0.
|
|
29
|
+
s.version = '0.31.1'
|
|
30
30
|
s.license = 'MIT'
|
|
31
31
|
s.summary = 'Command-Line Tool for a Factbase'
|
|
32
32
|
s.description =
|
|
@@ -46,7 +46,7 @@ Gem::Specification.new do |s|
|
|
|
46
46
|
s.add_dependency 'baza.rb', '~>0'
|
|
47
47
|
s.add_dependency 'concurrent-ruby', '~>1.2'
|
|
48
48
|
s.add_dependency 'elapsed', '~>0'
|
|
49
|
-
s.add_dependency 'factbase', '
|
|
49
|
+
s.add_dependency 'factbase', '>=0.5.0'
|
|
50
50
|
s.add_dependency 'gli', '~>2.21'
|
|
51
51
|
s.add_dependency 'iri', '~>0'
|
|
52
52
|
s.add_dependency 'loog', '~>0'
|
data/lib/judges/categories.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2024 Yegor Bugayenko
|
|
3
|
+
# Copyright (c) 2024-2025 Yegor Bugayenko
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -24,7 +24,7 @@ require_relative '../judges'
|
|
|
24
24
|
|
|
25
25
|
# Categories of tests.
|
|
26
26
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
|
27
|
-
# Copyright:: Copyright (c) 2024 Yegor Bugayenko
|
|
27
|
+
# Copyright:: Copyright (c) 2024-2025 Yegor Bugayenko
|
|
28
28
|
# License:: MIT
|
|
29
29
|
class Judges::Categories
|
|
30
30
|
# Ctor.
|
|
@@ -42,8 +42,8 @@ class Judges::Categories
|
|
|
42
42
|
cats = [] if cats.nil?
|
|
43
43
|
cats = [cats] unless cats.is_a?(Array)
|
|
44
44
|
cats.each do |c|
|
|
45
|
-
return false if @disable.any?
|
|
46
|
-
return true if @enable.any?
|
|
45
|
+
return false if @disable.any?(c)
|
|
46
|
+
return true if @enable.any?(c)
|
|
47
47
|
end
|
|
48
48
|
return true if @enable.empty?
|
|
49
49
|
false
|
data/lib/judges/churn.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2024 Yegor Bugayenko
|
|
3
|
+
# Copyright (c) 2024-2025 Yegor Bugayenko
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -24,7 +24,7 @@ require_relative '../judges'
|
|
|
24
24
|
|
|
25
25
|
# How many facts were modified.
|
|
26
26
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
|
27
|
-
# Copyright:: Copyright (c) 2024 Yegor Bugayenko
|
|
27
|
+
# Copyright:: Copyright (c) 2024-2025 Yegor Bugayenko
|
|
28
28
|
# License:: MIT
|
|
29
29
|
class Judges::Churn
|
|
30
30
|
attr_reader :added, :removed, :errors
|
data/lib/judges/commands/eval.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2024 Yegor Bugayenko
|
|
3
|
+
# Copyright (c) 2024-2025 Yegor Bugayenko
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -31,7 +31,7 @@ require_relative '../../judges/impex'
|
|
|
31
31
|
# are not supposed to instantiate it yourself.
|
|
32
32
|
#
|
|
33
33
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
|
34
|
-
# Copyright:: Copyright (c) 2024 Yegor Bugayenko
|
|
34
|
+
# Copyright:: Copyright (c) 2024-2025 Yegor Bugayenko
|
|
35
35
|
# License:: MIT
|
|
36
36
|
class Judges::Eval
|
|
37
37
|
def initialize(loog)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2024 Yegor Bugayenko
|
|
3
|
+
# Copyright (c) 2024-2025 Yegor Bugayenko
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -33,7 +33,7 @@ require_relative '../../judges/to_rel'
|
|
|
33
33
|
# are not supposed to instantiate it yourself.
|
|
34
34
|
#
|
|
35
35
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
|
36
|
-
# Copyright:: Copyright (c) 2024 Yegor Bugayenko
|
|
36
|
+
# Copyright:: Copyright (c) 2024-2025 Yegor Bugayenko
|
|
37
37
|
# License:: MIT
|
|
38
38
|
class Judges::Import
|
|
39
39
|
def initialize(loog)
|
|
@@ -52,7 +52,7 @@ class Judges::Import
|
|
|
52
52
|
yaml.each do |i|
|
|
53
53
|
f = fb.insert
|
|
54
54
|
i.each do |p, v|
|
|
55
|
-
f.send("#{p}=", v)
|
|
55
|
+
f.send(:"#{p}=", v)
|
|
56
56
|
end
|
|
57
57
|
end
|
|
58
58
|
impex.export(fb)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright (c) 2024 Yegor Bugayenko
|
|
3
|
+
# Copyright (c) 2024-2025 Yegor Bugayenko
|
|
4
4
|
#
|
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
# of this software and associated documentation files (the 'Software'), to deal
|
|
@@ -29,7 +29,7 @@ require_relative '../../judges/impex'
|
|
|
29
29
|
# are not supposed to instantiate it yourself.
|
|
30
30
|
#
|
|
31
31
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
|
32
|
-
# Copyright:: Copyright (c) 2024 Yegor Bugayenko
|
|
32
|
+
# Copyright:: Copyright (c) 2024-2025 Yegor Bugayenko
|
|
33
33
|
# License:: MIT
|
|
34
34
|
class Judges::Inspect
|
|
35
35
|
def initialize(loog)
|