1

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?

Community
  • 1
  • 1
ielyamani
  • 17,807
  • 10
  • 55
  • 90

2 Answers2

2

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

Arturo Herrero
  • 12,772
  • 11
  • 42
  • 73
0

Arturo's answer didn't work for me.

I had luck with this syntax:

gem install gem_name --branch branch_name
Arturo Herrero
  • 12,772
  • 11
  • 42
  • 73
ielyamani
  • 17,807
  • 10
  • 55
  • 90