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 +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +1 -1
- data/features/todo.feature +7 -0
- data/lib/gli/gli_option_parser.rb +1 -1
- data/lib/gli/version.rb +1 -1
- data/test/tc_help.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f63a411c5190a93b4b9d1b8e1516a2eadbb219e7
|
4
|
+
data.tar.gz: 56b7d99d7b11c9e03818f3b8a72b160a61d9a6ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e9081d9bfed8dd504d2b377641222d7b721a777e811bca6151da19ab37c50fcadfc97cc7bee0cc36652a94d482bd5f57ca0564488f4d00b20cd30a4726abb45
|
7
|
+
data.tar.gz: 2ac18e6236e208bb0113fdac94176b60274857f4df86c4c917ff730145119f51d79b3d33a2994b033346e3e9bed0dab75598ccca405c9ddf7bcf0b3da2c81c6f
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.4.2
|
data/.travis.yml
CHANGED
data/features/todo.feature
CHANGED
@@ -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
|
data/lib/gli/version.rb
CHANGED
data/test/tc_help.rb
CHANGED
@@ -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
|
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.
|
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-
|
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.
|
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.
|