console_runner 0.1.19 → 0.1.20

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df82927720c132e22e5827e1f1ad7ea13b3e320f
4
- data.tar.gz: 02cf4ea9fb249c8a919fc53d66537aa331449d82
3
+ metadata.gz: 0c79e1d20d6a2c13058ab7bfc7392db15f0fa18f
4
+ data.tar.gz: 4c1d9bf3a7426c484acf0278241b65e61f5281b1
5
5
  SHA512:
6
- metadata.gz: 8647ea0b4742fd25473a34dbc18a154d12bfb78f976663090e95748dd4fa0522d3efdcb487e6e415e291d63308c9005fa3c746b16f85dc6f05874e1f6ba63bd2
7
- data.tar.gz: 5a0b7fb1485479310d5ff313a5407a76b4eaa68119735dc50dee2aa922b830034a39a2bbc7a37fd1e2052f287a0d9b51ff5d8e14a99bb2188f008fd3de62d1d1
6
+ metadata.gz: 79b5f19ec17a3948780cece0cd4498f87e20c1286acc5df491b06550b130a57fec3497d5c2708a84aec0fe05a77b70ab3480b55f533b8332fd3bd94e57700d4f
7
+ data.tar.gz: 9c691933f59ff3b88dd7b953e74f77343224c6798c89eec1b52235e002c3da12c0f3617ec8527afe2d07012b02cae1ee305e33f10848cb4638b7f78b44f8b338
@@ -27,6 +27,10 @@ class CommandLineParser
27
27
  @debug
28
28
  end
29
29
 
30
+ def self.debug=(value)
31
+ @debug=value
32
+ end
33
+
30
34
  def tool_banner
31
35
  result = FileParser.select_runnable_tags(@file_parser.clazz).map(&:text).join("\n")
32
36
  result += "\n\nAvailable actions:\n"
@@ -45,7 +49,7 @@ class CommandLineParser
45
49
  action_index = ARGV.index(action)
46
50
  scope = ARGV[0..action_index] if action_index
47
51
  end
48
- @debug = ARGV.any? { |a| %w(-d --debug).include? a }
52
+ CommandLineParser.debug = ARGV.any? { |a| %w(-d --debug).include? a }
49
53
  return unless scope.any? { |a| %w(-h --help).include? a }
50
54
  @parser.banner("\n" + banner)
51
55
  Trollop::with_standard_exception_handling(@parser) { raise Trollop::HelpNeeded }
@@ -1,3 +1,3 @@
1
1
  module ConsoleRunner
2
- VERSION = '0.1.19'
2
+ VERSION = '0.1.20'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: console_runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yury Karpovich