judges 0.50.7 → 0.51.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/bin/judges +13 -6
- data/features/misc.feature +1 -1
- data/features/update.feature +1 -1
- data/judges.gemspec +1 -1
- 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: 963e56531b7e1393ef707834c9c9011aa5997cfa924882e4a2cfbd73342daa22
|
4
|
+
data.tar.gz: ff3cab07d9eb18922667a2c85b73a01a7bda82c7e074644c8d1d847571ffa97d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 920d5e5b32fd85cf560c26ad7cbc2fe37e3ce70f863c9b21be3e6b4d9861e3830cff445c51dafe8ecda5154acfa47543b6870bfe34a6af15298414663ff19b55
|
7
|
+
data.tar.gz: 4216b3620feb1446862f6ab3c37275950b899dc85b30ff56a7868a648e46a30ea510d3e8bcdf8524d8dd1c9e48677dab19f9c771e1cfbced62563a8cfe7bac9c
|
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/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.0'
|
13
13
|
s.license = 'MIT'
|
14
14
|
s.summary = 'Command-Line Tool for a Factbase'
|
15
15
|
s.description =
|
data/lib/judges.rb
CHANGED