2017-02-14 61 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