This repository was archived by the owner on Jul 24, 2023. It is now read-only.
Commit e7e9f81
committed
Avoid checking ancestors for constant
When checking if `Digest::HMAC` is defined, we should not check ancestors,
we're only interested if `HMAC` is defined on `Digest`.
This will fix an issue in Ruby 2.2 where `Digest::HMAC` has been removed, but the
current check will result in the `Digest` library trying to load `digest/hmac` in
`Digest.const_missing` and thus causing an error.1 parent 197d002 commit e7e9f81
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
0 commit comments