Skip to content

Fix deprecation warning under Ruby 2.2.0#470

Merged
semmons99 merged 1 commit into
RubyMoney:masterfrom
aripollak:ruby-2.2.0-deprecation-fix
Dec 27, 2014
Merged

Fix deprecation warning under Ruby 2.2.0#470
semmons99 merged 1 commit into
RubyMoney:masterfrom
aripollak:ruby-2.2.0-deprecation-fix

Conversation

@aripollak
Copy link
Copy Markdown
Member

This changes the behavior of == if you have exchange set up, so maybe this should only go into a new major release to keep semantic versioning?

* Arithmetic#== was not being used, Comparable#== was instead, so it was
  using <=> for comparison but swallowing any exceptions
* Fixes #469
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.18%) when pulling ae29309 on aripollak:ruby-2.2.0-deprecation-fix into 82e3f5c on RubyMoney:master.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.18%) when pulling 83313a4 on aripollak:ruby-2.2.0-deprecation-fix into 82e3f5c on RubyMoney:master.

semmons99 added a commit that referenced this pull request Dec 27, 2014
Fix deprecation warning under Ruby 2.2.0
@semmons99 semmons99 merged commit 917369d into RubyMoney:master Dec 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecation warning for == under Ruby 2.2.0

3 participants