judges 0.50.6 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f7d38a936eb623852f05ef4710fab7237cba034af4b50ec90fe65deb644d5870
4
- data.tar.gz: 254bc70deb49a3d39aa8b26c58af3f26c665e68e632f19305e794fbc10158d58
3
+ metadata.gz: 963e56531b7e1393ef707834c9c9011aa5997cfa924882e4a2cfbd73342daa22
4
+ data.tar.gz: ff3cab07d9eb18922667a2c85b73a01a7bda82c7e074644c8d1d847571ffa97d
5
5
  SHA512:
6
- metadata.gz: 68b98c1db32b72439c0c7e96de84597fcf22dc1ed717c82b63e31899686bc972280826f744ced102af90604f139c1c3ff2d71fdbbd3ccf5d46f95eeb7987f0eb
7
- data.tar.gz: c5cee354f45ebdfc63a85b61e1f3823fea44ff89e2c73091cba63f10d8bd9d575d43636e247c1ac59e9a33e0328e1fbf3f829047eaf2061093547ef6375d1940
6
+ metadata.gz: 920d5e5b32fd85cf560c26ad7cbc2fe37e3ce70f863c9b21be3e6b4d9861e3830cff445c51dafe8ecda5154acfa47543b6870bfe34a6af15298414663ff19b55
7
+ data.tar.gz: 4216b3620feb1446862f6ab3c37275950b899dc85b30ff56a7868a648e46a30ea510d3e8bcdf8524d8dd1c9e48677dab19f9c771e1cfbced62563a8cfe7bac9c
data/Gemfile.lock CHANGED
@@ -71,16 +71,16 @@ GEM
71
71
  cucumber-messages (> 19, < 28)
72
72
  cucumber-messages (27.2.0)
73
73
  cucumber-tag-expressions (6.1.2)
74
- decoor (0.0.1)
74
+ decoor (0.1.0)
75
75
  diff-lcs (1.6.2)
76
76
  docile (1.4.1)
77
- elapsed (0.0.1)
77
+ elapsed (0.1.0)
78
78
  loog (> 0)
79
79
  tago (> 0)
80
80
  ellipsized (0.3.0)
81
81
  ethon (0.16.0)
82
82
  ffi (>= 1.15.0)
83
- factbase (0.11.1)
83
+ factbase (0.12.1)
84
84
  backtrace (~> 0.4)
85
85
  decoor (~> 0.0)
86
86
  ellipsized (~> 0.3)
@@ -108,6 +108,7 @@ GEM
108
108
  ffi (1.17.2-arm-linux-gnu)
109
109
  ffi (1.17.2-arm-linux-musl)
110
110
  ffi (1.17.2-arm64-darwin)
111
+ ffi (1.17.2-x64-mingw-ucrt)
111
112
  ffi (1.17.2-x86_64-darwin)
112
113
  ffi (1.17.2-x86_64-linux-gnu)
113
114
  ffi (1.17.2-x86_64-linux-musl)
@@ -146,6 +147,8 @@ GEM
146
147
  racc (~> 1.4)
147
148
  nokogiri (1.18.8-arm64-darwin)
148
149
  racc (~> 1.4)
150
+ nokogiri (1.18.8-x64-mingw-ucrt)
151
+ racc (~> 1.4)
149
152
  nokogiri (1.18.8-x86_64-darwin)
150
153
  racc (~> 1.4)
151
154
  nokogiri (1.18.8-x86_64-linux-gnu)
@@ -239,6 +242,7 @@ PLATFORMS
239
242
  arm-linux-gnu
240
243
  arm-linux-musl
241
244
  arm64-darwin
245
+ x64-mingw-ucrt
242
246
  x86_64-darwin
243
247
  x86_64-linux-gnu
244
248
  x86_64-linux-musl
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
- @@loog.debug("Factbase #{Factbase::VERSION}")
72
- @@loog.debug("Baza-rb #{BazaRb::VERSION}")
73
- @@loog.debug("Ruby: #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}")
74
- @@loog.debug("Current directory: #{Dir.getwd}")
75
- @@loog.debug("Time: #{Time.now.utc.iso8601}")
76
- @@loog.debug("Total memory: #{Total::Mem.new.bytes / (1024 * 1024)}Mb")
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
 
@@ -5,7 +5,7 @@ Feature: Misc
5
5
  I want to get some meta info
6
6
 
7
7
  Scenario: Help can be printed
8
- When I run bin/judges with "-h"
8
+ When I run bin/judges with "--help --hello"
9
9
  Then Exit code is zero
10
10
  And Stdout contains "--help"
11
11
 
@@ -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.11.1 --verbose test --judge guess ./fixtures"
19
+ When I run bin/judges with "--factbase 0.12.1 --verbose test --judge guess ./fixtures"
20
20
  Then Exit code is zero
21
- And Stdout contains "Factbase version to be used: '0.11.1'"
21
+ And Stdout contains "Factbase version to be used: '0.12.1'"
22
22
 
23
23
  Scenario: Simple test of no judges
24
24
  Given I run bin/judges with "test --judge absent_for_sure ./fixtures"
@@ -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.50.6'
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/judge.rb CHANGED
@@ -74,7 +74,7 @@ class Judges::Judge
74
74
  end
75
75
  s = File.join(@dir, script)
76
76
  raise "Can't load '#{s}'" unless File.exist?(s)
77
- elapsed(@loog, intro: "#{$judge} completed", level: Logger::INFO) do
77
+ elapsed(@loog, good: "#{$judge} completed", level: Logger::INFO) do
78
78
  load(s, true)
79
79
  $fb.churn
80
80
  # rubocop:disable Lint/RescueException
data/lib/judges.rb CHANGED
@@ -8,5 +8,5 @@
8
8
  # Copyright:: Copyright (c) 2024-2025 Yegor Bugayenko
9
9
  # License:: MIT
10
10
  module Judges
11
- VERSION = '0.50.6' unless const_defined?(:VERSION)
11
+ VERSION = '0.51.0' unless const_defined?(:VERSION)
12
12
  end
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.50.6
4
+ version: 0.51.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko