read
You need specific_install gem.
<pre style="background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;">gem install specific_install
</pre>
gem specific_install -l <url to a github gem>
Source