2017-02-14 108 views
0

我試圖將我的紅寶石1.9.3更新到2.2.2,當我在本地測試,所有工作正常,但是當我嘗試推向heroku我得到了雨滴發行版本,然後我更新由命令雨滴寶石更新問題與紅寶石2.2.2

bundle update raindrops 

但在那之後,當我檢查這個Gemfile.lock的它顯示

GEM 
remote: https://rubygems.org/ 
specs: 
    raindrops (0.17.0) 
unicorn (4.6.3) 
    kgio (~> 2.6) 
    rack 
    raindrops (~> 0.7) 

這裏麒麟下的雨滴並沒有變化,其他只是變了,它推動成功,它會在生產中隨時爲麒麟造成任何問題嗎?

回答

0

閱讀你Gemfile.lock這樣的:

GEM 
remote: https://rubygems.org/ 
specs: 
    raindrops (0.17.0)  # <- This is the installed version (0.17.0 is the latest) 
unicorn (4.6.3) 
    kgio (~> 2.6) 
    rack 
    raindrops (~> 0.7)  # <- This is the version unicorn depends on 

您有最新版本的寶石安裝的(見RubyGems的raindrops頁)。 unicorn本身取決於0.7< 1.0之間的raindrops版本,版本0.17.0滿足此要求。

一切都好!

+0

感謝,還我怎麼能知道這個說法「麒麟本身依賴於0.7和<1.0之間的雨滴版本,該版本0.17.0或更新符合」 – django

+0

明白了這個意思感謝http://stackoverflow.com/questions/8699949/what-do-symbol-mean-in-a-bundler-gemfile – django

+0

'〜>'被稱爲[悲觀運算符](https://robots.thoughtbot.com/rubys-pessimistic-operator)。 – spickermann