在不破坏他人代码的情况下更新 gem
updating gem without breaking other's code
在 rails 中,我需要使用 google_drive gem 来访问电子表格。 google_drive 依赖更新后的 google-api-client。如果我更新 google-api-client,更新可能会破坏其他人的代码。
我怎么解决这个问题?
这是错误消息:
Bundler could not find compatible versions for gem "google-api-client": (Bundler::VersionConflict)
In snapshot (Gemfile.lock):
google-api-client (= 0.6.4)
In Gemfile:
google_drive (>= 0) ruby depends on
google-api-client (>= 0.7.0) ruby
google-api-client (>= 0) ruby
您可以 运行 在本地,然后 运行 您的规格套件:
bundle update google-api-client
如果有适当的规范套件,并且它很全面,它应该会发现更新 gem.
可能导致的任何问题
在 rails 中,我需要使用 google_drive gem 来访问电子表格。 google_drive 依赖更新后的 google-api-client。如果我更新 google-api-client,更新可能会破坏其他人的代码。 我怎么解决这个问题?
这是错误消息:
Bundler could not find compatible versions for gem "google-api-client": (Bundler::VersionConflict)
In snapshot (Gemfile.lock):
google-api-client (= 0.6.4)
In Gemfile:
google_drive (>= 0) ruby depends on
google-api-client (>= 0.7.0) ruby
google-api-client (>= 0) ruby
您可以 运行 在本地,然后 运行 您的规格套件:
bundle update google-api-client
如果有适当的规范套件,并且它很全面,它应该会发现更新 gem.
可能导致的任何问题