Rails Trick & Tips : A gem pointing to a local git repository rails 4, git, rails tips & tricks

A gem pointing to a local git repository

Take from http://gembundler.com/v1.3/git.html, ie here :

git clone https://github.com/laserlemon/vestal_versions.git
git checkout -b 'rails-4'
bundle config local.vestal_versions /c/my_local_git_dir/vestal_versions/

and in gemfile :

gem 'vestal_versions', :github => ' laserlemon/vestal_versions', :branch => 'rails-4'

You can visualize the effective presence of the git branch with just a bundle show


comments powered by Disqus