[英]How to lint a gemspec file
When building new gems I like to run the command gem build app.gemspec
instead of rake build
because I get extra warnings, kind of lint for my gem specification. 当建立新的宝石,我喜欢运行的命令
gem build app.gemspec
而不是rake build
我的宝石规格,因为我得到额外的警告,一种皮棉 。
However both commands have the problem that they actually generate in gem file and that is something that I never want, since I use my gems by referencing either their repository or path from other projects inside the Gemfile of those other projects. 但是,这两个命令都存在一个问题,即它们实际上是在gem文件中生成的,这是我不想要的,因为我通过引用其他项目的Gemfile中其他项目的存储库或路径来使用我的gem。
Is there a way to lint / test my gemspec files like gem build
does without actually generating the final gem? 有没有办法像
gem build
一样在不实际生成最终宝石的情况下棉绒 / 测试我的gemspec文件? gem build
does not support the --dry-run
command gem build
不支持--dry-run
命令
Is 'gem check' what you are looking for? 您正在寻找“宝石检查”吗? There are a variety of options, including --dry-run
有多种选择,包括--dry-run
http://guides.rubygems.org/command-reference/#gem-check http://guides.rubygems.org/command-reference/#gem-check
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.