gli 2.16.1 → 2.17.0

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: 0acaea7f8145cb2dc60e2fd52c7da2919fd96d3b
4
- data.tar.gz: '038717d700e0180abfc9598a7e4a5faa3e345fd6'
3
+ metadata.gz: f63a411c5190a93b4b9d1b8e1516a2eadbb219e7
4
+ data.tar.gz: 56b7d99d7b11c9e03818f3b8a72b160a61d9a6ed
5
5
  SHA512:
6
- metadata.gz: a5139bbf3cccb6d4da325aa3914763ba916d38d5d544363251802159910abbb3c7dcda5772542e61609fb2a94d9b0fae2b383d72d28cbe7029b43671db3cc384
7
- data.tar.gz: caa90d49ba74a03562297d1fed3d00dc69918e30beac220605d8184d24ae89727a0f3b3742c693e50f1c8b88e8617fbf8513c0cd169a78f9c68b81f4b3d0b3b9
6
+ metadata.gz: 3e9081d9bfed8dd504d2b377641222d7b721a777e811bca6151da19ab37c50fcadfc97cc7bee0cc36652a94d482bd5f57ca0564488f4d00b20cd30a4726abb45
7
+ data.tar.gz: 2ac18e6236e208bb0113fdac94176b60274857f4df86c4c917ff730145119f51d79b3d33a2994b033346e3e9bed0dab75598ccca405c9ddf7bcf0b3da2c81c6f
@@ -1 +1 @@
1
- 2.3.1
1
+ 2.4.2
@@ -5,7 +5,7 @@ script: 'bundle exec rake test features'
5
5
  rvm:
6
6
  - 2.2.6
7
7
  - 2.3.3
8
- - 2.4.0
8
+ - 2.4.2
9
9
  branches:
10
10
  only:
11
11
  - 'gli-2'
@@ -60,6 +60,13 @@ Feature: The todo app has a nice user interface
60
60
  todo version 0.0.1
61
61
  """
62
62
 
63
+ Scenario: --version flag displays version instead of executing command
64
+ When I successfully run `todo --version ls`
65
+ Then the output should contain:
66
+ """
67
+ todo version 0.0.1
68
+ """
69
+
63
70
  Scenario: Help completion mode
64
71
  When I successfully run `todo help -c`
65
72
  Then the output should contain:
@@ -45,7 +45,7 @@ module GLI
45
45
  def parse!(parsing_result)
46
46
  parsing_result.arguments = GLIOptionBlockParser.new(@option_parser_factory,UnknownGlobalArgument).parse!(parsing_result.arguments)
47
47
  parsing_result.global_options = @option_parser_factory.options_hash_with_defaults_set!
48
- command_name = if parsing_result.global_options[:help]
48
+ command_name = if parsing_result.global_options[:help] || parsing_result.global_options[:version]
49
49
  "help"
50
50
  else
51
51
  parsing_result.arguments.shift
@@ -1,5 +1,5 @@
1
1
  module GLI
2
2
  unless const_defined? :VERSION
3
- VERSION = '2.16.1'
3
+ VERSION = '2.17.0'
4
4
  end
5
5
  end
@@ -58,7 +58,7 @@ class TC_testHelp < Clean::Test::TestCase
58
58
  }
59
59
  end
60
60
 
61
- test_that "the help command can be configured to skip things declaratively regardless of when it the object was created" do
61
+ test_that "the help command can be configured to skip things declaratively regardless of when the object was created" do
62
62
  Given {
63
63
  GLI::Commands::Help.skips_pre = false
64
64
  GLI::Commands::Help.skips_post = false
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gli
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.16.1
4
+ version: 2.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Copeland
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-04 00:00:00.000000000 Z
11
+ date: 2017-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -284,7 +284,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
284
284
  version: '0'
285
285
  requirements: []
286
286
  rubyforge_project: gli
287
- rubygems_version: 2.6.11
287
+ rubygems_version: 2.6.13
288
288
  signing_key:
289
289
  specification_version: 4
290
290
  summary: Build command-suite CLI apps that are awesome.