Skip to content

Commit

Permalink
bc/mp - Made gem runner proxy split its output on new lines. Gems tha…
Browse files Browse the repository at this point in the history
…t had multiple matches (e.g. 'gdata') would return both gems in a single blog of text. This would cause find_remote_gem to erroneously match the first gem listed rather than the correct one.
  • Loading branch information
Britt Crawford authored and thewoolleyman committed Aug 25, 2009
1 parent d4e8b8a commit eacdfda
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/geminstaller/gem_runner_proxy.rb
Expand Up @@ -30,7 +30,9 @@ def run(args = [], stdin = [])
end
output_lines = @output_listener.read!
output_lines.push(exit_status) if exit_status
return output_lines
output_lines.collect do |line|
line.split("\n")
end.flatten
end

def create_gem_runner
Expand Down

0 comments on commit eacdfda

Please sign in to comment.