Gem extensions vs Ruby versions

17 views
Skip to first unread message

Victor Shepelev

unread,
May 19, 2016, 5:51:31 PM5/19/16
to ruby-bundler
Hey.

My project setup is like this:

$ cat .bundle/config
---
BUNDLE_DISABLE_SHARED_GEMS: '1'

$ cat Gemfile

gem 'nokogiri'

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

Thanks.

V.
Reply all
Reply to author
Forward
0 new messages