使用 Remarkable 作为来自 Github 的 gem

发布于 2024-12-07 13:22:16 字数 949 浏览 1 评论 0原文

我想使用 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'

或来自此分支

https://github.com/foolabs/remarkable/

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

https://github.com/foolabs/remarkable/

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

花心好男孩 2024-12-14 13:22:16

解决方案:

我使用 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'

SOLUTION:

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'
筱武穆 2024-12-14 13:22:16

使用以下任一方法:

gem "remarkable", :git => "git://github.com/radeno/remarkable.git"
gem "remarkable", :git => "https://github.com/radeno/remarkable.git"

您使用了冒号而不是斜杠。


编辑

您可以尝试添加特定版本吗?

gem "remarkable", "2.3.1", :git => "git://github.com/remarkable/remarkable.git"

Use either of these:

gem "remarkable", :git => "git://github.com/radeno/remarkable.git"
gem "remarkable", :git => "https://github.com/radeno/remarkable.git"

You used a colon instead of a slash.


Edit:

Could you try and add a specific version?

gem "remarkable", "2.3.1", :git => "git://github.com/remarkable/remarkable.git"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文