2016-08-02 47 views
1

這裏是我的Gemfile更新Avro的圖書館紅寶石

source "http://ci-stickler.com" 
gemspec :name => "ci_canonical" 
gemspec :name => "ci_canonical-serialization" 
gem "rspec", "~> 3.0" 
gem "rake", "~> 10.0" 

當我運行bundle update,它不更新avroci_canonical-serialization。我在這裏錯過了什麼?

我已經更新了寶石1.8.1並安裝了寶石。

[[email protected]_canonical]$ head -n25 Gemfile.lock 
PATH 
    remote: . 
    specs: 
     ci_canonical (11.0.5) 
     domain_model (~> 0.4) 
     enumerated_type (~> 0.4) 
     json (~> 1.6) 
     ci_canonical-serialization (11.0.5) 
     avro (~> 1.7) 
     ci_canonical (= 11.0.5) 
GEM 
    remote: http://ci-stickler.com/ 
    specs: 
     avro (1.8.1) 
      multi_json 
     diff-lcs (1.2.5) 
     docile (1.1.5) 
     domain_model (0.4.0) 
     enumerated_type (0.4.1) 
     json (1.8.3) 
     multi_json (1.12.1) 

我跟了一些帖子,但他們並沒有幫助:我Gemfile.lock如產生。我也不清楚我們在Gemfile中指定爲gemspec

回答

0

自己找出答案。我們可能在單個存儲庫(可能是git存儲庫)中有多個gem,並且對於所有gem,我們有一個關聯的文件.gemspec,這個文件將反過來講述依賴關係。

所以在我的情況下,我沒有修改第二個.gemspec文件。修改它有助於解決問題。