【问题标题】:Gem conflict with refinerycms core and custom enginegem与reinerycms核心和自定义引擎冲突
【发布时间】:2014-04-07 23:40:58
【问题描述】:

首先,对于任何混淆/不清晰,我提前道歉,这是我的第一篇 stackoverflow 帖子。

我为我的炼油厂应用构建了一个自定义引擎,具有典型的:

rails generate refinery:engine web_users first_name:string last_name:string...

运行它会在 gemfile 中放置一个 gem,如下所示:

gem 'refinerycms-web_users', :path => 'vendor/extensions'

但是,我的 gemfile 中也有 'refinerycms-acts-as-indexed', '~> 1.0.0' 作为我的前端框架(特别是用于移动菜单导航)。

运行包更新时出现以下错误:

refinerycms (~> 2.1.2) ruby depends on
  refinerycms-core (= 2.1.2) ruby

refinerycms-web_users (>= 0) ruby depends on
  refinerycms-core (2.0.10)

是否有降级作为索引的解决方案以与refinerycms-core (2.0.10) 配合使用,或者提高自定义引擎对refinerycms 2.1.2 的依赖性?

谢谢errrrybody!

抱歉,我没有将错误与作为索引的行为与refinerycms core 2.1.0 一起使用:

refinerycms-acts-as-indexed (~> 1.0.0) ruby depends on
  refinerycms-core (~> 2.1.0) ruby

【问题讨论】:

    标签: ruby-on-rails refinerycms


    【解决方案1】:

    你需要升级你的扩展以依赖refinerycms-core ~> 2.1.0,你可以通过打开(类似的)vendor/extensions/refinerycms-web_users/refinerycms-web_users.gemspec 并指定更新的依赖版本来代替已经指定的版本。然后,您需要确保它与 refinerycms-core 的更新版本一起正常工作。

    【讨论】:

    • 效果很好,也很有意义。非常感谢您的快速回复!
    猜你喜欢
    • 1970-01-01
    • 2018-07-02
    • 2020-03-23
    • 2019-08-29
    • 1970-01-01
    • 2012-06-12
    • 2017-11-17
    • 2015-11-17
    • 1970-01-01
    相关资源
    最近更新 更多