judges 0.50.7 → 0.51.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/Gemfile.lock +5 -5
- data/bin/judges +13 -6
- data/features/misc.feature +1 -1
- data/features/test.feature +2 -2
- data/features/update.feature +1 -1
- data/judges.gemspec +1 -1
- data/lib/judges.rb +1 -1
- data/package-lock.json +464 -464
- data/test/commands/test_print.rb +6 -2
- 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: a0fd8b597a63a8c76873c87ae22e65aca5eb5d04c14b7420dbe0eb43401f59f1
|
4
|
+
data.tar.gz: e55ff62e788bd8b7f9552b022be470ff43f9bbdf9ad0b78963e3a85da34e6a13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '015486b8adde507322fa3541e78ff86993f94e97033938e097b5d87d7fd2213d3999f73d0d58f44db5134114598202cd85ad0b1384c7298bc87f863380795066'
|
7
|
+
data.tar.gz: 5f124df051302b4a022e2f7e42be78b75053ca23f0d21592201936a700f6fec342347de17d6745155e235892432c5f3c4a291ad41f16e804519234c050f835c2
|
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.9.
|
31
|
+
baza.rb (0.9.11)
|
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 (30.0.4)
|
69
69
|
cucumber-messages (> 25, < 28)
|
70
|
-
cucumber-html-formatter (21.
|
70
|
+
cucumber-html-formatter (21.13.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.13.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.2)
|
95
95
|
faraday-net_http (>= 2.0, < 3.5)
|
96
96
|
json
|
97
97
|
logger
|
@@ -179,7 +179,7 @@ GEM
|
|
179
179
|
regexp_parser (2.10.0)
|
180
180
|
retries (0.0.5)
|
181
181
|
rexml (3.4.1)
|
182
|
-
rubocop (1.
|
182
|
+
rubocop (1.78.0)
|
183
183
|
json (~> 2.3)
|
184
184
|
language_server-protocol (~> 3.17.0.2)
|
185
185
|
lint_roller (~> 1.1.0)
|
data/bin/judges
CHANGED
@@ -49,6 +49,8 @@ class JudgesGLI extend GLI::App
|
|
49
49
|
|
50
50
|
desc 'Enable verbose mode with maximum logging'
|
51
51
|
switch([:v, :verbose])
|
52
|
+
desc 'Print diagnostic information about the environment, at the start'
|
53
|
+
switch([:hello])
|
52
54
|
desc 'Specify Factbase version to use'
|
53
55
|
flag([:factbase], type: String)
|
54
56
|
desc 'Echo the entire command line'
|
@@ -68,12 +70,17 @@ class JudgesGLI extend GLI::App
|
|
68
70
|
gem 'factbase', ver
|
69
71
|
end
|
70
72
|
require 'factbase'
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
73
|
+
if global[:hello]
|
74
|
+
[
|
75
|
+
"Judges #{Judges::VERSION}",
|
76
|
+
"Factbase #{Factbase::VERSION}",
|
77
|
+
"Baza-rb #{BazaRb::VERSION}",
|
78
|
+
"Ruby: #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}",
|
79
|
+
"Current directory: #{Dir.getwd}",
|
80
|
+
"Time: #{Time.now.utc.iso8601}",
|
81
|
+
"Total memory: #{Total::Mem.new.bytes / (1024 * 1024)}Mb"
|
82
|
+
].each { |m| @@loog.info(m) }
|
83
|
+
end
|
77
84
|
true
|
78
85
|
end
|
79
86
|
|
data/features/misc.feature
CHANGED
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.13.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.13.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/features/update.feature
CHANGED
@@ -11,7 +11,7 @@ Feature: Update
|
|
11
11
|
n = $fb.insert
|
12
12
|
n.kind = 'yes!'
|
13
13
|
"""
|
14
|
-
Then I run bin/judges with "--verbose update --quiet -o foo=1 -o bar=2 --max-cycles 3 . simple.fb"
|
14
|
+
Then I run bin/judges with "--verbose --hello update --quiet -o foo=1 -o bar=2 --max-cycles 3 . simple.fb"
|
15
15
|
Then Stdout contains "FOO → "
|
16
16
|
Then Stdout contains "BAR → "
|
17
17
|
Then Stdout contains "1 judge(s) processed"
|
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.51.1'
|
13
13
|
s.license = 'MIT'
|
14
14
|
s.summary = 'Command-Line Tool for a Factbase'
|
15
15
|
s.description =
|
data/lib/judges.rb
CHANGED