views:

400

answers:

1

In my gemfile I have this:

gem "authlogic", :git => "git://github.com/odorcicd/authlogic.git", :branch => "rails3"

How do I install that as a gem so I can test it?

+2  A: 
  1. Clone the Git repository.

    $ git clone git://github.com/odorcicd/authlogic.git
    
  2. Change to the new directory.

    cd authlogic
    
  3. Checkout branch

    $ git checkout -b rails3 remotes/origin/rails3
    
  4. Build the gem.

    $ rake gem
    
  5. Install the gem.

    $ gem install pkg/gemname-1.23.gem
    
janic_
I needed to change 4. to "rake build" to build the gem.
raphael_turtle