I'm new to ruby (many years of Python experience) and want to install this gem locally to replace the existing one which I installed using gem install swagger-docs. I have tried everything but cannot get rails to pick up my local version.
1 Answer
If you want your Gemfile to use a local gem, use path like this:
gem "swagger-docs", :path => "/Users/name/my_swagger_fork"
If you want to use a git remote, you can do this:
gem "swagger-docs", :git => "git://github.com/user/swagger.git", :branch => "my-awesome-branch"
4 Comments
josephmisiti
sorry for the confusion - The comment on the pull request was useless. but that line worked! that is what i was looking for - I didn't know that path parameter existed
josephmisiti
one other question, if I want to use the forked version on github, after I push my fixes (because they havnt been merged it) - how to I specify that?
holographic-principle
@josephmisiti
gem "swagger-docs", :git => "https://github.com/your_username/swagger-docs.git"Anthony
updated my answer @josephmisiti - but finishingmove is right, you have the option to specify a branch if you want