Skip to content

Commit

Permalink
Fix case statement to be compatible with ruby19
Browse files Browse the repository at this point in the history
Signed-off-by: Greg Fitzgerald <netzdamon@gmail.com>
  • Loading branch information
Greg Fitzgerald authored and thewoolleyman committed Aug 25, 2009
1 parent aaaf029 commit 0718fd9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/geminstaller/output_filter.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def output(source, type, message)


def format_rubygems_message(type, message) def format_rubygems_message(type, message)
prefix = case type prefix = case type
when :stdout : "[RubyGems:stdout] " when :stdout then "[RubyGems:stdout] "
when :stderr : "[RubyGems:stderr] " when :stderr then "[RubyGems:stderr] "
end end
"#{prefix}#{message}" "#{prefix}#{message}"
end end
Expand All @@ -46,4 +46,4 @@ def geminstaller_output_type_matches?(type)
return false return false
end end
end end
end end

0 comments on commit 0718fd9

Please sign in to comment.