codahale/bcrypt-ruby — pull request #53 by trevorturk (2012-11-13 23:55:26+00:00)
Title: Password cost should be set to DEFAULT_COST if nil

While working on a Pull Request for the Rails `SecurePassword` module, @jeremy and I noticed that passing a `cost` of `nil` to BCrypt::Password#create causes an exception. We thought it'd be nice to fall back to DEFAULT_COST instead.