Skip to content
This repository has been archived by the owner on May 1, 2018. It is now read-only.

Commit

Permalink
Do not run Bundler.setup from main library.
Browse files Browse the repository at this point in the history
Imagine a typical use case for grb:

* User moves to a project dir (~/myproj)
* User uses grb (grb create funtimes)
* grb executes Bundler.setup, which munges Ruby's load path to match myproj's Gemfile.lock
* grb tries to require "rainbow," which isn't in myproj's Gemfile.lock
* grb dies

Gem dependencies are better handled by Rubygems during install, and later by Bundler when running against an
actual app's Gemfile.
  • Loading branch information
rossmeissl committed Dec 14, 2011
1 parent ecc6218 commit 7aa067e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/git_remote_branch.rb
@@ -1,13 +1,4 @@
require 'rubygems'

begin
require 'bundler/setup'
rescue Bundler::GemNotFound => e
STDERR.puts e.message
STDERR.puts "Try running `bundle install`."
exit!
end

require 'rainbow'

begin
Expand Down

0 comments on commit 7aa067e

Please sign in to comment.