mpapis/rubygems-bundler — Issue #10: Do I have to run 'gem regenerate_binstubs' every time a new gem is installed?
Author: danielweinmann
Created: 2011-12-31 11:52:21+00:00
State: open

Hi there,

I'm wondering if I'll have to run 'gem regenerate_binstubs' every time a new gem is installed...it seems so, although I don't like the idea very much :)

Here's a recipe if you want to see what I mean. On bash, run:

rvm --create 1.9.2@rubygems-bundler_test
mkdir ~/rubygems-bundler_test
cd ~/rubygems-bundler_test
gem instal rubygems-bundler
echo -e "custom_shebang: \$env ruby_bundler_wrapper" > ~/.gemrc
gem install bundler
gem regenerate_binstubs
gem install haml
echo -e "source 'http://rubygems.org'\ngem 'haml', '3.0.0'" >> Gemfile
bundle
USE_BUNDLER=no haml -v
USE_BUNDLER=try haml -v
bundle exec haml -v
gem regenerate_binstubs
USE_BUNDLER=no haml -v
USE_BUNDLER=try haml -v
bundle exec haml -v

You'll see that the first time I run 'USE_BUNDLER=try haml -v' it does not work, but after a new 'gem regenerate_binstubs' it works really well.

Did I get it right? If so, are you guys planning to address this issue?

Happy new year! :D

Best,
Daniel