optparse-simple 0.3.0 → 0.3.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.
Files changed (2) hide show
  1. data/lib/optparse-simple.rb +1 -1
  2. metadata +1 -1
@@ -72,7 +72,7 @@ class OptParseSimple
72
72
 
73
73
  a2 = args.zip(options_remaining).map(&:reverse)
74
74
  if a2.map(&:first).all? then
75
- @h = Hash[*(a1+a2).map{|x,y| [x.to_s.to_sym, y]}.flatten]
75
+ @h = Hash[*(a1+a2).map{|x,y| [x.to_s.strip.to_sym, y]}.flatten]
76
76
  else
77
77
  invalid_option = a2.detect {|x,y| x.nil? }.last
78
78
  raise "invalid option: %s not recognised" % invalid_option
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: optparse-simple
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors: []
7
7