gli 2.19.0 → 2.19.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.tool-versions +1 -1
- data/features/gli_init.feature +1 -0
- data/features/support/hooks.rb +5 -0
- data/gli.gemspec +0 -1
- data/lib/gli/command_support.rb +2 -6
- data/lib/gli/version.rb +1 -1
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7089f9a6b96c1d569c7f41a03d8ffce30f3f9498ea39ca7c6c7b3717d96f71ec
|
4
|
+
data.tar.gz: '03592a617ed24d6595d0b5c505c2f7dea8ebcc000d654011a0e65e795838564a'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d1611797b8f4aa7ef04671912a193fbf9882fbfd1bd0106f5d403c8da126cb24ae98fd9accaf8d72e4127d97edb13a79679c5589f0136152a945fe2e1976c08
|
7
|
+
data.tar.gz: 41dd9b803e0e660b0ba7f4b6f33ed591da957c99ac52a09e0fe3e171df668175ac77c9513deda9138602ad620c19f1f4470f1aa234e9ec0c84bae1cff8aa3e6a
|
data/.tool-versions
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby 2.
|
1
|
+
ruby 2.7.1
|
data/features/gli_init.feature
CHANGED
@@ -8,6 +8,7 @@ Feature: The scaffold GLI generates works
|
|
8
8
|
And GLI's libs are in my path
|
9
9
|
And my terminal size is "80x24"
|
10
10
|
|
11
|
+
@slow-command
|
11
12
|
Scenario: Scaffold generates and things look good
|
12
13
|
When I run `gli init --rvmrc todo add complete list`
|
13
14
|
Then the exit status should be 0
|
data/gli.gemspec
CHANGED
@@ -20,7 +20,6 @@ spec = Gem::Specification.new do |s|
|
|
20
20
|
s.extra_rdoc_files = ['README.rdoc', 'gli.rdoc']
|
21
21
|
s.rdoc_options << '--title' << 'Git Like Interface' << '--main' << 'README.rdoc'
|
22
22
|
s.bindir = 'bin'
|
23
|
-
s.rubyforge_project = 'gli'
|
24
23
|
s.add_development_dependency('rake', '~> 0.9.2.2')
|
25
24
|
s.add_development_dependency('rdoc', '~> 4.2')
|
26
25
|
s.add_development_dependency('rainbow', '~> 1.1', '~> 1.1.1')
|
data/lib/gli/command_support.rb
CHANGED
@@ -166,12 +166,8 @@ module GLI
|
|
166
166
|
|
167
167
|
def generate_error_action(arguments)
|
168
168
|
lambda { |global_options,options,arguments|
|
169
|
-
if am_subcommand?
|
170
|
-
|
171
|
-
raise UnknownCommand,"Unknown command '#{arguments[0]}'"
|
172
|
-
else
|
173
|
-
raise BadCommandLine,"Command '#{name}' requires a subcommand"
|
174
|
-
end
|
169
|
+
if am_subcommand? && arguments.size > 0
|
170
|
+
raise UnknownCommand,"Unknown command '#{arguments[0]}'"
|
175
171
|
elsif have_subcommands?
|
176
172
|
raise BadCommandLine,"Command '#{name}' requires a subcommand #{self.commands.keys.join(',')}"
|
177
173
|
else
|
data/lib/gli/version.rb
CHANGED
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.19.
|
4
|
+
version: 2.19.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Copeland
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -173,6 +173,7 @@ files:
|
|
173
173
|
- features/step_definitions/gli_init_steps.rb
|
174
174
|
- features/step_definitions/todo_steps.rb
|
175
175
|
- features/support/env.rb
|
176
|
+
- features/support/hooks.rb
|
176
177
|
- features/todo.feature
|
177
178
|
- features/todo_legacy.feature
|
178
179
|
- gli.cheat
|
@@ -265,7 +266,7 @@ homepage: http://davetron5000.github.com/gli
|
|
265
266
|
licenses:
|
266
267
|
- Apache-2.0
|
267
268
|
metadata: {}
|
268
|
-
post_install_message:
|
269
|
+
post_install_message:
|
269
270
|
rdoc_options:
|
270
271
|
- "--title"
|
271
272
|
- Git Like Interface
|
@@ -284,8 +285,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
284
285
|
- !ruby/object:Gem::Version
|
285
286
|
version: '0'
|
286
287
|
requirements: []
|
287
|
-
rubygems_version: 3.
|
288
|
-
signing_key:
|
288
|
+
rubygems_version: 3.1.2
|
289
|
+
signing_key:
|
289
290
|
specification_version: 4
|
290
291
|
summary: Build command-suite CLI apps that are awesome.
|
291
292
|
test_files:
|
@@ -295,6 +296,7 @@ test_files:
|
|
295
296
|
- features/step_definitions/gli_init_steps.rb
|
296
297
|
- features/step_definitions/todo_steps.rb
|
297
298
|
- features/support/env.rb
|
299
|
+
- features/support/hooks.rb
|
298
300
|
- features/todo.feature
|
299
301
|
- features/todo_legacy.feature
|
300
302
|
- test/apps/README.md
|