gli 2.19.1 → 2.19.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 635c14c43560039c5a46a367a501201b6d255dfb850d1280a8300e0c5b7f9ab8
4
- data.tar.gz: 0d82f1d19eb5f41a91cdee92f3acf1732b84f93ff9e6353a4e18ad438a5f259a
3
+ metadata.gz: 7089f9a6b96c1d569c7f41a03d8ffce30f3f9498ea39ca7c6c7b3717d96f71ec
4
+ data.tar.gz: '03592a617ed24d6595d0b5c505c2f7dea8ebcc000d654011a0e65e795838564a'
5
5
  SHA512:
6
- metadata.gz: ae6e5aa99a45658686fdbd6cb0e7835c66f0761f8cb0a7e7822265e963d08830441ba6024b747bd0a077152110b55b7c7726bdb55178b1b188bfe2e9804b3968
7
- data.tar.gz: '0396dc0ac0290db90f9715bf4b3f3352394003403b81fe0b0c1c6b57af5f981983ac7e691bf17d1e68e9dee80358b9e87991407137a4824464270c4574d468b8'
6
+ metadata.gz: 7d1611797b8f4aa7ef04671912a193fbf9882fbfd1bd0106f5d403c8da126cb24ae98fd9accaf8d72e4127d97edb13a79679c5589f0136152a945fe2e1976c08
7
+ data.tar.gz: 41dd9b803e0e660b0ba7f4b6f33ed591da957c99ac52a09e0fe3e171df668175ac77c9513deda9138602ad620c19f1f4470f1aa234e9ec0c84bae1cff8aa3e6a
@@ -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
- if arguments.size > 0
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
@@ -1,5 +1,5 @@
1
1
  module GLI
2
2
  unless const_defined? :VERSION
3
- VERSION = '2.19.1'
3
+ VERSION = '2.19.2'
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.19.1
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: 2020-05-31 00:00:00.000000000 Z
11
+ date: 2020-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -266,7 +266,7 @@ homepage: http://davetron5000.github.com/gli
266
266
  licenses:
267
267
  - Apache-2.0
268
268
  metadata: {}
269
- post_install_message:
269
+ post_install_message:
270
270
  rdoc_options:
271
271
  - "--title"
272
272
  - Git Like Interface
@@ -286,7 +286,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
286
286
  version: '0'
287
287
  requirements: []
288
288
  rubygems_version: 3.1.2
289
- signing_key:
289
+ signing_key:
290
290
  specification_version: 4
291
291
  summary: Build command-suite CLI apps that are awesome.
292
292
  test_files: