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

Gem install configuration in Gemfile

When I run bundle install, I get errors with the pg gem (it needs to know where pg_config is located). I can easily resolve that by installing it manually gem install ... --with-pg-config=..., but I'm getting the same error when pushing to Heroku…
2
votes
4 answers

bundle update failing for github-pages

I'm trying to run bundle update as described at https://help.github.com/articles/using-jekyll-with-pages/ to update the github-pages gem on my Mac OS X 10.11.1. I get this error... pschloss@polypay schlosslab.github.io (master) $ bundle…
Pat S
  • 490
  • 4
  • 15
2
votes
2 answers

Extract bundled gems into system gems

This might sound as a strange thing to do. Is there a bundler way to extract the bundled gems (from a Gemfile or from .bundle) and install them as system gems outside of the bundler context? Something like bundle package, but instead of caching them…
Samer Buna
  • 8,821
  • 9
  • 38
  • 55
2
votes
2 answers

jquery-ui gem: File to import not found or unreadable: jquery-ui/autocomplete

In development, I can't figure out how to make the jquery-ui gem to make it's sweet magic available. I included the gem in the project Gemfile, typed bundle install, updated app/assets/stylesheets/application.scss to have the line: @import…
2
votes
1 answer

Can't Install Bundler, no permissions

Im using Ubuntu 15.10. This is the code I write in the terminal gem install bundler ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /var/lib/gems/2.1.0 directory. Why is it trying to install…
Alejandro Veintimilla
  • 10,743
  • 23
  • 91
  • 180
2
votes
2 answers

Bundler using binstub generated for a different gem using Middleman

I am using Middleman to build a project. I receive this message any time I run a Middleman command: Bundler is using a binstub that was created for a different gem. This is deprecated, in future versions you may need to `bundle binstub…
luke
  • 1,513
  • 2
  • 20
  • 38
2
votes
2 answers

How to disable "bundle check" in circleci config/yaml file

I use a private gem in an application, which is located at a private gem server. There is no access to that gem server outside of VPC. In my Gemfile I put the private gem inside a custom group: group :private do source…
user1476061
2
votes
1 answer

How do I keep track of Bundler API changes?

Please bear with me, I'm a gem authoring noob. Thus far, I haven't even been able to find formal Bundler API documentation, so I'm having a hard time adhering to best practices and knowing what commands do what, and what api changes are happening…
brad
  • 31,987
  • 28
  • 102
  • 155
2
votes
0 answers

`sources` in .gemrc file appears to not be working

I cloned a repo with a very simple Gemfile: # Gemfile gem "rspec" Running bundle install threw this error: $ bundle install Your Gemfile has no gem server sources. If you need gems that are not already on your machine, add a line like this to your…
RobertAKARobin
  • 3,933
  • 3
  • 24
  • 46
2
votes
1 answer

Sinatra, Bundler and BUNDLE_PATH confusion

I am having trouble configuring Sinatra to use Bundler. I am confused as to where Gems should be being installed? I've read both this question and this documentation. My Gemfile looks like: source "http://rubygems.org" gem "sinatra" gem…
aaronrussell
  • 9,389
  • 5
  • 38
  • 62
2
votes
1 answer

bundler: command not found: rails with docker-compose on a sample project

I'd like to develop a rails app using docker so I don't have to install a database locally. Therefore I created the following basic example (new rails app): https://gist.github.com/solars/62eeae2f86ab6ec3fa35 As you can see there is a problem with…
chbla
  • 357
  • 1
  • 4
  • 11
2
votes
3 answers

Conditionally setting require: true in Gemfile

I'd like to conditionally set require: in my Gemfile definition depending on the environment to work in conjunction with Bundler.require. E.g. i'd like pry to be available in all environments but only have require: true set in development and test.…
Nick Tomlin
  • 28,402
  • 11
  • 61
  • 90
2
votes
2 answers

Failed to build gem native extension - solution

When I install gem it fails with error ERROR: Failed to build gem native extension. For example, when I try to install gems json, eventmachine, mysql2 on a new server it almost always fails. NOTE: This is a QA-type question, i.e.…
Yaro Holodiuk
  • 568
  • 6
  • 15
2
votes
1 answer

Could Not Find Gem, but Gem is Installed without Problems

Whenever I run the rails server or the specs, I get this error: Could not find debugger-1.6.8 in any of the sources When I run gem install debugger, it works just fine: Building native extensions. This could take a while... Successfully installed…
j will
  • 3,747
  • 11
  • 41
  • 64
2
votes
0 answers

Bundler is ignoring --path option

I'm using Bundler 1.10.6, and I'm attempting to set up an alternate Gemfile, to keep all of my debugging gems out of the project Gemfile that my team is using. In my project, I have the typical Gemfile and Gemfile.lock files, and the gems are being…