Please sign in to comment.
Fix segmentation fault in Ruby 2.0.0-p353.
In Ruby 2.0.0-p353 there was a [commit](ruby/ruby@66915c5) that switched case matching from actual sending `===` method to magic lookup, that does not see it in `method_missing`. It's hard to predict how exactly and when exactly this bug will be solved so here I suggest a solution of defining it in Duration directly. In Ruby 2.0.0-p353 without the added fix added test crashes to segmentation fault.
- Loading branch information...
Showing with 13 additions and 0 deletions.