optparse-simple 0.2.2 → 0.2.3

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 +3 -3
  2. metadata +1 -1
@@ -8,9 +8,9 @@ class OptParseSimple
8
8
 
9
9
  # -- bind any loose value to their argument
10
10
  xpath = 'records/option/summary[switch != "" and value != ""]'
11
- options = XPath.match(doc.root, xpath)
12
- .map {|node| %w(switch alias)
13
- .map{|x| node.text(x)}.compact}
11
+ options = XPath.match(doc.root, xpath)\
12
+ .map {|node| %w(switch alias)\
13
+ .map{|x| node.text(x)}.compact}\
14
14
  .flatten
15
15
  args.map!.with_index do |x,i|
16
16
  next unless x or i < args.length - 1
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.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors: []
7
7