crystal-community/jwt

Build failing with Crystal 0.25.0

Closed this issue · 1 comments

Error in line 1: while requiring "./spec/integration/algorithms/none_spec.cr"

in spec/integration/algorithms/none_spec.cr:13: instantiating 'JWT:Module#decode(String, String, String)'

    decoded_token = JWT.decode(token, secret_key, alg)
                        ^~~~~~

in src/jwt.cr:40: instantiating 'validate_aud!(Hash(String, JSON::Any), Nil)'

    validate_aud!(payload, opts[:aud]?) if opts[:aud]?
    ^~~~~~~~~~~~~

in src/jwt.cr:106: instantiating 'Array(T)#includes?(Nil)'

      if !auds.includes?(aud)
               ^~~~~~~~~

in /usr/share/crystal/src/enumerable.cr:530: instantiating 'any?()'

    any? { |e| e == obj }
    ^~~~

in /usr/share/crystal/src/enumerable.cr:69: instantiating 'each()'

    each { |e| return true if yield e }
    ^~~~

in /usr/share/crystal/src/indexable.cr:148: instantiating 'each_index()'

    each_index do |i|
    ^~~~~~~~~~

in /usr/share/crystal/src/indexable.cr:148: instantiating 'each_index()'

    each_index do |i|
    ^~~~~~~~~~

in /usr/share/crystal/src/enumerable.cr:69: instantiating 'each()'

    each { |e| return true if yield e }
    ^~~~

in /usr/share/crystal/src/enumerable.cr:530: instantiating 'any?()'

    any? { |e| e == obj }
    ^~~~

in /usr/share/crystal/src/enumerable.cr:530: undefined method '==' for I

    any? { |e| e == obj }
                 ^

Rerun with --error-trace to show a complete error trace.

I recommend to set up daily builds with Travis, it helps to fix errors early.

/cc @veelenga

Will take care of it.