Fix Money#== and Ruby 2.2 deprecation warning#528
Conversation
|
Waiting for all my green lights, then I'll merge. |
Fix Money#== and Ruby 2.2 deprecation warning
|
@jimpo @semmons99 there are warning after this pr was merged: |
|
Interesting. Is that in the test suite for this gem or another application? Could you show the line in your application that caused it? |
|
i've run |
|
Yeah. Please provide more info as we're not able to reproduce locally or on CI. |
|
It issues the warning in Ruby 2.2.1, not Ruby 2.2.2. The issue is that I guess we need to decide what the behavior of |
|
Can you open another ticket and ping all collabs? Also, feel free to submit a PR that just does what you think it should 😄 |
|
Continuing discussion here. |
#470 made a breaking change to the behavior of
Money#==. This reverts the change in #470 while still removing the deprecation warning.Ruby 2.2 warns that
<=>should returnnilon invalid comparisons rather than raise an error.Fixes #469.