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
1 answer

Could not find gem 'neo4j-enterprise (>= 0) ruby'

When I run gem install neo4j-enterprise the gem cannot be found: ERROR: Could not find a valid gem 'neo4j-enterprise' (>= 0) in any repository All other gem install perfectly fine, this is the only one that fails. Nevertheless it should be…
Tobias Gassmann
  • 11,399
  • 15
  • 58
  • 92
2
votes
1 answer

How to specify source for a dependency declared in gemspec?

Bundler since v1.7 issues a warning when more than one global source is specified in the gemfile. You can use source blocks to specify which gems should come from a given source, but the source option for individual gems does not work in the…
myconode
  • 2,518
  • 1
  • 26
  • 28
2
votes
1 answer

How to get bundle_path from rbenv setting in Capistrano deploy.rb?

Since I have require capistrano-bundler and capistrano-rbenv gems, and have set as follow in deploy.rb file: # rbenv set :rbenv_type, :user set :rbenv_ruby, '2.0.0-p645' set :rbenv_prefix, "RBENV_ROOT=#{fetch(:rbenv_path)}…
kimimaro
  • 1,263
  • 2
  • 12
  • 21
2
votes
2 answers

How can we run a rake task of one application through another application (both running on the same server)?

Issue : I have two applications A & B both running on the same server. I have a script in the filesystem cd /data/B/ bundle exec rake -T When i run the script through the rails console of application A it errors as the console loads the gems of A…
PrashantG
  • 91
  • 6
2
votes
1 answer

Issue with docker and bundler

I'm running some issues with docker/docker-compose and bundler. After building my image I can run the rails server correctly without any issue, but, when I try to run a console with rails console I constantly get: Could not find i18n-0.7.0 in any of…
bilby91
  • 904
  • 1
  • 8
  • 20
2
votes
1 answer

Why won't Bundler install vPim?

I have the following in my Gemfile: clear_sources bundle_path "vendor/bundler_gems" source "http://gemcutter.org" ... gem "vpim", "~> 0.658" # a whole bunch of other gems When I run gem bundle, I get everything installed except…
James A. Rosen
  • 64,193
  • 61
  • 179
  • 261
2
votes
1 answer

Bundle update downgrades a gem

I had an annoying bug in my app which caused static code to apear in my HTML. After a long time of bug hunting and trying things I finally found what caused the error. The problem lies in the sprocket version. In my Gemfile.lock I have sprockets…
Peter Boomsma
  • 8,851
  • 16
  • 93
  • 185
2
votes
1 answer

Bundler range <= 1 || >= 3

Is there a way to specify a below X or above Y (if available) for a gem via Bundler? For example I'd like to do something like this, but not sure of the syntax and can't find any examples: gem 'nokogiri', '<= 1.6.3.1', '>= 1.6.7' Variations on this…
Meltemi
  • 37,979
  • 50
  • 195
  • 293
2
votes
1 answer

Error installing Nokogiri via Bundler on Windows

I'm trying to set up and run the Extreme Startup coding dojo on my Windows machine. When I reach the bundle install step, I get this error message: $ bundle install Fetching gem metadata from https://rubygems.org/............ Fetching version…
Mark Seemann
  • 225,310
  • 48
  • 427
  • 736
2
votes
1 answer

Cucumber features failing "undefined method `Factory'" with bundler, rails 2.3.5

rake cucumber --trace output: /usr/bin/ruby1.8 -I "/home/vadim/.bundle/ruby/1.8/gems/cucumber-0.8.3/lib:lib" "/home/vadim/.bundle/ruby/1.8/gems/cucumber-0.8.3/bin/cucumber" --profile default Using the default profile... ... Given I signed up with…
Vadim
  • 41
  • 5
2
votes
0 answers

Require is failing when higher level path is not specified

I'm stumped on this issue and am hoping someone has seen it before. I'm using rvm and bundler, same as coworkers, but this is happening to me and not them. I can't figure out what weird configuration I have. The issue has happened several times with…
Jillian
  • 21
  • 1
2
votes
2 answers

Pretend other platform for `bundle install`

I am developing with bundler under Windows and am wondering how to create the Gemfile.lock for my production environment. What seems missing are the gems for other platforms. Running bundle install on group :production do gem 'mysql2' end on…
Christopher Oezbek
  • 23,994
  • 6
  • 61
  • 85
2
votes
2 answers

Requiring gem in Rails 3 Controller failing with "Constant Missing"

I've seen this asked a few times in other threads, but none of the answers seem to apply. Environment: Rails 3 amazon/ecs gem from jugend. The lone file is here: http://github.com/jugend/amazon-ecs/blob/master/lib/amazon/ecs.rb my gemfile has:…
Jeff D
  • 2,164
  • 2
  • 24
  • 39
2
votes
1 answer

Rake : List / Remove custom rake task in specific environment (development / production )

Is there any way to make my custom rake tasks only listed in development environment but not in production and QA? I mean, when I invoke bundle exec rake -T in qa or production env, it should not list my custom rake tasks but it should in…
Shiva
  • 11,485
  • 2
  • 67
  • 84
2
votes
1 answer

Could not find gem installed with bundler

For my PHP Symfony Application I need Compass and Sass. Both should be installed in the vendor/bundle folder of my project. This is what I did so far: $ gem install bundler Successfully installed bundler-1.10.6 1 gem installed $ bundle install…
van
  • 380
  • 3
  • 10