Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我注意到一些 ruby gem 有 .specification 文件,而另一些则没有。
如果它们很重要,为什么在您尝试创建 gem 时不需要(通过任何构建它们的工具)提供一个?
许多 gem 是使用 hoe 或 newgem 配置的,它们仅在构建 gem 时生成规范。该规范被视为仅用于创建 gem 的临时代码,因此通常不会打包。不过,这两个工具都有 rake 任务,它们会生成一个规范文件。
有时 gem 规范位于 Rakefile 中,而不是单独的 gemspec。