wycats / bundler

407 stars 30 forks source link

[PATCH] Avoid loading RubyGems multiple times on Ruby 1.9 #139

Closed wilson closed 7 years ago

wilson commented 14 years ago

I just spent most of the day getting a Rails 2.3.5 project bundling cleanly on both 1.8.7 and 1.9.1. In the end, I wound up with a working setup for both, but under 1.9.1 numerous warnings are printed as RubyGems constants are re-initialized. One possible fix is the (trivial) attached patch, which simply doesn't require 'rubygems' in environment.rb if the 'gem' method is already defined. Patch can be found here: http://supremetyrant.com/ruby/bundler_rubygems_19.patch

wilson commented 7 years ago

I hope this got fixed; it's not clear from the referenced commit that it was. Luckily nobody cares about these old versions anymore.