New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add docs to Crypto::Bcrypt
#9647
Add docs to Crypto::Bcrypt
#9647
Conversation
8198294
to
c3af0ce
Compare
I'm not sure about this. |
@straight-shoota For a more advanced wrapper, there is |
I think it is great for the user to know what is the default salt value in the API docs. I can split to two overload though, one for |
An other option is to merge |
I actually don't see any benefit from this.
The method not being tested can be fixed by adding a test. The added documentation is also great. But I wouldn't change the API because it's exactly like it should be. |
Regarding |
I don't agree @straight-shoota , because one could use |
Anyway, ok. I'll do the non-controversial changes here, first, and open an issue for broader API improvements about the Bcrypt class. |
When calling |
f082b3f
to
d499863
Compare
I didn't add a test, because |
That's probably fine. It's tested indirectly through the specs for |
Co-authored-by: Sijawusz Pur Rahnama <sija@sija.pl>
8bf9415
to
08af313
Compare
These are now just docs, can we move forward please? |
Anything blocking the PR? |
This method is untested, and is a little variation of the "standard"Crypto::Bcrypt.new
constructor.There are also other points I think can be improved inCrypto::Bcrypt
, I have kept this PR minimal.Only adding docs on this PR.