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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e666d683a83a5f81875fbe30821de7a7b13b831b
4
- data.tar.gz: 466f1b67952cb0627da9918d1958df1306da1978
3
+ metadata.gz: b384eec004c6efa4d845deffda6cb648366c1ae8
4
+ data.tar.gz: acec0d0cc0a7d18c8c63671faeba2cc7c4c9f1be
5
5
  SHA512:
6
- metadata.gz: 82e0bde97f4d3813873fea67b1d3de567eb4c82faf82f89163a30c394f6a8f3220a65e60a39f437e772bf0e96c0ff29dfae140c73291cb18a547b34a4ad05744
7
- data.tar.gz: a608c4252838fdd419d2ee53d08de948d6c56b2b70bbd3cd34d6fd3ef6d18d2e54374f042c34af77d7d238c98f45eade0215cf003ea46f1aa5d6e38f878b3683
6
+ metadata.gz: b65e3465e7be11d5e1e7f13bdea384bfe31303b2213f53b33bc4756937088015431c13e32726bca5ffe5ebc9290dfcfa7d641c8fe4af84d8f736d617578b19c4
7
+ data.tar.gz: 628803bb8e75ace8f3a6a3545131f4433a9ded2ec7f294163a2498da33313554ace1f3dce4b1d9914843a0a73d80c1a4dcd92dd950d9d17657ee8d80ec1bad38
@@ -3,11 +3,9 @@ notifications:
3
3
  on_success: always
4
4
  script: 'bundle exec rake test features'
5
5
  rvm:
6
- - 2.1.10
7
6
  - 2.2.6
8
7
  - 2.3.3
9
8
  - 2.4.0
10
- - jruby-19mode
11
9
  branches:
12
10
  only:
13
11
  - 'gli-2'
@@ -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 == 6
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
@@ -1,5 +1,5 @@
1
1
  module GLI
2
2
  unless const_defined? :VERSION
3
- VERSION = '2.15.0'
3
+ VERSION = '2.16.0'
4
4
  end
5
5
  end
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.15.0
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-01-21 00:00:00.000000000 Z
11
+ date: 2017-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake