我正在尝试使用evernote gem。它依赖于thrift gem。如何更改我的宝石之一所依赖的宝石版本?
的Gemfile
gem 'evernote'
当我尝试使用它,我得到这个错误:
Thrift::ProtocolException in PagesController#the_lab
No version identifier, old protocol client?
thrift (0.5.0) lib/thrift/protocol/binary_protocol.rb:122:in `read_message_begin'
thrift (0.5.0) lib/thrift/client.rb:45:in `receive_message'
evernote (0.9.0) vendor/gen-rb/evernote/edam/note_store.rb:97:in `recv_listNotebooks'
有一个newer version of the thrift gem available,这有可能解决这个问题。当我尝试安装它,我得到这个错误:
的Gemfile:
gem 'evernote'
gem 'thrift', "~> 0.6.0"
控制台:
$ bundle install
Fetching source index for http://rubygems.org/
You have requested:
thrift ~> 0.6.0
The bundle currently has thrift locked at 0.5.0.
Try running `bundle update thrift`
$ bundle update thrift
Fetching source index for http://rubygems.org/
Bundler could not find compatible versions for gem "thrift":
In Gemfile:
evernote depends on
thrift (~> 0.5.0)
thrift (0.6.0)
有没有办法我可以改变节俭的版本Evernote的依赖?
顺便说一句,错误“没有版本标识符,旧协议客户端?”来自Thrift,并且表明它不能根据它对指定对象的IDL解析响应。 – Don 2012-10-01 20:03:28