bundle install error

淺唱寂寞╮ 提交于 2019-12-07 12:01:27
Jason Weathered

As per @bjeanes answer, ideally the Git repository should have a .gemspec file for each gem the Git repository represents.

However, if the repository is only missing the .gemspec file and would otherwise be a valid Git gem source, you can specify a version number in your gem call to have Bundler generate a .gemspec for you:

gem 'simple-private-messages', '0.0.0', :git => 'git://github.com/jongilbraith/simple-private-messages.git'

The git repo needs to have a .gemspec file in it in order to be a valid gem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!