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

Sidekiq, Redis, Rails and Ruby - no implicit conversion of Pathname into String

I am trying to get my sidekiq server and client up and running (using Foreman), but whenever it gets to: bundle exec sidekiq The following results: no implicit conversion of Pathname into String Just like that, without Type Error preceding it -…
2
votes
1 answer

Ignore Gemfile `source` if source not accessible

We have an internal gem server to store some organisation specific gems. We use it via a source option in Gemfile: source 'https://local-gems.example.com' do gem 'local-gem' end The internal gem server is only available on the internal network.…
ReggieB
  • 8,100
  • 3
  • 38
  • 46
2
votes
2 answers

Force Bundler to install gems supported by the local Ruby version

Is there a way of installing the latest supported version of a dependency without specifying it? I'm having issues with the activesupport gem. The latest version (5.0.0.1) supports Ruby >= 2.2.2. If I'm specifying that I require the gem like this…
Sebastian
  • 2,154
  • 1
  • 26
  • 42
2
votes
1 answer

Bundle: `require': cannot load such file -- thread/pool (LoadError)

I am having issue with this code called CiscoBruter (https://github.com/R3dy/ciscobruter/) when trying to run it I get these errors. /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- thread/pool…
Haroon Baig
  • 53
  • 1
  • 9
2
votes
0 answers

Why does 'bundle install' fail and force me to 'gem install' myself?

I have executed the command bundle install In my Ruby on Rails projects, and I get the following error message An error occurred while installing bcrypt (3.1.10), and Bundler cannot continue. Make sure that `gem install bcrypt -v '3.1.10'`…
2
votes
2 answers

bundle install using old rubygems version

I'm having what appears to be the exact same problem seen in a 1-month old question that no one has touched. I installed rbenv using homebrew, installed ruby 2.3.1 using rbenv install 2.3.1, installed jekyll and bundler using gem install jekyll and…
Ben Lindsay
  • 1,686
  • 4
  • 23
  • 44
2
votes
1 answer

Bootstrap-SASS: uninitialized constant Sprockets::Rails::VERSION (NameError)

No matter what I do, I always get the error /home/xyz/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bootstrap-sass-3.3.7/lib/bootstrap-sass/engine.rb:11:in `block in ': uninitialized constant Sprockets::Rails::VERSION…
GoYoshi
  • 253
  • 1
  • 3
  • 17
2
votes
1 answer

What's the easiest way to maintain a patched set of rails gems, with bundler?

We're transitioning from 'frozen' rails gems to using bundler and would like to maintain the rails gems with patches, merges etc. say from an external git source. What's the easiest way to set this up, adding gemspecs to the patch branches etc.?
tribalvibes
  • 2,097
  • 3
  • 25
  • 30
2
votes
2 answers

Why do we need the Gemfile.lock in Ruby?

Isn't the Gemfile.lock a hack used to perpetuate bad practices in dependency version control? I.e. Shouldn't developers set the dependency version ranges strictly in the Gemfile? For example if my Gemfile says that I depend on gem A version 1.0.1 or…
PedroD
  • 5,670
  • 12
  • 46
  • 84
2
votes
2 answers

Rails/Passenger: no such file to load -- bundler

I have an application running an old version of Rails (2.2.2) and Passenger that I got up and running using Ruby Enterprise Edition 1.8.7. However, I soon found there were some incompatibilities between older versions of Rails and Ruby 1.8.7, and…
jrdioko
  • 32,230
  • 28
  • 81
  • 120
2
votes
0 answers

Gemfile.lock check-in when developing a gem. Why don't we check in a gemfile.lock?

I read this quote from this blog: In general, a gem's Gemfile should contain the Rubygems source and a single gemspec line. Do not check your Gemfile.lock into version control, since it enforces precision that does not exist in the gem …
Jwan622
  • 11,015
  • 21
  • 88
  • 181
2
votes
2 answers

Ruby On Rails: NameError: uninitialized constant Timezone::Configure

ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15] rails 4.2 rake, version 10.4.2 I am taking over a project from another developer. I was able to checkout the code from Github and I was able to run "bundle install". But then I do: …
charlottesville
  • 467
  • 5
  • 19
2
votes
1 answer

Ruby not recognising gems from local source, included in Gemfile

I've had some trouble with gems from a local source before, so set up a simple test project. I haven't had simple-rss installed before. This is my Gemfile: source 'https://rubygems.org' gem 'simple-rss', :path => '~/code/simple-rss' I then run…
Andrew
  • 7,693
  • 11
  • 43
  • 81
2
votes
1 answer

What causes "Your Ruby version is 2.2.3, but your Gemfile specified >= 2.2.3" in bundler?

In my Gemfile, I have ruby '>= 2.2.3' and my Ruby version is 2.2.3 ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin14] but I get the following error message: Your Ruby version is 2.2.3, but your Gemfile specified >= 2.2.3 2.2.3 is…
Andrew Grimm
  • 78,473
  • 57
  • 200
  • 338
2
votes
1 answer

Webpack: Is duplicate module loading inefficient?

From my understanding, webpack (and other similar bundlers) ensures that if the same module is required across multiple parts of the app: That code will only be loaded once Each time the same module is required, a new instance is created, rather…
AlexKempton
  • 1,648
  • 15
  • 28