-
Notifications
You must be signed in to change notification settings - Fork 365
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
Prevent Ruby 1.8 error with rescue clause #123
Conversation
👍 this causes sadness |
In Ruby 1.8, the final line of the math_error_classes method would return nil if Math::DomainError was not defined. That would cause the rescue in distance_between_sphere to be effectively `rescue *nil`, which produces "TypeError: class or module required for rescue clause".
Travis build is failing to bundle on 1.8.7. I'm looking into it though I don't see how it can be related to this change... |
Actually, really confused how bundle can possibly be failing since the line in |
It looks like Travis has been erroring on all the recent 1.8.7 builds (https://travis-ci.org/geokit/geokit/builds) so I think it's unrelated. It builds fine for me locally. |
Thank you @ggilder The ruby 1.8 errors are fixed in the latest rubygems release so that's fine. 2 things:
|
Sure, adding |
@mnoack would you mind cutting a new release with this fix? |
No problem. Done 1.8.4 released |
In Ruby 1.8, the final line of the math_error_classes method would
return nil if Math::DomainError was not defined. That would cause the
rescue in distance_between_sphere to be effectively
rescue *nil
, whichproduces "TypeError: class or module required for rescue clause".