Can't install ZenTest 4.8.4

◇◆丶佛笑我妖孽 提交于 2019-12-21 08:18:23

问题


When I try to install ZenTest:

gem install ZenTest

I get the following error:

Invalid gemspec in [C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/specifications/ZenTest-4.8.4.gemspec]: Illformed requirement ["< 2.1, >= 1.8"]

I tried cleaning up the gems and removing the ZenTest to no avail.

What's wrong?


回答1:


I've just spoken with Ryan Davis, the author of ZenTest. He tells me that this is due to a bug in RubyGems and they're preparing a release that fixes it.

In the meantime, downgrade to 4.8.3.




回答2:


Updating rubygems to 1.8.25 seems to fix the problem (https://github.com/seattlerb/zentest/issues/28)




回答3:


to cleanup the gem, move the gemspec file to some other location.

e.g: in ubuntu to cleanup the gem, do

sudo mv /var/lib/gems/1.8/specifications/ZenTest-4.8.4.gemspec /var/tmp/


来源:https://stackoverflow.com/questions/14488605/cant-install-zentest-4-8-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!