Dependency error while installing the gem “joyride-rails”

◇◆丶佛笑我妖孽 提交于 2020-01-07 07:51:17

问题


My rails version is 3.2.12.

I am trying to implement gem "joyride-rails", "~> 0.0.14" in my application, but it clashes with some of my other gems. Already in my Gemfile:

gem "haml-rails", ">= 0.4"
gem 'activeadmin-mongoid', github: 'elia/activeadmin-mongoid', branch: 'active-admin-spec-suite'

When I run the bundle command, I get this error:

Bundler could not find compatible versions for gem "haml":
  In Gemfile:
    joyride-rails (~> 0.0.14) ruby depends on
      haml (~> 3.1) ruby

    haml-rails (>= 0.4) ruby depends on
      haml (4.0.3)

So, if I add the gem "haml", "~> 4.0.3" the new bundle clash is:

Bundler could not find compatible versions for gem "bourbon":
  In Gemfile:
    joyride-rails (~> 0.0.14) ruby depends on
      bourbon (~> 2.0) ruby

    activeadmin-mongoid (>= 0) ruby depends on
      bourbon (3.1.8)

And if I then add the gem "bourbon", "~> 3.1.8" I get this new clash:

Bundler could not find compatible versions for gem "bourbon":
  In Gemfile:
    joyride-rails (~> 0.0.14) ruby depends on
      bourbon (~> 2.0) ruby

    bourbon (3.1.8)

What to do?


回答1:


Github Issue

The gem currently can't be used with the latest version of haml. (c)

I think, u can downgrade your haml version, if possible.



来源:https://stackoverflow.com/questions/18867225/dependency-error-while-installing-the-gem-joyride-rails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!