qiniu / ruby-sdk

Qiniu Resource (Cloud) Storage SDK for Ruby
MIT License
164 stars 138 forks source link

rails 4 依赖的 mime-types 版本不兼容 qiniu sdk #124

Closed icyleaf closed 9 years ago

icyleaf commented 9 years ago
Bundler could not find compatible versions for gem "mime-types":
  In snapshot (Gemfile.lock):
    mime-types (= 2.5)

  In Gemfile:
    rest-client (>= 0) ruby depends on
      mime-types (< 3.0, >= 1.16) ruby

    rails (= 4.2) ruby depends on
      actionmailer (= 4.2.0) ruby depends on
        mail (>= 2.5.4, ~> 2.5) ruby depends on
          mime-types (< 3, >= 1.16) ruby

    qiniu (~> 6.4.1) ruby depends on
      mime-types (~> 2.4.3) ruby

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
FlowerWrong commented 9 years ago

See the log. Run bundle update to FIX it.

BluntBlade commented 9 years ago

「mime-types (~> 2.4.3)」 means that gem will choose one version from [2.4.3, 3.0) , which meets the requirement of 「mime-types (< 3, >= 1.16)」。

Reference:https://robots.thoughtbot.com/rubys-pessimistic-operator