Commit 17a8701b53ff97626f522f8ae1dcbabc3af61fcd
Made exception classes descend from StandardError, not Exception.
git-svn-id: http://bcrypt-ruby.rubyforge.org/svn/trunk@41 b1e0f299-433e-4bb3-9895-84128a6cfb6acodahale committed on 11/22/2007, 7:55:09 PM
Parent: 1133c7504687c6affcf846bedee5fa83bf74cc8a
Files changed
CHANGELOG | changed |
lib/bcrypt.rb | changed |
CHANGELOG | ||
---|---|---|
@@ -12,5 +12,8 @@ | ||
12 | 12 | - Fixed crashes when hashing weird values (e.g., false, etc.) |
13 | 13 | |
14 | 14 | 2.0.2 Jun 06 2007 |
15 | 15 | - Fixed example code in the README [Winson] |
16 | - - Fixed Solaris compatibility [Jeremy LaTrasse, Twitter crew] | |
16 | + - Fixed Solaris compatibility [Jeremy LaTrasse, Twitter crew] | |
17 | + | |
18 | +SVN Blah | |
19 | + - Made exception classes descend from StandardError, not Exception [Dan42] |
lib/bcrypt.rb | ||
---|---|---|
@@ -7,12 +7,12 @@ | ||
7 | 7 | # A Ruby library implementing OpenBSD's bcrypt()/crypt_blowfish algorithm for |
8 | 8 | # hashing passwords. |
9 | 9 | module BCrypt |
10 | 10 | module Errors |
11 | - class InvalidSalt < Exception; end # The salt parameter provided to bcrypt() is invalid. | |
12 | - class InvalidHash < Exception; end # The hash parameter provided to bcrypt() is invalid. | |
13 | - class InvalidCost < Exception; end # The cost parameter provided to bcrypt() is invalid. | |
14 | - class InvalidSecret < Exception; end # The secret parameter provided to bcrypt() is invalid. | |
11 | + class InvalidSalt < StandardError; end # The salt parameter provided to bcrypt() is invalid. | |
12 | + class InvalidHash < StandardError; end # The hash parameter provided to bcrypt() is invalid. | |
13 | + class InvalidCost < StandardError; end # The cost parameter provided to bcrypt() is invalid. | |
14 | + class InvalidSecret < StandardError; end # The secret parameter provided to bcrypt() is invalid. | |
15 | 15 | end |
16 | 16 | |
17 | 17 | # A Ruby wrapper for the bcrypt() extension calls. |
18 | 18 | class Engine |
Built with git-ssb-web