Skip to content

Commit

Permalink
Fixed regex that only matched part of the gem data
Browse files Browse the repository at this point in the history
  • Loading branch information
teknotus committed Sep 13, 2012
1 parent e07e606 commit 131ab9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/rvm_gem/gem.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def self.gemsplit(desc)
case desc
when /^\*\*\*/, /^\s*$/, /^\s+/; return nil
when /gem: not found/; return nil
when /^(\S+)\s+\(([^ ]+).*\)/
when /^(\S+)\s+\((((((\d+[.]?))+)(,\s)*)+)\)/
name = $1
version = $2.split(/,\s*/)[0]
return {
Expand Down

0 comments on commit 131ab9a

Please sign in to comment.