2013-10-18 37 views
0

我想從Rails 3.2.13升級到3.2.15。從Rails 3.2.13升級到3.2.15時,如何解決此Bundler錯誤?

舊的Gemfile

gem 'rails', '3.2.13' 

新的Gemfile

gem 'rails', '3.2.15' 

當我運行包,我得到這個:

$ bundle 
Fetching gem metadata from https://rubygems.org/...... 
Fetching gem metadata from https://rubygems.org/.. 
Resolving dependencies... 
Bundler could not find compatible versions for gem "activesupport": 
    In snapshot (Gemfile.lock): 
    activesupport (3.2.13) 

    In Gemfile: 
    rails (= 3.2.15) ruby depends on 
     activesupport (= 3.2.15) ruby 

Running `bundle update` will rebuild your snapshot from scratch, using only 
the gems in your Gemfile, which may resolve the conflict. 

advice I found online是運行bundle update rails來解決這個問題,但這將更新到Rails 4.0。

我該如何解決這個問題?

+0

刪除'Gemfile.lock'並重新打包。 – zrl3dx

+0

這是不是意味着其他寶石可能會更新? – ben

+0

那麼也許最大的版本添加到你不想升級的寶石? – zrl3dx

回答

1

運行bundle update在Gemfile中指定3.2.1.5時不會將Rails更新爲4.0。它不會更改您的Gemfile,只有Gemfile.lock

1

你可以運行bundle update rails,它不會與其他gem混淆。