2

我正在尝试使用一个名为“rbing”的 gem,但它存在一个问题,该项目已被放弃,但有人在 repo 中进行了修复,所以我决定使用 bundler 来指定新版本。

gem "rbing", :git => "https://github.com/KellyMahan/rbing.git"

当我运行捆绑安装时它甚至安装正确,但在我的 Gemfile RubyMine 中抱怨“具有指定版本要求的 gem 在 SDK RVM 中不可用:ruby-2.0.0”

它没有出现在我的外部库目录中。

非常感谢任何帮助,

干杯,亚当

编辑:红宝石版本,

Bundler 1.3.5
Ruby 2.0.0 (2013-05-14 patchlevel 195) [x86_64-darwin12.3.0]
Rubygems 2.0.3
rvm 1.20.11 (stable)
GEM_HOME /Users/adam419/.rvm/gems/ruby-2.0.0-p195
GEM_PATH /Users/adam419/.rvm/gems/ruby-2.0.0-p195:/Users/adam419/.rvm/gems/ruby-2.0.0-        p195@global
rubygems-bundler (1.1.1)
4

1 回答 1

1

将您的 Gemfile 更改为:

source "https://rubygems.org"

gem 'sinatra'
gem 'rbing', :git => 'https://github.com/KellyMahan/rbing'

我刚刚在这里为 RubyMine 5.4 做了它,它就像一个魅力:

在此处输入图像描述

于 2013-10-02T05:03:57.523 回答