gpt4 book ai didi

ruby-on-rails - 降级 gem 的正确方法是什么?

转载 作者:行者123 更新时间:2023-12-03 10:57:55 33 4
gpt4 key购买 nike

我最近安装了 Rails3.1-Devise-Rspec-Cucumber Starter App使用下面列出的 Gemfile。这创建了一个 Gemfile.lock 文件(下面的相关片段),其中包含 factory_girl 2.0.0rc3。不幸的是,这个版本的FactoryGirl 显然是completely busted .

强制我的包使用 factory_girl 2.0.0.rc1 而不是 2.0.0rc3 的正确方法是什么?

gem 文件:

source 'http://rubygems.org'
gem 'rails', '3.1.0.rc4'
gem 'mysql2'
gem 'sass-rails', "~> 3.1.0.rc"
gem 'coffee-script'
gem 'uglifier'
gem 'jquery-rails'
gem "therubyracer", ">= 0.8.2"
gem "rspec-rails", ">= 2.6.1", :group => [:development, :test]
gem "factory_girl_rails", ">= 1.1.beta1", :group => :test
gem "cucumber-rails", ">= 1.0.0", :group => :test
gem "capybara", ">= 1.0.0", :group => :test
gem "database_cleaner", ">= 0.6.7", :group => :test
gem "launchy", ">= 0.4.0", :group => :test
gem "devise", ">= 1.3.4"

Gemfile.lock 的相关片段
factory_girl (2.0.0.rc3)
factory_girl_rails (1.1.rc1)
factory_girl (~> 2.0.0.rc)
railties (>= 3.0.0)

最佳答案

gem "factory_girl", "2.0.0.rc1", :group => :test

在您的 gem 文件中,然后运行
bundle update factory_girl

关于ruby-on-rails - 降级 gem 的正确方法是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6626514/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com