judges 0.49.0 → 0.50.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fed7775d40fd6158b48ec3a2e8eb78551b2dbfd2f15863cca7a60346ba4414f8
4
- data.tar.gz: 1e96aea6b40171147d96a8ee6455906e69e5a2bcaab07588ab8141d284a1198b
3
+ metadata.gz: ab046ff658a42efda827851453beedd5bc755c14ae3f31ad61a308ea531ea2d0
4
+ data.tar.gz: ec5861c6a9d3d9d6554f3b1c1928a644da173c552daaa72cf30d8c297fdd62ea
5
5
  SHA512:
6
- metadata.gz: 8258a6395ca26b7bf39ebae093b23d47f88e432715e0f6367b62c4c56e23c4a95b711110921d2a1f85a36a3ee842a907858b711336851f3914cee12cce61c869
7
- data.tar.gz: 35b8ce58212c683590f62d8d2d05aed393a79dc60e6cb231ba8128a89d3408a7a11a3534302a844722f8d11897a13b536c155973d2ee75762836e4a01de29e79
6
+ metadata.gz: be7ccc51e8117b2c5580262db888cfe35fae32941bcd28bf412805abc080a861146593c63550300b9339f5a82b452390be5ebb033bbe7fed916dcafccdf0d07c
7
+ data.tar.gz: f54f53fc49b9f8680971f1d7ccabee6e0aed3d9e52fe2ece3f36bd684cee0a66c07f552a3327964ea2195c7ca911b73acd4f6667c310f1a15e37684033d60ad4
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.0)
31
+ baza.rb (0.9.1)
32
32
  backtrace (~> 0.4)
33
33
  elapsed (~> 0.0)
34
34
  faraday (~> 2.13)
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.49.0'
12
+ s.version = '0.50.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
@@ -8,5 +8,5 @@
8
8
  # Copyright:: Copyright (c) 2024-2025 Yegor Bugayenko
9
9
  # License:: MIT
10
10
  module Judges
11
- VERSION = '0.49.0' unless const_defined?(:VERSION)
11
+ VERSION = '0.50.1' unless const_defined?(:VERSION)
12
12
  end