gli 2.2.0 → 2.2.1

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.
data/gli.rdoc CHANGED
@@ -1,6 +1,6 @@
1
1
  == gli - create scaffolding for a GLI-powered application
2
2
 
3
- v2.1.0
3
+ v2.2.1
4
4
 
5
5
  === Global Options
6
6
  === -r|--root arg
@@ -60,8 +60,8 @@ module GLI
60
60
  # Gives you a switch in the current context
61
61
  def switch(name,aliases,desc,long_desc,negetable)
62
62
  if negetable
63
- name = "[no-]#{name}" if name.length > 1
64
- aliases = aliases.map { |_| _.length > 1 ? "[no-]#{_}" : _ }
63
+ name = "[no-]#{name}" if name.to_s.length > 1
64
+ aliases = aliases.map { |_| _.to_s.length > 1 ? "[no-]#{_}" : _ }
65
65
  end
66
66
  invocations = ([name] + aliases).map { |_| add_dashes(_) }.join('|')
67
67
  @io.puts "#{@nest}=== #{invocations}"
data/lib/gli/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module GLI
2
2
  unless const_defined? :VERSION
3
- VERSION = '2.2.0' #:nodoc:
3
+ VERSION = '2.2.1' #:nodoc:
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gli
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 2
9
- - 0
10
- version: 2.2.0
9
+ - 1
10
+ version: 2.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Copeland