2010-10-17 268 views
1

我試圖安裝此軟件包:https://github.com/jongilbraith/simple-private-messages與軟件包安裝。軟件包安裝錯誤

而且我得到了以下錯誤消息:

 
Updating git://github.com/professionalnerd/simple-private-messages.git 
Fetching source index for http://rubygems.org/ 
Could not find gem 'simple-private-messages (>= 0, runtime)' in git://github.com/professionalnerd/simple-private-messages.git (at master). 
Source does not contain any versions of 'simple-private-messages (>= 0, runtime)' 

條目Gemfile

gem "simple-private-messages",:git =>"git://github.com/professionalnerd/simple-private-messages.git"

任何想法?

回答

4

根據@bjeanes的回答,理想情況下,Git存儲庫應該爲Git存儲庫所代表的每個gem創建一個.gemspec文件。

但是,如果倉庫只是缺少.gemspec文件,否則將是一個有效的Git源的寶石,你可以在你gem調用指定版本號有捆紮機爲你生成一個.gemspec

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

git repo需要在其中包含.gemspec文件才能成爲有效的gem。