【发布时间】:2011-08-16 01:05:46
【问题描述】:
我想安装 simple-private-messages gem (http://agilewebdevelopment.com/plugins/simple_private_messaging),https://github.com/jongilbraith/simple-private-messages。
我已添加到我的 Gemfile:
gem 'simple-private-messages'
但得到错误:
Fetching source index for http://rubygems.org/
Could not find gem 'simple-private-messages (>= 0)' in any of the gem sources listed in your Gemfile.
然后我尝试将 Gemfile 修改为:
gem 'simple-private-messages', :git => 'git://github.com/professionalnerd/simple-private-messages.git'
但得到错误:
Fetching git://github.com/professionalnerd/simple-private-messages.git
github.com[0: 207.97.227.239]: errno=Operation timed out
fatal: unable to connect a socket (Operation timed out)
Git error: command `git clone 'git://github.com/professionalnerd/simple-private- messages.git' "/Users/homanchou/.rvm/gems/ruby-1.9.2-p180/cache/bundler/git/simple-private-messages-26451211e7d7acc0c1b523bad2621cb2cd38f77e" --bare --no-hardlinks`
1) 我还能如何在本地安装这个 gem?
2) 如果 Heroku 在任何存储库中都找不到 gem,我如何将此应用程序部署到 heroku 并防止部署错误?我是否将它们提供给应用程序?
【问题讨论】:
标签: ruby-on-rails-3 github gem bundler