Questions tagged [bundler]

Bundler is a tool that makes it easier to keep track of what Ruby gems (and what versions of those gems) an application depends upon. It does so by installing all the gems in your application’s Gemfile. Bundler itself is a gem and can be installed with the following: $ gem install bundler

Bundler is a system that attempts to manage a Ruby application's gem dependencies across multiple developers and environments. One can define the required gems for a Ruby application in a Gemfile and then "bundle" those gems and any sub-dependencies with the application, effectively sandboxing the app -- not just to a specific set of gems, but to a specific set of gem versions.

Useful links

Example Gemfile

source "http://rubygems.org"

gem "capistrano"
gem "haml"
gem "pony", "1.1"
gem "sinatra"
gem "sinatra-content-for2" # content_for :key
gem "unicorn", "1.1.5"

group :development do
  gem "json"
  gem "mechanize"
  gem "nokogiri"
  gem "rack-test"
  gem "rspec"
end
4118 questions
2
votes
2 answers

Can you disable Bundler in rails 3?

It causes so many deployment issues it's ridiculous. Most of the time I don't care what version of gems are used, just want to use the latest one. UPDATE in response to comments: Here are a couple of examples off the top of my head: developer A is…
Travis Reeder
  • 38,611
  • 12
  • 87
  • 87
2
votes
1 answer

Should I add vendor/bundle to .gitignore, so it will not be added to my repository after deployment?

I know that bundle install --deployment should be run only on production server. Should I add "vendor/bundle" to .gitignore?
Sam Kong
  • 5,472
  • 8
  • 51
  • 87
2
votes
0 answers

Capistrano not able to restart Puma server after deploy

Puma: 3.8.2 capistrano3-puma: 3.1.1 Rails: 5.0.1 Ruby: 2.3.3 My system configuration contains 3 servers, there's always one or two servers, in which Puma won't restart after deployment. Though, the deployment log says Command restart sent…
2
votes
0 answers

Tell bundler to use TLS v1.2

The system on which our Github Enterprise server resides recently underwent a security upgrade, and now no longer supports TLS v1.0. We host a gem on that github server, which is retrieved by bundler via https using an x-oauth-basic token, like…
Chowlett
  • 45,935
  • 20
  • 116
  • 150
2
votes
2 answers

Capistrano, Bundle Pathing Issue

Sorry for the long title :). Having some Capistrano issues (though the problem could lay with bundler). Trying to deploy a Rails 3 app to Linode (Ubuntu 10.04 LTS). I thought it could be an RVM problem, but I'm still getting the problem w/o using…
kmurph79
  • 1,192
  • 3
  • 13
  • 28
2
votes
1 answer

Cannot load gem installed using bundler in rails console

I am trying to install the latest version of Globalize gem - the only one compatible with Rails 5. To do that I have to install it from Github. So I added the following line to the Gemfile as suggested by the Readme file: gem 'globalize', git:…
wael34218
  • 4,860
  • 8
  • 44
  • 62
2
votes
1 answer

AWS Lambda: Could not load 'active_record/connection_adapters/postgresql_adapter'

I'm using AWS Lambda to run a simple ruby script with a github project that has a framework that suits my needs. After facing several ruby and bundler version conflicts due to the limitations of Traveling Ruby that is part of the stack. I'm able to…
fagiani
  • 2,293
  • 2
  • 24
  • 31
2
votes
5 answers

Bundler: installing a specific .gem file

Is there a way to tell Bundler to install a particular .gem file I have lying around? I have a compiled version of ParseTree that I must use (damn you, Windows!), but didn't want to expand the gem file in order to add a :path => '...' attribute to…
Carlos Villela
  • 515
  • 5
  • 11
2
votes
1 answer

How can I use readability gem on Rails 3.0.x?

I'm going to use readability gem on my rails 3 app. I can't use it as advised on the github page http://github.com/sspinc/readability inside the app although it works fine on ruby console. On the ruby console: > require 'open-uri' => true >…
Dida
  • 941
  • 1
  • 9
  • 22
2
votes
2 answers

Ruby bundle install doesn't match Gemfile.lock: "Could not find json-1.8.6 in any of the sources"

I encountered a weird problem. In the Gemfile.lock, it states json (1.8.6). Basically, I can use bundle install to install json-1.8.6. However, it still threw the following error when I run rspec command. Could not find json-1.8.6 in any of the…
rj487
  • 4,476
  • 6
  • 47
  • 88
2
votes
1 answer

Can't install json gem 1.8.6 - failed to build gem native extension on Ubuntu

Bundler on Ubuntu 16.04 yields the following error when trying to install JSON. Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory:…
Adam Sibik
  • 885
  • 9
  • 13
2
votes
1 answer

Can't find gem 'rake' after running bundle install

Environment: Bash for Windows 10 I'm trying to setup a Ruby environment on my workstation from a client repository. I ran bundle install to install all the gems in rbenv. I then run rake, which was supposed to install during the process and receive…
Griffin
  • 710
  • 2
  • 15
  • 29
2
votes
2 answers

remove and reinstall rubygems (reinstall RVM)

I ran into a problem with some gems, so I was told I should remove them with rm -rf ~/.rvm. What do I have to do now in order to reinstall the gems? I instinctively ran bundle install in the directory where my Gemfile is, but, of course, it gives me…
nintschger
  • 1,786
  • 5
  • 30
  • 45
2
votes
1 answer

Update Jekyll project local

I try to update my local Jekyll version in my projects. First i run gem update jekyll in iTerm to update Jekyll. This works. But how do I update the version in my project? Is there any command for the command line or should I change the new version…
user3473628
  • 113
  • 10
2
votes
1 answer

nokogiri-1.7.0.1 requires ruby version >= 2.1.0, which is incompatible with the current version, ruby 2.0.0p648

Getting this error when I run bundle install in a project nokogiri-1.7.0.1 requires ruby version >= 2.1.0, which is incompatible with the current version, ruby 2.0.0p648 I use rbenv and ruby -v ruby 2.1.0p0 (2013-12-25 revision 44422)…
Jitendra Vyas
  • 148,487
  • 229
  • 573
  • 852