2
試圖運行ZenTestZenTest 4.9.3所示爲無效gemspec
Invalid gemspec in [/usr/local/rvm/gems/ruby-1.9.3-p194/specifications/ZenTest-4.9.3.gemspec]: Illformed requirement ["< 2.1, >= 1.8"].
時候我已經試圖消除ZenTest 4.9.3和寶石我不斷收到此錯誤安設ZenTest 4.8.3,但該版本無法找到在任何存儲庫中,所以它會自動安裝ZenTest 4.9.3,它會一直存在錯誤,因此我無法運行spork或autotest。有沒有辦法解決?謝謝!
這裏是我的Gemfile:
source 'https://rubygems.org'
gem 'rails', '3.2.11'
gem 'spork'
gem 'rspec-core'
gem 'autotest', '4.4.6'
gem 'autotest-rails', '4.1.2'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
group :development, :test do
gem 'sqlite3'
gem 'rspec-rails'
gem 'webrat'
gem 'capybara'
gem 'Zentest', '4.8.3'
end
group :production do
gem 'pg'
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'debugger'
謝謝Arpit!我意識到我實際上已經完成了這些步驟,但是我也在我的gem文件中編寫了Zentest,當時它應該是ZenTest,它給出了另一個錯誤。現在解決了。再一次,謝謝! –
即使這樣做後,我仍然收到這些錯誤。安裝寶石時會出現這些錯誤。這似乎只發生在ruby 1.9.3-p362上。 – Automatico
有同樣的問題1.9.3-p255和ZenTest 4.9.5,這個排序,歡呼 –