-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
rake tasks are broken with latest rubygem versions (v. 2 or later) #491
Conversation
Method ForkedCucumberRunner#gem_available? caused an error in rake with the message 'ForkedCucumberRunner'. This occurred when rubygems could not find a gem, then the method falled back to legacy call to the Gem::Module#available? that doesn't exist anymore in rubygems 2 and above.
Method Cucumber::Rake::Task::ForkedCucumberRunner#gem_available? replaced condition on Rubygem version by condition from method gem_available_new_rubygems?
Thanks! If you could help us to investigate why the build has failed on JRuby we'll be able to get this released quicker. |
Hi Matt, When updating my own project macro4cuke yesterday evening, I also got Travis CI failures with two RVM environments: jruby-19mode and ruby-head Looking at the Travis CI log, I discovered that my cucumber fork had exactly the same error message: $ gem --version and so on... Kind regards, From: Matt Wynne notifications@github.com Thanks! |
The JRuby build in Travis CI is now passing while code wasn't changed. |
Disregard what I just said:
|
Dupe of #448 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Method
ForkedCucumberRunner#gem_available?
caused an error in rake withthe message 'undefined method
available?
for Gem:Module'.This occurred when rubygems could not find a gem, then the method falled back to a legacy call to the
Gem::Module#available?
that doesn't exist anymore in rubygems 2 andabove. The fix consists in avoiding to call the obsolete method when Rubygems has version 2 or above.