progrium/ruby-jwt — pull request #34 by tjmw (2014-02-03 21:41:46+00:00)
Title: Raise JWT::DecodeError on nil token

Raise `JWT::DecodeError` when the token value is nil.

Before this change passing nil results in `NoMethodError: undefined method `split' for nil:NilClass`. Hopefully the `JWT::DecodeError` exception is more helpful as feedback.

Thanks