Jeweler 为我的 gem 添加了循环依赖
Rakefile 中 Gem 的(gemfoo)珠宝商声明如下所示:
Jeweler::Tasks.new do |gem|
#truncated
gem.add_runtime_dependency 'nokogiri', '~> 1.4.1'
gem.add_development_dependency 'jeweler'
end
问题是它在 gemfoo.gemspec 文件中生成以下依赖项:
s.add_runtime_dependency(%q
这不会阻止您发布 rubygem,但不允许您安装它:
gem install gemfoo
ERROR: Error installing gemfoo:
gemfoo requires gemfoo (>= 0)
我该如何解决这个问题?
珠宝商1.6.0
Gem's(gemfoo) jeweler declaration in Rakefile looks like that:
Jeweler::Tasks.new do |gem|
#truncated
gem.add_runtime_dependency 'nokogiri', '~> 1.4.1'
gem.add_development_dependency 'jeweler'
end
The problem is that it generates the following dependencies in the gemfoo.gemspec file:
s.add_runtime_dependency(%q<gemfoo>, [">= 0"])
s.add_runtime_dependency(%q<nokogiri>, ["~> 1.4.1"])
s.add_development_dependency(%q<jeweler>, [">= 0"])
Which won't stop you from releasing your rubygem but won't allow you to install it:
gem install gemfoo
ERROR: Error installing gemfoo:
gemfoo requires gemfoo (>= 0)
How can I fix that?
jeweler 1.6.0
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你的 Rakefile 中有些东西被破坏了。 Jeweler 1.6.0
rake gemspec
- 生成的 gemspec 文件没有您所描述的工件。Something is broken in your Rakefile. Jeweler 1.6.0
rake gemspec
- the generated gemspec file doesn't have the artifact you're describing.