Permalink
Browse files

Fix @loaded_stacks so that rubygems doesn't raise a NoMethodError #ma…

…p on nil object.
  • Loading branch information...
1 parent 68d4ebe commit 5a175a3613724c27d37c2a0413e6fdc8b73b887b Carl Lerche committed Oct 28, 2009
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/bundler/templates/environment.erb
@@ -100,6 +100,8 @@ end
<% if options[:rubygems] -%>
module Gem
+ @loaded_stacks = Hash.new { |h,k| h[k] = [] }
+
def source_index.refresh!
super
Bundler.add_specs_to_index

0 comments on commit 5a175a3

Please sign in to comment.