0

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 1

1

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"
Sign up to request clarification or add additional context in comments.

4 Comments

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
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?
@josephmisiti gem "swagger-docs", :git => "https://github.com/your_username/swagger-docs.git"
updated my answer @josephmisiti - but finishingmove is right, you have the option to specify a branch if you want

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.