FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add == gotcha that can be unintuitive at first by federicoaldunate · Pull Request #279 · bcrypt-ruby/bcrypt-ruby · GitHub

Repository navigation

Add == gotcha that can be unintuitive at first - #279

Merged
tenderlove merged 1 commit into
bcrypt-ruby:masterfrom
federicoaldunate:fix-eql-comment
Oct 29, 2024
Merged

tenderlove merged 1 commit into
bcrypt-ruby:masterfrom
federicoaldunate:fix-eql-comment

Conversation

Copy link
Copy Markdown
Contributor

Closes: #266

Unless String == method is redefined, this should be false. This might be unintuitive at first glance.

'string' == BCrypt::Password.create('string') # => False, method of class String is used
BCrypt::Password.create('string') == 'string' # => True, method of class Password is used

tenderlove merged commit 9736ab0 into bcrypt-ruby:master Oct 29, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

Unexpected implementation of == method in Password class

2 participants


Back | FazBrowse Home | New Git URL