Skip to content

Commit

Permalink
Add is_password? method type to BCrypt::Password class (#566)
Browse files Browse the repository at this point in the history
  • Loading branch information
euglena1215 authored May 26, 2024
1 parent f513742 commit 1352680
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions gems/bcrypt/3.1/_test/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

hashed_password == raw_password
hashed_password == raw_password.to_s
hashed_password.is_password?(raw_password)

# BCrypt::Engine
BCrypt::Engine.cost = 5
Expand Down
1 change: 1 addition & 0 deletions gems/bcrypt/3.1/bcrypt.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module BCrypt
def self.valid_hash?: (String h) -> bool
def initialize: (String raw_hash) -> void
def ==: (_ToS secret) -> bool
alias is_password? ==
end

class Engine
Expand Down

0 comments on commit 1352680

Please sign in to comment.