judges 0.49.0 → 0.50.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 +9 -0
- data/features/echo.feature +10 -0
- data/judges.gemspec +1 -1
- data/lib/judges.rb +1 -1
- data/package-lock.json +462 -462
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e4016a317169d7a2a0b8fcd125957ae591ab5dce9d89c9fbbd5b129f00a1e55
|
4
|
+
data.tar.gz: 63df29087daba1c4b79ff0c4aa82ac0488939f98226f7c6266cfe19b7a38efa8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74b59c7739c6c9a4a45238e3fcec41144fb110a185f0e0510b911f6a78777bd4e2412ecd1edf0243d91ed420e99f3f95ac4a15626501657903411288dea96b50
|
7
|
+
data.tar.gz: 44700051b30fe93829bb43e7159d298c9a9ed67ef2f3edf2601fc6fe5b0b643d23a322822b614ae7e269b679d5fa4fd5fa32a783cf144e9c30d5c5eaa3be10d1
|
data/bin/judges
CHANGED
@@ -5,6 +5,7 @@
|
|
5
5
|
|
6
6
|
$stdout.sync = true
|
7
7
|
|
8
|
+
require 'baza-rb/version'
|
8
9
|
require 'gli'
|
9
10
|
require 'loog'
|
10
11
|
require 'tago'
|
@@ -17,6 +18,8 @@ Encoding.default_internal = Encoding::UTF_8
|
|
17
18
|
|
18
19
|
class JudgesGLI extend GLI::App
|
19
20
|
|
21
|
+
@@args = ARGV.dup
|
22
|
+
|
20
23
|
def self.run_it(cmd, ruby)
|
21
24
|
cmd.action do |global, options, args|
|
22
25
|
require_relative "../lib/judges/commands/#{ruby}"
|
@@ -41,11 +44,16 @@ class JudgesGLI extend GLI::App
|
|
41
44
|
switch([:v, :verbose])
|
42
45
|
desc 'Specify Factbase version to use'
|
43
46
|
flag([:factbase], type: String)
|
47
|
+
desc 'Echo the entire command line'
|
48
|
+
switch([:echo])
|
44
49
|
|
45
50
|
pre do |global, command, options, args|
|
46
51
|
if global[:verbose]
|
47
52
|
@@loog = Loog::VERBOSE
|
48
53
|
end
|
54
|
+
if global[:echo]
|
55
|
+
@@loog.info("+ #{File.absolute_path($0)} #{@@args.join(' ')}")
|
56
|
+
end
|
49
57
|
@@loog.debug("Judges #{Judges::VERSION}")
|
50
58
|
if global[:factbase]
|
51
59
|
ver = global[:factbase]
|
@@ -54,6 +62,7 @@ class JudgesGLI extend GLI::App
|
|
54
62
|
end
|
55
63
|
require 'factbase'
|
56
64
|
@@loog.debug("Factbase #{Factbase::VERSION}")
|
65
|
+
@@loog.debug("Baza-rb #{BazaRb::VERSION}")
|
57
66
|
@@loog.debug("Ruby: #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}")
|
58
67
|
@@loog.debug("Current directory: #{Dir.getwd}")
|
59
68
|
@@loog.debug("Time: #{Time.now.utc.iso8601}")
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 Yegor Bugayenko
|
2
|
+
# SPDX-License-Identifier: MIT
|
3
|
+
|
4
|
+
Feature: Echo
|
5
|
+
I want to see the full command line when using --echo flag
|
6
|
+
|
7
|
+
Scenario: Echo flag prints command line
|
8
|
+
When I run bin/judges with "--echo version"
|
9
|
+
Then Exit code is zero
|
10
|
+
And Stdout contains "bin/judges --echo version"
|
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.50.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