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

Puma won't start through capistrano

Puma fails all the time when trying to install with capistrano but when i try the same command capistrano uses in the current directory puma starts successfully. bundle exec puma -C /home/deploy/apps/petfriend/shared/puma.rb --daemon Here is a…
Petros Kyriakou
  • 5,214
  • 4
  • 43
  • 82
2
votes
3 answers

Deploying on Heroku, how to specify ruby version to use for bundler?

Something has changed recently on Heroku. I can't deploy my app as I've done before: me@host my-project (master) $ git push staging master Counting objects: 52, done. Delta compression using up to 8 threads. Compressing objects: 100% (51/51),…
fro_oo
  • 1,610
  • 4
  • 24
  • 46
2
votes
0 answers

bundle exec irb vs bundle exec rails console

This link is great. However, there is a problem that I am having that I can not figure out. There are gems that I set in my Gemfile that rails seems not to recognize. When I navigate to my rails application and run these two commands they give me…
user2517182
  • 1,241
  • 3
  • 15
  • 37
2
votes
1 answer

An error occurred while installing puma (2.11.1), and Bundler cannot continue

After running bundle install --path vendor it's showing following error. I'm using macOS Sierra. This problem occurred after update homebrew. I've uninstalled currently installed puma from my gem list. But the same problem occurred…
2
votes
1 answer

Show message on bundle install in an app

Hello Friends! I am new to ruby and bundler, I am currently working on a project where I am suppose to show a message after someone runs bundle install on the project i.e. user download my app and runs 'bundle install' then after gems are…
Sajid
  • 379
  • 4
  • 18
2
votes
1 answer

Bundler can't see gems installed in dockerized environment

I have a pretty basic "app" which i'm trying to dockerize using some examples found on the internet but, for some reason, it seems that bundler can't see the gems installed in my env. Gemfile source 'https://rubygems.org' gem…
mbajur
  • 4,406
  • 5
  • 49
  • 79
2
votes
0 answers

Ruby bundle install: An error occurred while installing debug_inspector (0.0.2)

I'm trying to run bundle install on my windows 10x64 and I keep getting this error: Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current…
2
votes
0 answers

Errno::EIO: Input/output error - sendfile on running bundle install

--- ERROR REPORT TEMPLATE ---------- - What did you do? I ran the command /home//.rvm/gems/ruby-2.3.1@appname/bin/bundle What did you expect to happen? I expected Bundler to install gems listed in my Gemfile What happened…
2
votes
2 answers

Extremely slow bundler 1.0.3 (Bundler.require) with around 100 gems in Rails 3.0.1 and Ruby 1.9.2

I am using Rails 3.0.1, Bundler 1.0.3 and Ruby 1.9.2p0 (2010-08-18 revision 29036). Everything was fine and fast until I started adding Devise & Omniauth. From that on everything involving initializing Bundler (calling Bundler.require as in…
fredostarr
  • 464
  • 1
  • 3
  • 9
2
votes
4 answers

'Could not find gem' error when specifying a forked version of a gem from Github in my gemfile

I am trying to use this forked version of the searchlogic gem. In my gemfile, I have gem "searchlogic", :git => "http://github.com/railsdog/searchlogic.git" when I do bundle install, I get this error: Could not find gem 'searchlogic (>= 0,…
ben
  • 29,229
  • 42
  • 124
  • 179
2
votes
0 answers

Bundle install failing due to issue with kgio gem

I run bundle install with a setup that I've been using for a while on another machine. I've updated to Ruby 2.3.0, on macOS Sierra. Most of the gems install fine, but then I get this error with the kgio gem: Installing kgio 2.10.0 with native…
Andrew
  • 7,693
  • 11
  • 43
  • 81
2
votes
2 answers

How to resolve bundler gem version conflict with json gem

I want to update the json gem to version 2.0.2 in my app. It is currently loaded as a dependency at version 1.8.3. So, I added gem 'json', '>= 2.0.2' to my Gemfile and I type bundle update json and I get Fetching gem metadata from…
Streamline
  • 2,040
  • 4
  • 37
  • 56
2
votes
1 answer

How to tell bundler to use installed mswin32 version of a gem?

I did the: gem install hpricot --platform=mswin32 It's correctly listed when I do gem list: *** LOCAL GEMS *** abstract (1.0.0) actionmailer (3.0.0) actionpack (3.0.0) activemodel (3.0.0) activerecord (3.0.0) activeresource (3.0.0) activesupport…
Matt
  • 5,328
  • 2
  • 30
  • 43
2
votes
1 answer

How to install newest version of gems not mentioned in Gemfile.lock with bundler

When I add a gem to a project's Gemfile for the first time, but I have installed the gem previously while working on another project, it uses the existing version of the gem, rather than the latest version of the gem available. For example, using…
Andrew Grimm
  • 78,473
  • 57
  • 200
  • 338
2
votes
2 answers

Rails - mysql2 installation error

I have recently installed rvm to use rails5 along with rails3.x version in my current system. When i tried to create new rails5 application, i have got the below error Could not find proper version of railties (3.2.13) in any of the sources Run…
Himanth Kumar
  • 316
  • 2
  • 13