-
-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZenTest gem doesn't install due to invalid gemspec file #30
Comments
This is a dupe of #29
|
Thanks! |
Had the same with 4.9.0 - got fixed by this:
as reported by zenspider |
For whatever reason, I couldn't uninstall ZenTest (maybe because I upgraded RubyGems first?) without getting the same error message about an illformed requirement. The solution was to manually edit the gemspec, and then (mostly to verify that RubyGems is working properly) uninstall and reinstall:
|
i did all % gem update --system |
Same problem here with my Homebrew ruby, I fixed it by editing:
and changing the string on line 7:
to
|
@charlesreid1 as stated multiple times, this is not the proper solution |
If your solution is to run
then your solution did not work. The error message is thrown by gem, it's always thrown by gem, no matter what command you run. Only way to fix it is using a non-gem command. |
If you are using Ruby 1.9 kindly navigate to folder "Invalid gemspec in [/var/lib/gems/1.9.1/specifications/ZenTest-4.10.0.gemspec]: Illformed requirement ["< 3.0, >= 1.8"] but will install and work. |
$ gem install ZenTest
Invalid gemspec in [/home/demo/.rvm/gems/ruby-1.9.3-p374/specifications/ZenTest-4.8.4.gemspec]: Illformed requirement ["< 2.1, >= 1.8"]
Invalid gemspec in [/home/demo/.rvm/gems/ruby-1.9.3-p374/specifications/ZenTest-4.8.4.gemspec]: Illformed requirement ["< 2.1, >= 1.8"]
Invalid gemspec in [/home/demo/.rvm/gems/ruby-1.9.3-p374/specifications/ZenTest-4.8.4.gemspec]: Illformed requirement ["< 2.1, >= 1.8"]
Successfully installed ZenTest-4.8.4
1 gem installed
Invalid gemspec in [/home/demo/.rvm/gems/ruby-1.9.3-p374/specifications/ZenTest-4.8.4.gemspec]: Illformed requirement ["< 2.1, >= 1.8"]
Installing ri documentation for ZenTest-4.8.4...
Installing RDoc documentation for ZenTest-4.8.4...
$ autotest
'Invalid gemspec in [/home/demo/.rvm/gems/ruby-1.9.3-p374/specifications/ZenTest-4.8.4.gemspec]: Illformed requirement ["< 2.1, >= 1.8"]
/home/demo/.rvm/rubies/ruby-1.9.3-p374/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in
to_specs': Could not find ZenTest (>= 0) amongst [bundler-1.2.3, rake-10.0.3, rubygems-bundler-1.1.0, rvm-1.11.3.6] (Gem::LoadError) from /home/demo/.rvm/rubies/ruby-1.9.3-p374/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in
to_spec'from /home/demo/.rvm/rubies/ruby-1.9.3-p374/lib/ruby/site_ruby/1.9.1/rubygems.rb:1231:in
gem' from /home/demo/.rvm/gems/ruby-1.9.3-p374/bin/autotest:18:in
from /home/demo/.rvm/gems/ruby-1.9.3-p374/bin/ruby_noexec_wrapper:14:in
eval' from /home/demo/.rvm/gems/ruby-1.9.3-p374/bin/ruby_noexec_wrapper:14:in
'The text was updated successfully, but these errors were encountered: