Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

point gem branch path in gemfile

How to point gem branch path in gemfile.

This is what i am doing :

gem 'rails',     path: '/home/ubuntu/workspace/Fork/rails', :branch => 'any_of' 

but when i run bundle update, it's not show any branch like sprockets-rails.

Using sprockets-rails (2.0.0.rc4) from git://github.com/rails/sprockets-rails.git (at master)  Using rails (4.1.0.beta) from source at /home/ubuntu/workspace/Fork/rails 

Is there any typo?

like image 506
Pravin Mishra Avatar asked Jun 09 '13 07:06

Pravin Mishra


1 Answers

In your app run this command.

bundle config local.rails /home/ubuntu/workspace/Fork/rails 

Then in your Gemfile you specify the github source which will be overridden.

gem 'rails', :github => 'rails/rails', :branch => 'any_of' 

Source: http://gembundler.com/v1.3/git.html

like image 104
Ismael Avatar answered Sep 28 '22 23:09

Ismael