我使用的是simplegeo,而rubygems.org中的gem并不是最新的,所以我在我的gemfile中使用了这一行:
gem 'sg-ruby', :git => 'https://github.com/simplegeo/simplegeo-ruby.git'
它工作正常,但今天,我删除了这一行,运行bundle install
,使用simplegeo恢复gemfile,重新运行bundle install
,现在我无法摆脱以下内容:
Updating https://github.com/simplegeo/simplegeo-ruby.git
Fetching source index for http://rubygems.org/
Could not find gem 'sg-ruby (>= 0, runtime)' in https://github.com/simplegeo/simplegeo-ruby.git (at master).
Source does not contain any versions of 'sg-ruby (>= 0, runtime)'
这是我的宝石文件(FYI)
source 'http://rubygems.org'
gem 'rails', '3.0.0'
gem 'sqlite3-ruby', :require => 'sqlite3'
gem "compass", ">= 0.10.4" # The CSS framework
gem "ruby-debug", ">= 0.10.3" # enable debug (vital!)
gem "will_paginate", "~> 3.0.pre2" # The de-facto standard pagination gem for table in rails
gem 'hassle', :git => 'git://github.com/koppen/hassle.git', :group => :production # In order to use compass on heroku (read-only)
gem 'jquery-rails' # using jquery instead of prototype with just a gem
gem 'delorean' # getting back in time for testing purposes
gem 'sg-ruby', :git => 'https://github.com/simplegeo/simplegeo-ruby.git' # SimpleGeo gem
我被困了......
答案 0 :(得分:4)
您是否尝试过此地址: GIT中://github.com/simplegeo/simplegeo-ruby.git
而不是 https://github.com/simplegeo/simplegeo-ruby.git“干杯
答案 1 :(得分:3)
lib已重命名 看看这个变化 link 使用simplegeo而不是sg-ruby