gli 2.15.0 → 2.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -2
- data/lib/gli/commands/doc.rb +9 -3
- data/lib/gli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b384eec004c6efa4d845deffda6cb648366c1ae8
|
4
|
+
data.tar.gz: acec0d0cc0a7d18c8c63671faeba2cc7c4c9f1be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b65e3465e7be11d5e1e7f13bdea384bfe31303b2213f53b33bc4756937088015431c13e32726bca5ffe5ebc9290dfcfa7d641c8fe4af84d8f736d617578b19c4
|
7
|
+
data.tar.gz: 628803bb8e75ace8f3a6a3545131f4433a9ded2ec7f294163a2498da33313554ace1f3dce4b1d9914843a0a73d80c1a4dcd92dd950d9d17657ee8d80ec1bad38
|
data/.travis.yml
CHANGED
data/lib/gli/commands/doc.rb
CHANGED
@@ -4,7 +4,7 @@ module GLI
|
|
4
4
|
# about your app, so as to create documentation in whatever format you want
|
5
5
|
class Doc < Command
|
6
6
|
FORMATS = {
|
7
|
-
'rdoc' => GLI::Commands::RdocDocumentListener
|
7
|
+
'rdoc' => GLI::Commands::RdocDocumentListener
|
8
8
|
}
|
9
9
|
# Create the Doc generator based on the GLI app passed in
|
10
10
|
def initialize(app)
|
@@ -139,7 +139,7 @@ module GLI
|
|
139
139
|
private
|
140
140
|
|
141
141
|
def format_class(format_name)
|
142
|
-
FORMATS.fetch(format_name) {
|
142
|
+
FORMATS.fetch(format_name) {
|
143
143
|
begin
|
144
144
|
return format_name.split(/::/).reduce(Kernel) { |context,part| context.const_get(part) }
|
145
145
|
rescue => ex
|
@@ -168,8 +168,14 @@ module GLI
|
|
168
168
|
command.description,
|
169
169
|
command.long_description,
|
170
170
|
command.arguments_description]
|
171
|
-
if document_listener.method(:command).arity
|
171
|
+
if document_listener.method(:command).arity >= 6
|
172
172
|
command_args << command.arguments_options
|
173
|
+
if document_listener.method(:command).arity >= 7
|
174
|
+
command_args << command.arguments
|
175
|
+
end
|
176
|
+
if document_listener.method(:command).arity >= 8
|
177
|
+
command_args << command.examples
|
178
|
+
end
|
173
179
|
end
|
174
180
|
document_listener.command(*command_args)
|
175
181
|
end
|
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.
|
4
|
+
version: 2.16.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-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|