Permalink
Browse files

Debugging the rubygems upgrade

  • Loading branch information...
1 parent c03c4af commit adecde9944671e2e84d17fe31506246890707bb2 @mathieuravaux committed Mar 13, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/language_pack/ruby.rb
@@ -216,8 +216,9 @@ def setup_profiled
def update_rubygems
version = run("gem --version").strip
if version < MIN_RUBYGEMS_VERSION
- topic "Updating rubygems"
- pipe("gem update --system 2>&1")
+ command = "env GEM_PATH=#{slug_vendor_base} gem update --system 2>&1"
+ topic "Updating rubygems (#{coommand})"
+ pipe(command)
version = run("gem --version").strip
end
puts "Using rubygems version #{version}"

0 comments on commit adecde9

Please sign in to comment.