Shiva Kumar 's Blog

Start small,Think Big

Journey gem error while setting up rails source

So i recently i forked and cloned the rails repository and was following these steps

http://guides.rubyonrails.org/contributing_to_ruby_on_rails.html

So when i was is doing

bundle install --without db

i was getting this error

Could not find gem 'journey (~> 1.0.1) ruby', which is required by gem 'rails (>= 0) ruby', in any of the sources

if you see the rails gem file

if ENV['JOURNEY']
gem 'journey', :path => ENV['JOURNEY']
else
gem 'journey', :git => "git://github.com/rails/journey"
end

Which points to journey’s master repo .If you go to
journey.gemspec file you will see the gem version is

s.version = "2.0.0.20120723141804"

So the trick is just point the branch from which the journey should be installed

if ENV['JOURNEY']
gem 'journey', :path => ENV['JOURNEY']
else
gem 'journey', :git => "git://github.com/rails/journey" ,:branch => "1-0-stable"
end

Hope this helps..

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">