2011-08-16 3 views
1

간단한 개인 메시지 젬 (http://agilewebdevelopment.com/plugins/simple_private_messaging), https://github.com/jongilbraith/simple-private-messages을 설치하고 싶습니다.rubygems에서 rails3을 찾을 수 없을 때 gem/plugin을 설치하는 방법은 무엇입니까?

나는 나의 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) 어떻게이 보석을 로컬에 설치할 수 있습니까?

2)이 앱을 heroku에 배포하고 Heroku가 저장소에서 보석을 찾을 수없는 경우 배포 오류로부터 보호하려면 어떻게해야합니까? 그것들을 애플 리케이션에 공급합니까?

답변

2

프로젝트가 젬이 아닌 것처럼 보입니다. 실제로 Rails 플러그인입니다. 설치하려면

, 프로젝트 폴더에서 이것을 실행

rails plugin install git://github.com/jongilbraith/simple-private-messages.git 
+0

아 ... 그 명령에 대해 잊어 버렸습니다. 나는 Rails 3이 플러그인 설치 대신 Gemfile과 bundler를 사용한다고 생각했지만, 여전히 필요합니다. 차이점을 어떻게 알 수 있습니까? – Homan

+0

글쎄, 일반적으로 rubygems.org를 검색해도 그것을 찾을 수 없다면 아마도 보석이 아닐 것입니다 (또는 적어도 발행 된 것은 아닙니다). github repo를보고 gemspec 파일을 보지 않으면 다른 기호가됩니다. 또한이 특정 프로젝트에 대한 추가 정보는 플러그인으로 설치하는 것을 말합니다. –

관련 문제