【问题标题】:bundle install does not find my gem!捆绑安装找不到我的宝石!
【发布时间】:2011-01-25 00:07:13
【问题描述】:

我正在使用 simplegeo 并且 ruby​​gems.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)'

这是我的 gemfile (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

我被卡住了……

【问题讨论】:

    标签: ruby-on-rails git gem bundler


    【解决方案1】:

    您是否尝试过使用此地址: git://github.com/simplegeo/simplegeo-ruby.git

    而不是 https://github.com/simplegeo/simplegeo-ruby.git'

    干杯

    【讨论】:

      【解决方案2】:

      lib 被重命名 看看这个变化 link 使用 simplegeo 代替 sg-ruby

      【讨论】:

        猜你喜欢
        • 2013-04-19
        • 1970-01-01
        • 2017-12-17
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2022-11-10
        • 1970-01-01
        • 2021-07-12
        相关资源
        最近更新 更多