seattlerb / zentest

144 stars 72 forks source link

Illformed requirement in 4.8.4 #31

Closed joshminnie closed 11 years ago

joshminnie commented 11 years ago

I'm getting the following error when I try to install ZenTest 4.8.4:

Invalid gemspec in [/path/to/file/ZenTest-4.8.4.gemspec]: Illformed requirement ["< 2.1, >= 1.8"]

I couldn't find your gemspec file in the repo, otherwise I would've made a pull request, but the line that is the problem is line 7 in the gemspec in the Gem::Requirements.new call. It should be formatted as follows:

s.required_rubygems_version = Gem::Requirement.new(["< 2.1",">= 1.8"]) if s.respond_to? :required_rubygems_version=

http://rubygems.rubyforge.org/rubygems-update/Gem/Requirement.html#method-c-new

DevL commented 11 years ago

It seems as if Rubygems 1.8.25 handles it, whereas 1.8.24 doesn't.

mike-burns commented 11 years ago

This is the commit: https://github.com/seattlerb/zentest/commit/99c4a39041c3431eae3ad838b7e663933b2d0c2e

zenspider commented 11 years ago

Dupe of #29 and #30. Closing.