rogerdpack-arguments 0.4.7.7 → 0.4.7.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/arguments/vm.rb +1 -1
  2. metadata +1 -1
data/lib/arguments/vm.rb CHANGED
@@ -7,6 +7,6 @@ module Arguments
7
7
  return [] if str.match(/\*\w+/)
8
8
  throw 'poor comma' + str if str =~ /,\W*&/
9
9
  str.match(/def\s*\w+\s*\(?\s*([^)\n]*)/)[1] #This could look better
10
- .scan(/(\w+)(?:\s*=\s*([^,]+))|(\w+)/).map{ |e| e.compact }
10
+ .scan(/(\w+)(?:\s*=\s*([^,]+))|(\w+)/).map{ |e| e.compact }.collect{|e2| e2[1].gsub!(/\W*\&.*/, '') if e2[1]; e2}
11
11
  end
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rogerdpack-arguments
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7.7
4
+ version: 0.4.7.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Macario Ortega