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

what is the quickest way to get up and running with rails

What is the quickest way to get up and running with rails? (on a fresh linux instance from eg. ec2) Here's what I have now: (the number at the front indicates the number of seconds it took) 005 gpg --keyserver hkp://keys.gnupg.net --recv-keys…
SamLosAngeles
  • 2,660
  • 2
  • 14
  • 12
2
votes
1 answer

Bundler caching on Travis CI with multiple gemfiles

The new docker-based build environment supports bundler caching on open source projects. I'm trying to enable it in a pull request but it fails. I don't know if it can be used when using a build matrix with multiple Gemfiles: gemfile: -…
nathany
  • 539
  • 5
  • 16
2
votes
1 answer

Why is bundler insisting on an exact gem version number when the gemspec states an open constraint?

I'm contributing to the Ruby gem koudoku and trying to get Travis CI to work. The gem was set up with Travis a few days ago but all builds are failing with this error message (example): Bundler could not find compatible versions for gem "rack": …
GMA
  • 5,816
  • 6
  • 51
  • 80
2
votes
0 answers

Bundler resolving dependencies issue

Provided this simple Gemfile: source 'http://rubygems.org' gem 'rails', '~> 4.1.0' gem 'comfortable_mexican_sofa', '~> 1.12.3' It stupidly fails with this: Bundler could not find compatible versions for gem "i18n": In Gemfile: …
Grocery
  • 2,244
  • 16
  • 26
2
votes
0 answers

Mina - Foreman - Bundle Command Not Found Error

I'm using ruby 2.1.5 mri, and mina (0.3.1). rbenv 0.4.0-129-g7e0e85b, and rbenvsudo plugin. But cannot deployed properly, foreman cannot initalize bundler. What is the problem in here? Here is the mina verbose output; Mina trace output ----->…
Seyhun Akyürek
  • 851
  • 9
  • 17
2
votes
1 answer

Bundler could not find compatible versions for gem "rubyzip"

I tried to add docx-html gem to my project and here's what I get while bundle install: Bundler could not find compatible versions for gem "rubyzip": In Gemfile: zip-zip (>= 0) ruby depends on rubyzip (>= 1.0.0) ruby docx-html (>=…
Sergey
  • 47,222
  • 25
  • 87
  • 129
2
votes
1 answer

Two separately namespaced Gemfiles in one Rails app?

I need to require these two gems in my Rails 3.2 app: gem 'google-adwords-api' gem 'netsuite' However, they conflict on the versions of the savon gem. Bundler spits out this: Bundler could not find compatible versions for gem "savon": In…
2
votes
0 answers

Can't use bundler gems inside nodejs buildpack (using buildpack-multi)

I'm trying to deploy an app to Heroku that is using bundler to install SASS/Compass and gulp.js (with gulp-ruby-sass to build the CSS files on deploy. The Ruby buildpack executes first and installs the gems but bundle/vendor/bundle isn't added to…
Andrew Ryno
  • 659
  • 1
  • 7
  • 17
2
votes
1 answer

Is it possible to install gems with Bundler and tell it to use a specific compiler for a specific gem?

I am unable to install my gem bundle on my new Mac running Yosemite, because one gem only installs with the C compiler that shipped with the OS, while another requires the C compiler from Homebrew. I am unable to work at all simply because of this…
RubyRedGrapefruit
  • 12,066
  • 16
  • 92
  • 193
2
votes
0 answers

libruby.so.1.9: cannot open shared object file: No such file or directory - vendor/bundle/ruby/1.9.1/gems/pg-0.17.1/lib/pg_ext.so (LoadError)

I have a RoR (4.1) app that I'm trying to deploy, using Passenger & Nginx. I'm trying to avoid running "bundle install" on the web server. I ran "bundle install --deployment" on my build server, zipped up the whole folder and shipped it to the web…
grahamrhay
  • 2,046
  • 4
  • 19
  • 29
2
votes
1 answer

execjs - Could not find a JavaScript runtime

I have a RoR (4.1) app that I'm trying to run using Passenger & Nginx. I want to do the bundling on my CI server (jenkins), but when I copy the files across I get the dreaded: Could not find a JavaScript runtime. See…
grahamrhay
  • 2,046
  • 4
  • 19
  • 29
2
votes
1 answer

why does bundler keep "changing" Gemfile.lock with no real change?

I keep running into this every time I run some rake or bundler but there's nothing different about the old vs new and it's always this same gem, I've even committed those changes before and it still shows up $ git diff diff --git a/Gemfile.lock…
geermc4
  • 578
  • 6
  • 18
2
votes
1 answer

How to force a version in Bundle Gemfile?

This is my Gemfile: source 'https://rubygems.org' gem 'jekyll', '~> 2.4.0' gem 'fontcustom', '~> 1.3.3' This is what I'm getting: $ bundle update Fetching gem metadata from https://rubygems.org/........... Fetching additional metadata from…
yegor256
  • 102,010
  • 123
  • 446
  • 597
2
votes
2 answers

Bundler unable to find custom gem

I have a custom gem built as a .gem file that I am trying to reference from my Gemfile. I have placed the .gem file, along with the .gemspec, in the vendor/gems folder. My Gemfile has the following line: gem 'umlgrader', '1.0.0',…
mattherman
  • 456
  • 4
  • 15
2
votes
1 answer

Running "bundle install" changes "git://" to "https://" in Gemfile.lock

When I run bundle install, the URLs in Gemfile.lock that begin with remote: git://github.com change to remote: https://github.com. Because I'm working on a project with other people, I can't commit these changes. How do I force Bundler to use the…
Patrick Brinich-Langlois
  • 1,381
  • 1
  • 15
  • 29
1 2 3
99
100