How to use a branch in a fork of rails in a project with bundler

后端 未结 2 710
别跟我提以往
别跟我提以往 2020-12-31 08:04

I\'ve got a fork of the rails repo on github, in which I\'ve got a branch, based on the rails-2-3-stable branch. I want to develop some changes based on rails 2.3.10 togethe

2条回答
  •  不思量自难忘°
    2020-12-31 08:43

    Looks like at version 2.3.10, rails did not have .gemspec files for its components. Instead, each gemspec is specified in the corresponding Rakefile.

    Otherwise you would use:

    git "git://github.com/traveliq/rails.git", :branch => 'tiq-fixes', :tag => 'v2.3.10' do
      gem 'actionpack'
      gem 'activesupport'
      gem 'activerecord'
      gem 'activemodel'
      gem 'actionmailer'
      gem 'railties'
    end
    

    Further reference: http://gembundler.com/git.html

    EDIT: That means that bundler requires a gemspec to be in place.

提交回复
热议问题