ielyamani
ielyamani

Reputation: 18581

How to install and edit a ruby gem from a debugging branch on GitHub

I am trying to test a branch of a GitHub repo.

gem install gemName installs the master branch.

I've tried the answers here without luck.

I don't how to use this gem either.

And how could I edit the gem afterwards?

Upvotes: 1

Views: 157

Answers (2)

ielyamani
ielyamani

Reputation: 18581

Arturo's answer didn't work for me.

I had luck with this syntax:

gem install gem_name --branch branch_name

Upvotes: 0

Arturo Herrero
Arturo Herrero

Reputation: 13122

You can install a gem specifying a branch, eg:

gem "rack", git: "https://github.com/rack/rack.git", branch: "rack-1.5"

Reference: http://bundler.io/git.html

Upvotes: 2

Related Questions