Commit 5345e99
Dave O
Install latest ostruct to fix JSON parsing into an OpenStruct
The OpenStruct implementation differs between Ruby 2.7 and 3.1. The
latter comes with OpenStruct 0.5.2. That version has a bug that was
fixed [here](ruby/ostruct#37).
The TL;DR of the impact of that bug in this repo is that brakeman
includes JSON with an attribute named `class`. This shadows the normal
`class` method and causes `self.class.ancestors` to blow up. The fix
uses the aliased `class!` method to do the Right Thing™.1 parent 9c4ade4 commit 5345e99
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
0 commit comments