如何将新的 gem 集成到 Rails 应用程序中 (Redmine)
我开发了一个 gem,它实现了我们将在 Redmine (Rails 2.3.5) 部署中使用的一些算法。
gem 由 Jeweler 搭建起来,它创建一个 Rakefile 来生成 .gemspec
文件。
但是,当我复制到 vendor/gems
并运行 script/console
时,我收到以下警告:
config.gem: Unpacked gem cedrux_algorithms in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem cedrux_algorithms in vendor/gems not in a versioned directory. Giving up.
当我运行命令 rake gems:refresh_specs
时>,我收到同样的消息。如何在 Redmine 的 vendor/gems
中正确“安装”gem?
I have developed a gem which implements some algorithms that we'll use within a deployment of Redmine (Rails 2.3.5).
The gem was scaffolded with jeweler, which creates a Rakefile to generate the .gemspec
file.
However, when I copied to vendor/gems
and I run script/console
I get the following warning:
config.gem: Unpacked gem cedrux_algorithms in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem cedrux_algorithms in vendor/gems not in a versioned directory. Giving up.
When I run the command rake gems:refresh_specs
, I get the same messages. How can I properly "install" a gem within the vendor/gems
in Redmine?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是通过在
vendor/gems
目录中解压 gems 来完成的:This is accomplished by unpacking the gems on the
vendor/gems
directory: