Install Gem from Github Branch?

前端 未结 4 1405
夕颜
夕颜 2020-12-02 04:37

In my gemfile I have this:

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

How do I ins

4条回答
  •  心在旅途
    2020-12-02 05:05

    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 build gem
      
    5. Install the gem.

      $ gem install pkg/gemname-1.23.gem
      

提交回复
热议问题