philnash / pwned

😱 An easy, Ruby way to use the Pwned Passwords API.
https://rubygems.org/gems/pwned/
MIT License
426 stars 22 forks source link

Add global default request_options #26

Closed c960657 closed 2 years ago

c960657 commented 2 years ago

Instead of specifying request_options on all validators in your code, it would be useful to be able to specify global defaults.

philnash commented 2 years ago

Hey @c960657, thanks for this it looks good. I've had a brief look through and can't see any problems. Will have a poke at it over the weekend and hopefully release a new version next week with this addition.

philnash commented 2 years ago

This is released as version 2.4.0 now.