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 locate gemfile even though bundler is successfully installed

I was able to install this ~/workspace $ gem install bundler Successfully installed bundler-1.16.2 1 gem installed However when I put in bundle install, I keep getting Could not locate Gemfile I tried updating and cd to my workspace but I'm still…
Natalie
  • 51
  • 1
  • 2
  • 4
2
votes
0 answers

Bundle dependency not installing despite being in lock file

I'm running bundle install --no-cache --path ./vendor/bundle on this gemfile in a Jenkins build. I'm then using widdershins to convert my OpenAPI spec documentation to a slate-compatible format. The issue I'm running into is that widdershins can't…
Ben
  • 60,438
  • 111
  • 314
  • 488
2
votes
0 answers

How to update bundler version in dokku?

I use dokku 0.12.5 How to update bundler version gem bundle install doesn't work Update: root@TM:~# dokku run app gem update bundler Updating installed gems Updating bundler Fetching: bundler-1.16.1.gem (100%) Successfully installed…
Anton Ipatov
  • 169
  • 2
  • 14
2
votes
2 answers

Ruby: strange error while installing the bundler gem

I just wanted to install the bundler gem. I have no problems installing it. But when I install it and hit "bundle ", I get "command 'bundle' not found". When I then enter again "gem install bundler" it installs bundler again, without saying it'd be…
Joern Akkermann
  • 3,542
  • 8
  • 33
  • 41
2
votes
0 answers

Running ruby project with systemd service cannot find gemfile

I would like to run a ruby project that uses bundle as a systemd service. The project is: https://github.com/jcs/bitwarden-ruby/ I installed ruby and bundler by running sudo apt-get install ruby-full and sudo gem install bundler In the project…
Seb123
  • 471
  • 1
  • 7
  • 20
2
votes
1 answer

redcloth (MissingSourceFile) - new problem after Heroku changed to bundler 1.0.7

Our app had been working. Now I just pushed some new code into staging on Heroku for the 1st time after they moved to bundler 1.0.7. Now our app crashes and I got this error message…
Mei
  • 243
  • 4
  • 13
2
votes
2 answers

Bundler path problem

I've taken over ann application that was deployed to a server by someone else. There's something broken about the setup, some missing environment variable or similar problem but I am stumped. By the way this is obviously a Rails application, running…
pitosalas
  • 10,286
  • 12
  • 72
  • 120
2
votes
0 answers

Configuration blocks in a Rails initializer don't work with local-path gems (?)

In my Rails app Gemfile, I have gem 'myfancygem', path: '/Users/matt/myfancygem' This works as you'd expect. I then added a configuration block feature to the gem, a la https://robots.thoughtbot.com/mygem-configure-block (and many others out there…
2
votes
1 answer

How to use Foreman with subfolders and nested Gemfiles

I'm working on a large project with a UI, a Rails API, and some other Rails/Ruby based services located in a monorepo. I'm trying to set up some Rake tasks around Foreman at the root of the project to start up the project in development mode. The…
Matthew
  • 444
  • 1
  • 3
  • 14
2
votes
0 answers

There was an error while trying to load the gem 'chosen-rails'

Why am i getting this error? When starting gitlab. # INFO -- : Refreshing Gem list Bundler::GemRequireError: There was an error while trying to load the gem 'chosen-rails'. Gem Load Error is: undefined method `has?' for Sass::Util:Module Backtrace…
Masaki
  • 21
  • 1
2
votes
2 answers

How do I use bundler to get a gem from a git repository?

Authlogic has a couple unfortunate deprecation warnings that are fixed in a fork. How do I use this forked version? I tried adding the following to my Gemfile: gem 'authlogic', :git => 'git://github.com/railsware/authlogic.git' And it didn't work…
Steven
  • 17,796
  • 13
  • 66
  • 118
2
votes
1 answer

Why don’t I need to use the Rails binstub to run the correct version?

I used to think that you needed to use the automatically-generated binstub for Rails in order to load the correct version, otherwise you might accidentally load the wrong version. However, I’ve found that the correct version of Rails is loaded…
Sean Moubry
  • 1,010
  • 1
  • 13
  • 22
2
votes
1 answer

trying to install rspec with bundler and rvm. error: undefined method 'spec'

Rails 2.3.8, bundler 1.0.9. I keep getting the error: /Users/dwalseth/.rvm/gems/ruby-1.8.7-p330@rails2/gems/bundler-1.0.9/lib/bundler/source.rb:72:in fetch': undefined methodspec' for nil:NilClass (NoMethodError) from…
telecasterrok
  • 209
  • 2
  • 12
2
votes
4 answers

Path's issue with bundler, to change or not to change?

I'm trying to setup a new rails 3 project with bundler, but i ran into issues with bundler. I'm on rails 3.0.3 with ruby 1.8.7 When trying to do $ bundle exec rake db:migrate I get the following…
Daniel
  • 21
  • 6
2
votes
1 answer

parceljs with dotnet core

I want to try parceljs for minifying and bundling. I have installed the parcel-bundler with npm, and i tried creating a index.js, main.js and main.css for testing. main.css .main { color: red; } main.js import classes from './main.css'; export…
sindrem
  • 1,211
  • 5
  • 24
  • 45