您不能使用不同的版本要求两次指定相同的gem

Rob*_*nho 6 ruby-on-rails redmine redmine-plugins

我安装了2个插件(redmine_backlogs和redmine_ldap_sync),但是在将redmine_ldap_sync从2.0.0升级到2.0.1之后,添加了一个Gemfile.

这里积压的Gemfile https://github.com/backlogs/redmine_backlogs/blob/v1.0.2/Gemfile 和ldap sync的Gemfile https://github.com/thorin/redmine_ldap_sync/blob/2.0.1/Gemfile

在这两种情况下,simplecov都在测试组中.我试着跑

bundle install --without development test
Run Code Online (Sandbox Code Playgroud)

但是我收到了这个错误:

You cannot specify the same gem twice with different version requirements. 
You specified: simplecov (>= 0) and simplecov (~> 0.6)
Run Code Online (Sandbox Code Playgroud)

这似乎没有意义.有没有办法绕过它而不编辑文件?

谢谢

小智 13

插件中的所有Gemfiles都与普通的Gemfiles合并.只需simplecov (>= 0)在其中一个插件Gemfile中删除语句即可.这不是犯罪或非法.