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

Bundler not working: in `[]': undefined method `[]' for false:FalseClass

I'm having some troubles with my Rails app after installing (and removing) Compass. bundle install gives me the following: /Users/[..]/.rvm/gems/ruby-1.9.2-head@rails3beta/gems/bundler 1.0.0.beta.2/lib/bundler/settings.rb:10:in `[]': undefined…
Mattias
  • 131
  • 1
  • 6
2
votes
0 answers

capistrano deployment error after Bundler upgrade and adding source block

The latest branch of my project includes changes to the Gemfile based on the upgrade to Bundler 1.10.5, notably the use of a source block for two internal gems. This appears to be the cause of a problem when attempting to deploy to the testing…
joanwolk
  • 1,105
  • 1
  • 15
  • 26
2
votes
1 answer

Why exclude tests from gemspec files?

Bundler's gemspec template provides the following as the default for specifying a gems files: spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } A lot of other (seemingly irrelevant) files like the…
fny
  • 31,255
  • 16
  • 96
  • 127
2
votes
1 answer

bundle install hangs inexplicably

I am on RHEL 6, and have built Ruby from source and installed into /usr/local. The server I am on does not have outside internet access, EXCEPT to access Rubygems.org. That is the only outside connection it is permitted to make. This is a corporate…
user2993456
2
votes
0 answers

Cannot call bundle by jruby-complete-1.7.21.jar

I've read http://spin.atomicobject.com/2013/04/24/bundler-jruby-complete/ and installed faraday, rspec and bundler gems with commands like: export GEM_HOME=/var/lib/tomcat6/shared/gems export GEM_PATH=/var/lib/tomcat6/shared/gems java -jar…
zuba
  • 1,488
  • 1
  • 17
  • 50
2
votes
2 answers

This version of GitLab depends on gitlab-shell 2.6.3, but you're running Unknown. Please update gitlab-shell

I have perfomed git clone https://github.com/gitlabhq/gitlabhq.git and executed bundle install.Then I executed bundle exec rake db:migrate in Ubuntu. I got this warning ~/Siva/Clone/gitlabhq$ bundle exec rake db:migrate WARNING: This version of…
Sivakumar K
  • 131
  • 1
  • 2
  • 9
2
votes
1 answer

Segmentation fault on ruby installed with rbenv

I use ruby 1.9.3 in a rails application. I successfully installed ruby using rbenv and gcc 4.2 on OSX Yosemite and could install dependencies with bundler. When I try to setup the database I get the following error: bundle exec rake db:setup foo…
juanedi
  • 253
  • 3
  • 8
2
votes
1 answer

bundler and rvm are using different rubies

I have the gist of the difference between rvm and bundler. On my local machine, I use rvm to manage different rubies and different gemsets for those rubies. For example I have a ruby 2.1.2 with a gemset called core: $ rvm-prompt ruby-2.1.2@core $…
Donato
  • 2,727
  • 6
  • 29
  • 59
2
votes
2 answers

"Unable to require openssl" when trying to install ruby gems on OS X

Since I upgraded to OS X 10.10 Yosemite, I get the following error when trying to install a ruby gem: ERROR: While executing gem ... (Gem::Exception) Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS…
jdeleon
  • 63
  • 2
  • 7
2
votes
2 answers

How to get bundler to always pull latest commit from private gem repo

Is this possible force bunlder to always get the latest commit? Something like: gem "gemname", :git => "git@bitbucket.org:/username/gemname.git", ref: :force-latest
newUserNameHere
  • 17,348
  • 18
  • 49
  • 79
2
votes
2 answers

Ruby imported project is asking for Puma

I just got into a new project where I have to learn Ruby. I did some tutorials and everything went fine. I was even able to create a Webserver for my newborn application. But, when I imported the project(using GIT) and tried to run it, I find myself…
2
votes
0 answers

Bundler "stalls" / "freezes" after installing a couple of gems

I'm running $ bundle install in a directory with a Gemfile that contains only one gem: $ cat Gemfile source 'https://rubygems.org' gem 'rails', '4.2.1' here is a pastebin from the DEBUG_RESOLVER=y bundle install --verbose output. This process is…
wpp
  • 7,093
  • 4
  • 33
  • 65
2
votes
1 answer

gulp-compass asking for Ruby and Compass in PATH when they are already there

I'm trying to get gulp-compass to work on my Debian linux but am getting an error message stating that Ruby and Compass must be in the path. I am a bit of a beginner when it comes to Gulp so is probably me being stupid. The following is the exact…
2
votes
1 answer

What's the point of the --without option in bundle install?

If your app doesn't need the gems in a certain group, why can't you just let bundler install them with a regular bundle install, and then simply not use them? Is it just a cleanliness issue - i.e. not installing extra things you don't need - or can…
Tyler
  • 2,579
  • 2
  • 22
  • 32
2
votes
2 answers

Gemfile not found when running Cron job with Capistrano 3 and whenever gem

My cron job works fine on my local machine after running whenever -w, after deploy to my VPS, I get this error, release 20150415044915 doesn't exist. any idea? I looked at my crontab -e, the path also looks fine where 20150502114703 is the correct…
user1883793
  • 4,011
  • 11
  • 36
  • 65