Skip to content

TypeError in Ruby 2.2.0 and later #3

Description

@brandt

As of Ruby 2.2.0, digest-sha3 v1.0.2 now produces a TypeError. The problem also occurs in the current 2.3.0-dev build.

The problem doesn't occur in earlier versions of Ruby (verified: 1.9.3-p448, 2.0.0-p451, 2.1.2, 2.1.5).

Example:

2.2.0> require 'digest/sha3'
 => true
2.2.0> Digest::SHA3.digest("foo")
TypeError: wrong argument type Digest::SHA3 (expected digest)
    from (irb):2:in `reset'
    from (irb):2:in `digest'
    from (irb):2:in `digest'
    from (irb):2
    from /Users/bbuckley/.cache/rbenv/versions/2.2.0/bin/irb:11:in `<main>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions