Refactor Ruby `verify` method for securing webhooks

- replace deprecated usage of `OpenSSL::Digest::Digest` with `OpenSSL::Digest`
- prefer `::SHA256.new` over `.new('sha256')`
- break down statement into multiple steps so it's easier to understand
- remove superfluous return statement