Steven
Steven

Reputation: 18024

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 quite that well. I started getting:

git://github.com/railsware/authlogic.git (at master) is not checked out. Please run bundle install

And

The git source git://github.com/railsware/authlogic.git is not yet checked out. Please run bundle install before trying to start your application

Assistance will be rewarded with virtual cookies.

Upvotes: 2

Views: 1017

Answers (2)

Pan Thomakos
Pan Thomakos

Reputation: 34350

Have you tried running bundle install after removing Gemfile.lock?

rm Gemfile.lock
bundle install

Your Gemfile configuration should work, I was able to use the same for and my bundle install command executes as does my bundle list command.

My other suggestion would be removing you ~/.bundler and .bundle directories and checking that you have properly configured git.

Upvotes: 3

Dylan Markow
Dylan Markow

Reputation: 124479

You need to run bundle install from the terminal after updating your Gemfile.

Upvotes: 0

Related Questions