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 - Resolving Dependencies from different sources

My company has a private Gem-in-a-box server where multiple teams can share internally created gems. Recently, a gem has been added to this server which I want to use. It turns out, this gem has a dependency on net-ssh and net-scp, which are…
mount986
  • 65
  • 1
  • 1
  • 10
2
votes
0 answers

How to 'pre-bundle' a rails app

I'm trying to bundle a rails app on an Ubuntu staging server, so that I can more or less just copy the whole thing to the production server. Reason: I do not have privileges to install gems on production, being a managed server. So, I ran bundle…
henrik242
  • 366
  • 4
  • 11
2
votes
0 answers

RubyMine (7.0.4) is failing to install cmdparse because it requires Ruby 2.0.0

The project is using Ruby 1.9.3 and I can't change that. I'm using sauce and sauce-connect. I think they are bringing in cmdparse (3.0.1). I only get an error when running bundle install from RubyMine. I can run this command from bash (Mac) with no…
user3574948
  • 31
  • 1
  • 4
2
votes
1 answer

Capistrano fails to deploy due to a bundler error: "An error occurred while installing json...", but I am able to install that manually

I am rails and capistrano novice and the whole day today I've ruined trying to make all this stuff work. For now I have a problem that I simply don't have any idea how to solve. Syptom: cap staging deploy ... lots of stuff goes here and…
Roman Reimche
  • 143
  • 1
  • 13
2
votes
0 answers

Could not find thread_safe-0.3.5 in any of the sources

I get this error while running cap production deploy on a Ubuntu 14.04 server. It seems like a similar issue to here, but I've tried all the answers here but can't get it working Could not find thread_safe-0.3.0 in any of the sources. (Backtrace…
Andy
  • 127
  • 3
  • 9
2
votes
1 answer

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension Linux Mint

While running bundle install i am getting the following error. Running on Linux Mint 17.0 Rails 4.0.2 Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /home/dubzero/.rvm/rubies/ruby-2.0.0-p643/bin/ruby extconf.rb…
Alexandr S
  • 309
  • 4
  • 10
2
votes
1 answer

Rails Beta3 & PaperClip & Passenger Bundler::PathError

So I'm going around in circles with this - I'm using a fork of the Paperclip Rails gem to get it to work with Rails3. Works fine on my OSX box with Passenger. But on my server (CentOS 5) I get this this error: git://github.com/lmumar/paperclip.git…
firecall
  • 753
  • 1
  • 8
  • 22
2
votes
1 answer

When using Bundler and Rails 2.3.5 I get uninitialized constant SubdomainFu when migrating

I'm using bundler with rails 2.3.5 and I'm trying to make sure everything is working correctly but when I do a "rake db:migrate --trace" I get this ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment rake…
user347480
  • 102
  • 9
2
votes
1 answer

Cannot install kgio gem 2.9.2 ? Help please?

I cloned from github a website I made several months ago with a mac computer. Now I am using windows and I decided to run bundle install However I have not been able to download the kgio gem version 2.9.2 . Here is the log from…
codigomonstruo
  • 1,081
  • 1
  • 11
  • 45
2
votes
1 answer

Why do some methods in my locally edited gem not appear in my Rails console?

I am working with a gem in my Rails project and I am modifying the gem locally. In my Gemfile, I have: gem 'ancestry', path: '/Users/me/.rvm/gems/ruby-2.1.5@test_tree_app/bundler/gems/ancestry-eb5a3e448112' When I run bundle I get this: Using…
marcamillion
  • 32,933
  • 55
  • 189
  • 380
2
votes
0 answers

bundler-audit for insecure source

I want to use bundler-audit for auditing my Gemfile.lock but I have my own gems repository. When I run bundler-audit It always give me this error or notification: Insecure Source URI found: http://gems.repository.cu/ Unpatched versions…
Robert
  • 10,403
  • 14
  • 67
  • 117
2
votes
0 answers

How to ensure a gem's executable loads the dependencies from the gemspec?

In my gem's gemspec, I specify a dependency of another gem (anothergem) with an explicit version, say 1.12.2. If the system already has anothergem version 1.12.1, my gem's executable will require the wrong version. So, How can I ensure my gem's…
andrhamm
  • 3,924
  • 4
  • 33
  • 46
2
votes
3 answers

Decoupling Gemfile bundle errors

Given a gemfile of : source 'https://rubygems.org' gem 'rails', '4.1.1' group :development, :test do gem 'railroady' gem 'sqlite3' gem 'jasmine' # For linux support gem 'therubyracer' end group :production do gem 'pg' gem…
chris Frisina
  • 19,086
  • 22
  • 87
  • 167
2
votes
1 answer

Error while bundle install on server

I installed RVM on server. Then put all code of application. Goto application folder and type bundle install i got below error. root@xxx:~/myprj# bundle…
user1780370
  • 851
  • 1
  • 17
  • 27
2
votes
1 answer

Bundler error when executing berks command from a rake task on windows

I wrote a rake task to execute the berks package command on a Berksfile in a sub-directory: task :cook do `berks package ./cookbooks.tar.gz -b ./cookbook/Berksfile` end I've also tried these variations: task :cook do …
JoelWilson
  • 404
  • 3
  • 13