My project setup is like this:
$ cat .bundle/config
$ cat Gemfile
After bundle install everything goes to vendor/bundle. So far, so good.
The problem emerges after changing current ruby (via rvm)
Compiled nokogiri is in vendor/bundle/extensions/x86-linux/2.2.0/, and after switching to, say, 2.0, there is no way to have Nokogiri compiled against Ruby 2.0, and any nokogiri-related code will fail miserably.
Aren't there a way to have in same vendor/bundle extensions installed for several Ruby versions? Or am I missing something?..