judges 0.54.0 → 0.55.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/Gemfile.lock +24 -24
- data/bin/judges +2 -0
- data/features/test.feature +2 -2
- data/judges.gemspec +1 -1
- data/lib/judges/commands/print.rb +4 -3
- data/lib/judges.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eb2df3f4875124734e1fc6698c45a9bae82e187a73ae6632bc31906ec8039452
|
|
4
|
+
data.tar.gz: 14639995b236e8f4ce02fb794b4050b9fc578a1816e09510312f78c3811a09da
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f0b6906cfe65ed01d7d7d3af2677ba45fb6dc875060bcad82d055c18ceccc69973d510a7448748caf1f1bc01680d68fabbe9a223294b0707ddf721a2e1b66d3e
|
|
7
|
+
data.tar.gz: 7d92dfe3ea479bfef86366efe451ed415bb8a54d6c8fe9cddb99348408975282dee4e061b7b89c988221177eefecc3b8a228fb3bb08710a2d34c8004403f6a78
|
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.11.0)
|
|
32
32
|
backtrace (~> 0.4)
|
|
33
33
|
elapsed (~> 0.2)
|
|
34
34
|
faraday (~> 2.13)
|
|
@@ -40,13 +40,13 @@ GEM
|
|
|
40
40
|
retries (~> 0.0)
|
|
41
41
|
tago (~> 0.2)
|
|
42
42
|
typhoeus (~> 1.4)
|
|
43
|
-
bigdecimal (3.
|
|
43
|
+
bigdecimal (3.3.1)
|
|
44
44
|
builder (3.3.0)
|
|
45
45
|
concurrent-ruby (1.3.5)
|
|
46
|
-
crack (1.0.
|
|
46
|
+
crack (1.0.1)
|
|
47
47
|
bigdecimal
|
|
48
48
|
rexml
|
|
49
|
-
cucumber (10.1.
|
|
49
|
+
cucumber (10.1.1)
|
|
50
50
|
base64 (~> 0.2)
|
|
51
51
|
builder (~> 3.2)
|
|
52
52
|
cucumber-ci-environment (> 9, < 11)
|
|
@@ -59,18 +59,18 @@ 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, <
|
|
62
|
+
cucumber-core (15.3.0)
|
|
63
|
+
cucumber-gherkin (> 27, < 35)
|
|
64
64
|
cucumber-messages (> 26, < 30)
|
|
65
|
-
cucumber-tag-expressions (> 5, <
|
|
65
|
+
cucumber-tag-expressions (> 5, < 9)
|
|
66
66
|
cucumber-cucumber-expressions (18.0.1)
|
|
67
67
|
bigdecimal
|
|
68
|
-
cucumber-gherkin (
|
|
69
|
-
cucumber-messages (> 25, <
|
|
68
|
+
cucumber-gherkin (34.0.0)
|
|
69
|
+
cucumber-messages (> 25, < 29)
|
|
70
70
|
cucumber-html-formatter (21.15.1)
|
|
71
71
|
cucumber-messages (> 19, < 28)
|
|
72
72
|
cucumber-messages (27.2.0)
|
|
73
|
-
cucumber-tag-expressions (
|
|
73
|
+
cucumber-tag-expressions (8.0.0)
|
|
74
74
|
decoor (0.1.0)
|
|
75
75
|
diff-lcs (1.6.2)
|
|
76
76
|
docile (1.4.1)
|
|
@@ -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.16.
|
|
83
|
+
factbase (0.16.8)
|
|
84
84
|
backtrace (~> 0.4)
|
|
85
85
|
decoor (~> 0.1)
|
|
86
86
|
ellipsized (~> 0.3)
|
|
@@ -91,7 +91,7 @@ GEM
|
|
|
91
91
|
others (~> 0.1)
|
|
92
92
|
tago (~> 0.1)
|
|
93
93
|
yaml (~> 0.3)
|
|
94
|
-
faraday (2.
|
|
94
|
+
faraday (2.14.0)
|
|
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.1)
|
|
118
118
|
iri (0.11.2)
|
|
119
|
-
json (2.
|
|
119
|
+
json (2.15.1)
|
|
120
120
|
language_server-protocol (3.17.0.5)
|
|
121
121
|
lint_roller (1.1.0)
|
|
122
122
|
logger (1.7.0)
|
|
@@ -124,7 +124,7 @@ GEM
|
|
|
124
124
|
logger (~> 1.0)
|
|
125
125
|
memoist3 (1.0.0)
|
|
126
126
|
mini_mime (1.1.5)
|
|
127
|
-
minitest (5.
|
|
127
|
+
minitest (5.26.0)
|
|
128
128
|
minitest-reporters (1.7.1)
|
|
129
129
|
ansi
|
|
130
130
|
builder
|
|
@@ -164,7 +164,7 @@ GEM
|
|
|
164
164
|
parser (3.3.9.0)
|
|
165
165
|
ast (~> 2.4.1)
|
|
166
166
|
racc
|
|
167
|
-
prism (1.
|
|
167
|
+
prism (1.6.0)
|
|
168
168
|
public_suffix (6.0.2)
|
|
169
169
|
qbash (0.4.5)
|
|
170
170
|
backtrace (> 0)
|
|
@@ -174,12 +174,12 @@ GEM
|
|
|
174
174
|
racc (1.8.1)
|
|
175
175
|
rainbow (3.1.1)
|
|
176
176
|
rake (13.3.0)
|
|
177
|
-
random-port (0.7.
|
|
178
|
-
tago (
|
|
177
|
+
random-port (0.7.6)
|
|
178
|
+
tago (~> 0.0)
|
|
179
179
|
regexp_parser (2.11.3)
|
|
180
180
|
retries (0.0.5)
|
|
181
181
|
rexml (3.4.4)
|
|
182
|
-
rubocop (1.
|
|
182
|
+
rubocop (1.81.6)
|
|
183
183
|
json (~> 2.3)
|
|
184
184
|
language_server-protocol (~> 3.17.0.2)
|
|
185
185
|
lint_roller (~> 1.1.0)
|
|
@@ -187,20 +187,20 @@ GEM
|
|
|
187
187
|
parser (>= 3.3.0.2)
|
|
188
188
|
rainbow (>= 2.2.2, < 4.0)
|
|
189
189
|
regexp_parser (>= 2.9.3, < 3.0)
|
|
190
|
-
rubocop-ast (>= 1.
|
|
190
|
+
rubocop-ast (>= 1.47.1, < 2.0)
|
|
191
191
|
ruby-progressbar (~> 1.7)
|
|
192
192
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
193
|
-
rubocop-ast (1.
|
|
193
|
+
rubocop-ast (1.47.1)
|
|
194
194
|
parser (>= 3.3.7.2)
|
|
195
195
|
prism (~> 1.4)
|
|
196
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.26.
|
|
200
|
+
rubocop-performance (1.26.1)
|
|
201
201
|
lint_roller (~> 1.1)
|
|
202
202
|
rubocop (>= 1.75.0, < 2.0)
|
|
203
|
-
rubocop-ast (>= 1.
|
|
203
|
+
rubocop-ast (>= 1.47.1, < 2.0)
|
|
204
204
|
rubocop-rake (0.7.1)
|
|
205
205
|
lint_roller (~> 1.1)
|
|
206
206
|
rubocop (>= 1.72.1)
|
|
@@ -217,7 +217,7 @@ GEM
|
|
|
217
217
|
sys-uname (1.4.1)
|
|
218
218
|
ffi (~> 1.1)
|
|
219
219
|
memoist3 (~> 1.0.0)
|
|
220
|
-
tago (0.
|
|
220
|
+
tago (0.3.0)
|
|
221
221
|
timeout (0.4.3)
|
|
222
222
|
total (0.4.1)
|
|
223
223
|
typhoeus (1.4.1)
|
|
@@ -225,7 +225,7 @@ GEM
|
|
|
225
225
|
unicode-display_width (3.2.0)
|
|
226
226
|
unicode-emoji (~> 4.1)
|
|
227
227
|
unicode-emoji (4.1.0)
|
|
228
|
-
uri (1.0.
|
|
228
|
+
uri (1.0.4)
|
|
229
229
|
w3c_validators (1.3.7)
|
|
230
230
|
json (>= 1.8)
|
|
231
231
|
nokogiri (~> 1.6)
|
data/bin/judges
CHANGED
|
@@ -55,6 +55,8 @@ class JudgesGLI extend GLI::App
|
|
|
55
55
|
flag([:factbase], type: String)
|
|
56
56
|
desc 'Echo the entire command line'
|
|
57
57
|
switch([:echo])
|
|
58
|
+
desc 'Stay strictly offline, never attempt to reach Internet resources'
|
|
59
|
+
switch([:offline])
|
|
58
60
|
|
|
59
61
|
pre do |global, command, options, args|
|
|
60
62
|
if global[:verbose]
|
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.16.
|
|
19
|
+
When I run bin/judges with "--factbase 0.16.8 --verbose test --judge guess ./fixtures"
|
|
20
20
|
Then Exit code is zero
|
|
21
|
-
And Stdout contains "Factbase version to be used: '0.16.
|
|
21
|
+
And Stdout contains "Factbase version to be used: '0.16.8'"
|
|
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.55.0'
|
|
13
13
|
s.license = 'MIT'
|
|
14
14
|
s.summary = 'Command-Line Tool for a Factbase'
|
|
15
15
|
s.description =
|
|
@@ -89,13 +89,14 @@ class Judges::Print
|
|
|
89
89
|
'columns' => opts['columns'] || 'when,what,who',
|
|
90
90
|
'hidden' => opts['hidden'] || '_id,_version,_time,_job',
|
|
91
91
|
'version' => Judges::VERSION,
|
|
92
|
-
'css_hash' => sha384('index.css'),
|
|
93
|
-
'js_hash' => sha384('index.js')
|
|
92
|
+
'css_hash' => sha384(opts, 'index.css'),
|
|
93
|
+
'js_hash' => sha384(opts, 'index.js')
|
|
94
94
|
)
|
|
95
95
|
)
|
|
96
96
|
end
|
|
97
97
|
|
|
98
|
-
def sha384(asset)
|
|
98
|
+
def sha384(opts, asset)
|
|
99
|
+
return 'sha256-offline' if opts['offline']
|
|
99
100
|
with_retries do
|
|
100
101
|
url = "https://yegor256.github.io/judges/assets/#{asset}"
|
|
101
102
|
http = Typhoeus::Request.get(url)
|
data/lib/judges.rb
CHANGED