【问题标题】:Referencing the (unreleased) activesupport 4.0 gem in a Gemfile在 Gemfile 中引用(未发布的)activesupport 4.0 gem
【发布时间】:2013-01-26 12:03:31
【问题描述】:

有没有办法在 Gemfile 中引用位于 Github 上 Rails git repo 子目录中的任何 Rails 4 gem(activesupport、activerecord、activemodel 等)?我有一个库,我想针对 activesupport 4 运行其测试,由于该 gem 没有发布版本,我必须参考 git repo。

【问题讨论】:

    标签: bundler gemfile ruby-on-rails-4


    【解决方案1】:

    只需将 Bundler 指向 git 存储库。 Bundler 将在根目录或具有 gems 名称的目录中搜索 gem。

    source :rubygems
    
    gem 'activerecord', :git => 'git@github.com:rails/rails.git'
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-05-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多