使用 Remarkable 作为来自 Github 的 gem
我想使用 Remarkable gem 最新工作版本,因为它修复了一些与 Rails 3.1 兼容的已弃用功能。但当我使用时,
gem "remarkable", :git => 'git://github.com/remarkable/remarkable.git'
我收到此错误:
Could not find gem 'remarkable (>= 0) ruby' in git://github.com/remarkable/remarkable.git (at master).
Source does not contain any versions of 'remarkable (>= 0) ruby'
但不知道为什么。任何点击如何解决这个问题?
谢谢
编辑:修复了当我发布这个问题时我剪贴板中的 git 地址中的错误地址。
解决了!
我使用 gemspec 文件创建了 fork,这是从 git 获取 gem 所必需的。
这是有效的 git 源代码
gem "remarkable", :git => 'git://github.com/radeno/remarkable.git'
gem "remarkable_activemodel", :git => 'git://github.com/radeno/remarkable.git'
gem "remarkable_activerecord", :git => 'git://github.com/radeno/remarkable.git'
或来自此分支
i want to use Remarkable gem latest working version, because it has fixed some deprecated features compatibile with Rails 3.1. But when i use
gem "remarkable", :git => 'git://github.com/remarkable/remarkable.git'
i get this error:
Could not find gem 'remarkable (>= 0) ruby' in git://github.com/remarkable/remarkable.git (at master).
Source does not contain any versions of 'remarkable (>= 0) ruby'
But dont why. Any hits how to solve this ?
Thanks
EDIT: fixed wrong addres in git address which was in my clippboard when i post this question.
SOLVED!
I created fork with gemspec file, which is necessary to fetch gem from git.
This is working git source
gem "remarkable", :git => 'git://github.com/radeno/remarkable.git'
gem "remarkable_activemodel", :git => 'git://github.com/radeno/remarkable.git'
gem "remarkable_activerecord", :git => 'git://github.com/radeno/remarkable.git'
or from this fork
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
解决方案:
我使用 gemspec 文件创建了 fork,这是从 git 获取 gem 所必需的。
这是有效的 git 源代码
SOLUTION:
I created fork with gemspec file, which is necessary to fetch gem from git.
This is working git source
使用以下任一方法:
您使用了冒号而不是斜杠。
编辑:
您可以尝试添加特定版本吗?
Use either of these:
You used a colon instead of a slash.
Edit:
Could you try and add a specific version?