问题描述
如何处理宝石版本错误匹配?
Mongoid 4.0.0(latest)使用脚本(2.0.0),它需要bson 2.3
Mongo 1.10.2(latest)使用bson 1.10.2
我不能使用mongoid 4.0.0和mongo 1.10。 2一起,但我可以在过去,当mongoid使用bson 1.x。
有人知道我可以继续使用mongo和mongoid吗?
-daniel
链接:
mongo-ruby-driver使用BSON 2.2的最新不稳定版本2.x(在繁重的开发中)。如果你升级到这个宝石你应该很好去。
How to handle gem version mis-matches?
Mongoid 4.0.0 (latest) uses moped (2.0.0) which requires bson 2.3
Mongo 1.10.2 (latest) uses bson 1.10.2
I can't use mongoid 4.0.0 and mongo 1.10.2 together, but I could in the past, when mongoid uses bson 1.x.
Does anyone know how I can continue forward using both mongo and mongoid?
-daniel
Links:
The latest unstable version 2.x (under heavy development) of mongo-ruby-driver uses BSON 2.2. If you upgrade to this Gem you should be good to go.
https://github.com/mongodb/mongo-ruby-driver/blob/master/mongo.gemspec
这篇关于Ruby / rails:mongoid和mongo(宝石); bson冲突?如何处理不同的版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!