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
  • 16,529
  • 10
  • 46
  • 78

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,202
  • 10
  • 40
  • 72
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,202
  • 10
  • 40
  • 72
ielyamani
  • 16,529
  • 10
  • 46
  • 78