Bundler's message to exclude certain gems from a particular gem setting

Inside the gemfile, is there a way to tell the Bundler something like:

gem 'twitter-bootstrap-rails', :exclude therubyracer

I need to install twitter-bootstrap-rails, but it automatically pulls out therubyracer, so it bundle installdoesn’t work, and bootstrap is not part of the project, since it is a Windows machine. I installed execjs to no avail.

I tried to transfer therubyracerto production and bundle install --without productionalso to no avail.

" therubyracer gem on windows " is also this problem, but none of the suggestions change the error I get.

My old thread was " When I do a bundle update, I get an error message from gem, but not in my gemfile. How to ignore this dependency? ".

+5
source share
1 answer

There is no way to do this in Bundler.

So, you have the following options:

  • Do not use twitter-bootstrap-rails. You can simply copy the compiled css and js files to the appropriate directories in vendor/assets. You will lose the ability to change fewer variables. Or you can use a gem compass_twitter_bootstrapthat uses sass instead of sass.

  • less execjs commonjs therubyracer. , (-), .

  • :platform Gemfile, OSX Linux. , , less. , .

+4

All Articles