seattlerb / zentest

144 stars 72 forks source link

Illformed requirement ["< 2.1, >= 1.8"] #40

Closed Ye-Yuan closed 9 years ago

Ye-Yuan commented 11 years ago

Illformed requirement ["< 2.1, >= 1.8"] Could not find ZenTest-4.9.1 in any of the sources

Just not sure why this happened when I trying to start rails server.

zeevallin commented 11 years ago

I'm getting the same thing.

jmccaffrey commented 11 years ago

I see from other closed issues that this is a Dupe of #29, #30, & #31 which suggest updating rubygems and reinstalling the zentest gem I also tested just changing the gemspec line to ["< 2.1",">= 1.8"], and that seemed to work too.

zeevallin commented 11 years ago

Thank you!

Sent from my iPhone

On 24 apr 2013, at 20:11, John McCaffrey notifications@github.com wrote:

I see from other closed issues that this is a Dupe of #29, #30, & #31 which suggest updating rubygems and reinstalling the zentest gem I also tested just changing the gemspec line to ["< 2.1",">= 1.8"], and that seemed to work too.

— Reply to this email directly or view it on GitHub.

wikimatze commented 11 years ago

Hi, I'm having the same error. Running gem version ~1.8.0. After upgrading to ~2.0.3 the error went away.

chewi commented 11 years ago

Note for JRuby 1.7 + RVM users, you have to explicitly request latest-2.0 or it will refuse to install.

rvm rubygems latest-2.0
wikimatze commented 11 years ago

I'm using rbenv!

tansaku commented 11 years ago

we've been getting this too: http://stackoverflow.com/questions/15006181/zentest-errors-preventing-autotest-from-running/15006306#15006306

zenspider commented 11 years ago

@tansaku that is not the right fix. Please upgrade rubygems, uninstall zentest and reinstall zentest.

tansaku commented 11 years ago

thanks - that does indeed appear to be a more stable fix :-)

hecbuma commented 11 years ago

I'm using rbenv and update rubygems worked for me

nathany commented 11 years ago

@zenspider I am running RubyGems 1.8.24 for a Ruby 1.8.7 / Rails 2.x rescue project in order to match the version of RubyGems that Heroku supplies.

My solution is to lock ZenTest to 4.8.3:

gem "ZenTest", "4.8.3"    # Malformed gemspec in newer versions
warbot commented 11 years ago

Would agree with @nathany . It's also possible to edit the spec file with ["< 2.1, >= 1.8"] -> [">= 1.8"]. Rubygems v2 has some bugs yet so I'm forced to stick to rubygems -v 1.8.24 with ZenTest to 4.8.3

zzak commented 11 years ago

This has already been fixed

jacqueline-homan commented 11 years ago

I am having problems getting this to work and I tried all the suggested fixes here. zentest gem error

tansaku commented 11 years ago

that error message indicates that you need to prepend "sudo", i.e. "sudo gem uninstall ZenTest"

zenspider commented 11 years ago

@zzak yeah, this has been fixed... but if I close it, someone opens a new one instead of searching through the tickets. shrug

jacqueline-homan commented 11 years ago

I got it fixed. I edited the gems spec file by removing the ">=1.80" and now it works just fine.

marcoalacot commented 10 years ago

In order to fix this:

Update rubygems and reinstall ZenTest

gem update --system gem uninstall ZenTest gem install ZenTest

wikimatze commented 10 years ago

Puh I didn't try it out for a long time and give it a try in the near future.

zenspider commented 9 years ago

Since most people have moved on to newer versions of rubygems this issue seems moot. Closing for now...but I may reopen and just leave it forever if the issue rises again.

Update your rubygems, folks! It's good for you!

jayands commented 8 years ago

I had this issue, too--- the simplest solution is to remove the spaces in the requirements, i.e., from Gem::Requirement.new(["< 3.0", ">= 1.8"]) to Gem::Requirement.new(["<3.0", ">=1.8"]). This will enable it to work with older rubies (1.9.3-p551, in this case) even if you keep rubygems up-to-date.

Also, sorry for necroposting.