有什么可以阻止创建gem规范文件?
-
06-07-2019 - |
题
我尝试更新没有.specification文件的gem上的规范。
1. cd {application_home_directory}
2. rake gems:refresh_specs
当我这样做时,我收到了递归警告:
config.gem: Unpacked gem in vendor/gems has no specification file.
Run 'rake gems:refresh_specs' to fix this.
我也尝试了这个,它也没有创建没有任何错误/警告的规范:
1. cd vendor/gems/gemname
2. gem specification gemname > .specification
在这些情况下,有什么可以阻止创建gem规范文件?
解决方案
您的environment.rb文件中的gems是否有 config.gem
语句?根据我的经验,您需要在配置中设置gem,以便 rake gems:refresh_specs
了解它们。
不隶属于 StackOverflow