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

Rubygems and Bundler: Slow startup

Edit: Somewhat different (and fewer) bottlenecks with Bundler 1.0.9 instead of 1.0.3. I'm terribly annoyed by Rails's slow startup time (since I run tests repeatedly), so I'm trying to find out the culprit is using poor-man's profiling, by running…
Jo Liss
  • 30,333
  • 19
  • 121
  • 170
2
votes
1 answer

Webpack unable to bundle due to SyntaxError

I was interested in learning Django + ReactJS on Windows, so I followed this step by step tutorial. Now, I'm on the bundling stage. When I run my bundler as a quick sanity check: $ node_modules/.bin/webpack --config webpack.dev.config.js I get…
amjadcas
  • 23
  • 6
2
votes
1 answer

Bundle error, undefined method 'tsource'

Help, I can't get past this bundler error: Gemfile:1:in `build': undefined method `tsource' for # (NoMethodError) from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler.rb:128:in `definition' from…
Jayson Bailey
  • 994
  • 10
  • 23
2
votes
2 answers

How to load packages installed by `bundle` in webpack?

In a Ruby on Rails application, how can we require or import a package which was not installed via npm or yarn, but via bundle? I tried: //= require package-name But that doesn't seem to work with webpacker. require("package-name") doesn't work…
Ionică Bizău
  • 109,027
  • 88
  • 289
  • 474
2
votes
2 answers

Gem dependencies incompatibality during upgrade of rails 4.2.10 to rails 5.0.0

I am in a middle of a process of upgrading our rails 4 app. Following the rails upgrade guide, I have updated current rails version in a gemfile replacing 4.2.10 with 5.0.0. But after running bundle update rails, I am getting many incompatibility…
Swaps
  • 1,450
  • 24
  • 31
2
votes
1 answer

How to specify no ri/rdoc exists for a gem so user doesn't get warning when trying to install

A gem I'm authoring doesn't have any inline ri/rdoc of any kind, so when users gem install it they get warnings when rubygems tries to compile the docs: Successfully installed mygem-0.0.1 1 gem installed Installing ri documentation for…
tfe
  • 32,666
  • 2
  • 27
  • 24
2
votes
2 answers

gem not installing

Ok i keep getting this error Could not find tzinfo-0.3.24 in any of the sources (Bundler::GemNotFound) I am using rvm and i just created a gemset and i have this gem list *** LOCAL GEMS *** abstract (1.0.0) actionmailer (3.0.3) actionpack…
Matt Elhotiby
  • 43,028
  • 85
  • 218
  • 321
2
votes
2 answers

How do I install nokogiri 1.7.0.1 on Ubuntu 16.04.3?

I tried to install with bundle but it gave an error. I do have zlib installed. Fetching nokogiri 1.7.0.1 Your user account isn't allowed to install to the system RubyGems. You can cancel this installation and run: bundle install --path…
Chloe
  • 25,162
  • 40
  • 190
  • 357
2
votes
0 answers

Gemfile option to bypass dependency checks

We have an option to force the gem installation gem install -f -f, -​-[no-]force - Force gem to install, bypassing dependency checks Do we have a similar option in Gemfile. We are trying to install https://rubygems.org/gems/oci/ which…
2
votes
1 answer

problems updating to new version of prawn on production server with bundler

I have updated my code etc to work with the 0.10.2 version and its all working in development. When i deployed to my production server and done a bundle install i still get this errors? git://github.com/sandal/prawn (at 0.10.2) is not checked out.…
rick
  • 463
  • 5
  • 23
2
votes
2 answers

How do I tell bundle install to use the version of Ruby on my PATH?

I'm trying to install my Rails 5 project on Debian. Either running bundle install with or without sudo results in an error complaining about not having the appropriate version of Ruby, even though when I run ruby -v after, you can see the version is…
Dave
  • 15,639
  • 133
  • 442
  • 830
2
votes
1 answer

How to make bundler work again for non root users ? (after mistakenly using it with root)

I am new to Rails , I ran bundler as root by mistake & now it is not working correctly. I tried to use gem uninstall bundler then gem install bundler but still it is not fixed. How to make bundler work again for non root users (after mistakenly…
Ahmed Elkoussy
  • 8,162
  • 10
  • 60
  • 85
2
votes
0 answers

Ruby Native Extension - use other C extension gem

I am writing ruby c extension which has a dependency on another C extension. currently, I am calling the other C extension via rb_funcall I would like to call the C extension's function directly (include its header and call the public function) Is…
Yosi
  • 2,936
  • 7
  • 39
  • 64
2
votes
1 answer

Redmine 3.2.1-2 ob Ubuntu 16.04 breaks on apt upgrade

I have the following setup: Ubuntu 16.04 lxc/lxd host machine running several lxc containers One container runs Redmine 3.2.1-2 on Ubuntu 16.04 guest OS, with Rails 5.0.1 and Bundler 1.13.6 The Redmine database in on an other lxc database…
alfred
  • 91
  • 6
2
votes
1 answer

Ruby Native Extension - Manual Compilation

I created new Ruby C Extension and hosted it in GitHub, and I install via Bundler (gem 'my_cool_gem', git: '..'). But when I run the application (rails s) I get an error - cannot load such file -- my_cool_gem/my_cool_gem My current solution, is to…
Yosi
  • 2,936
  • 7
  • 39
  • 64