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
0 answers

bundler error when deploying to production with capistrano

I'm trying to get my rails app (created by DigitalOcen one click installer) to up and running, but I'm keep on getting this error in unicorn.log You have already activated kgio 2.8.1, but your Gemfile requires kgio 2.9.2. Prependingbundle execto…
sameera207
  • 16,547
  • 19
  • 87
  • 152
2
votes
1 answer

cannot load gems in test environment

My app works. I was able to run tests before, and now for some reason I can't. What happened between now and then is that I vendorized activesupport (but I have since undone those changes, and in fact I am in a totally separate/unrelated…
user664833
  • 18,397
  • 19
  • 91
  • 140
2
votes
2 answers

Run `bundle` system command in subfolder

I am attempting to run bundle in a subfolder of my ruby project, but it appears to be running in the context of my initial directory even though I have changed the current working dir to the subfolder. # change directories and run bundle in a sub…
random-forest-cat
  • 33,652
  • 11
  • 120
  • 99
2
votes
1 answer

How can I get bundler to use the tilder operator when the gem version isn't semantic?

As of the writing of this question, the latest sass-rails version is 5.0.0.beta1. I want to update my Gemfile to use this version but also have it continue to use later releases of sass-rails v5 as and when they become available. For the moment,…
sameers
  • 4,855
  • 3
  • 35
  • 44
2
votes
2 answers

Prevent bundler from upgrading gems

I'm working on a project and we've just updated bundler to version 1.7.0. There was a few days of trouble in getting all the gemfiles/gemfile.locks in a correct state, but I'm still having trouble with one issue in particular. If there are…
dax
  • 10,779
  • 8
  • 51
  • 86
2
votes
2 answers

Does 'bundle install' install all the required gems on my computer permanently?

I am new to rails and am learning about bundler. I understand that bundle install installs all the gems specified in the gemfile but where does it install them to? Does it install them on my computer permanently so that they can be used by any…
Cu1ture
  • 1,273
  • 1
  • 14
  • 29
2
votes
1 answer

Installing a dev version of Vagrant but bundler doesn't seem to be installing the vagrant gem from source

I am trying to get a hackable installation of vagrant working on my machine. It uses bundler, and in its Gemspec it refers to the remote "." to add itself as a gem. The bundle install command seems to be working, but the "vagrant" gem doesn't seem…
mattalxndr
  • 9,143
  • 8
  • 56
  • 87
2
votes
1 answer

need to require gem in the application even though gemspec adds it as a runtime dependency?

I have a gem say 'A' is used in the gem and the gemspec file adds a runtime dependency saying s.add_dependency 'A', '~> 1.0' I get an error saying some file/class was not found the in the gem when I run my application. This error goes away when I…
Vinay
  • 41
  • 5
2
votes
0 answers

bundler gem not rehashing into rbenv shims

Setting up rbenv on a Digital Ocean droplet and installing bundler, I can't get rbenv to add bundler to the shims or be able to run rbenv exec bundle install Versions: Ubuntu 14.04 rbenv 0.4.0-98-g13a474c deploy$ gem -v 2.2.2 deploy$ ruby -v ruby…
Josh
  • 655
  • 5
  • 17
2
votes
2 answers

Bundler: list gems in a group

For example, I have the following Gemfile: source "https://rubygems.org" group :example_group do gem 'example_gem' gem 'another_example_gem' end How can I list all gems inside :example_group in Ruby? Not really looking for a shell command.
Ace Subido
  • 86
  • 9
2
votes
1 answer

Rails Console cannot find activesupport-4.1.2 even though it is installed

When I run the Rails 4.1.2 server, I get no errors. However, if I run 'rails c', I get the following error: Could not find activesupport-4.1.2 in any of the sources Run `bundle install` to install missing gems. What's strange is that…
Ten Bitcomb
  • 2,316
  • 1
  • 25
  • 39
2
votes
0 answers

Install gem for all installed ruby versions?

I have a setup script that downloads the files for a number of rails apps. For various reasons, the apps are on different versions and it needs to remain that way. It is possible to search the .ruby-versions files to determine all the required…
Nathan Tornquist
  • 6,468
  • 10
  • 47
  • 72
2
votes
3 answers

Install bundler with rbenv/ruby-build

I've installed rbenv and downloaded a ruby using ruby-build, e.g. rbenv global 1.9.3-p448 gem env # This show my customized ruby gem paths instead the system one, # so it works! Then I install bundler, # gem install --no-ri --no-rdoc…
Ryan
  • 10,041
  • 27
  • 91
  • 156
2
votes
2 answers

Accessing Rails Console in production

I am using Capistrano 3 to deploy a rails app, and I have run into a problem when trying to access the rails console on my VPS. When I run: rails console production I get an error that require relative can't load the file config/boot.rb. The…
kempchee
  • 470
  • 1
  • 4
  • 17
2
votes
2 answers

bundle install creating a 'parallel' folder in the rails app

I'm currently working on a project which was changed from ruby version 2.0.0 to ruby verion 2.1.1, i'm using rvm for maintaining my ruby versions. After installing ruby 2.1.1, I ran gem install bundler which installed version 1.6.2, doing so I had…
rajesh023
  • 704
  • 1
  • 5
  • 15
1 2 3
99
100