Telling Bundler to exclude certain gems from a particular gem's installation
There is no option for this in Bundler.
So you're left with these options:
Don't use
twitter-bootstrap-rails
. You can just copy the compiled css and js files into the proper directories undervendor/assets
. You'll lose the ability to change less variables. Or you can use thecompass_twitter_bootstrap
gem, which uses sass instead of less.Get the maintainer of the
less
gem to useexecjs
instead ofcommonjs
andtherubyracer
. It would probably mean significant refactoring for the maintainer(s) if at all possible.Use the
:platform
option in your Gemfile, to only install on OSX or Linux. Then require the parts you can use by hand, without loadingless
. This probably won't work.
How to tell bundler to ignore gems that don't exist?
This is expected behaviour. From the docs:
While the
--without
option will skip installing the gems in the specified groups, it will still download those gems and use them to resolve the dependencies of every gem in your Gemfile(5).
Whilst an up to date Gemfile.lock
might suggest that the dependencies don’t need to be resolved again, it looks like all gems are downloaded even in this case.
Ruby on Rails: Removing a dependency while installing a gem?
According to this doc, there's the options
-f, --[no-]force Force gem to install, bypassing dependency checks
and
--ignore-dependencies Do not install any required dependent gems
Why Bundle Install is installing gems in vendor/bundle?
Use
bundle env
to view paths and bundle configurationAfter this set bundle path to
~/.rvm/gems/ruby-2.0.0-p247
like this:bundle install --path ~/.rvm/gems/ruby-2.0.0-p247
which is global and also you can use your own custom path.
Post this
bundle install
will never needpath
again and will always install all of your gems in thatdirectory(~/.rvm/gems/ruby-2.0.0-p247 in my case
) for that app not inapp_folder/vendor/bundle
Related Topics
Detecting If This Is an Iframe Load or Direct
Rspec 'Eq' VS 'Eql' in 'Expect' Tests
Ruby: How to Check If a String Contains Multiple Items
Rails Devise - Current_User Is Nil
Catching Timeout Errors with Ruby Mechanize
Rvm System-Wide Install Script Url Broken -- What Is Replacement
Ruby Map Method Syntax Question
How to Remove the Zone from a Datetime Value
Regular Expression Matching Emoji in MAC Os X/Ios
Upgrading to Ruby 2.1.3 on MAC Osx 10.9.5
Ruby on Rails Country/State Select Enigma
In Ruby, How to Find Out If a String Is Not in an Array
How to Set Ca-Bundle Path for Openssl in Ruby
Converting String "2½" (Two and a Half) into 2.5
Ruby: Differencebetween the Comparatives: "||" and "Or"
How to Make Ruby's Restclient Gem Respect Content_Type on Post