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
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