Skip to content

Conversation

@Laykou
Copy link

@Laykou Laykou commented Jan 18, 2022

No description provided.

marcoroth added a commit to marcoroth/stimulus_reflex that referenced this pull request Jan 18, 2022
See: ruby/ostruct#37
Co-Authored-By: Ladislav Gallay <ladislav.gallay@lentil.sk>
marcoroth added a commit to marcoroth/stimulus_reflex that referenced this pull request Jan 18, 2022
See: ruby/ostruct#37
Co-Authored-By: Ladislav Gallay <ladislav.gallay@lentil.sk>
@marcandre marcandre merged commit 7258535 into ruby:master Jan 18, 2022
@marcandre
Copy link
Member

Great catch, thank you!

@marcandre
Copy link
Member

Released as 0.5.3

marcoroth added a commit to stimulusreflex/stimulus_reflex that referenced this pull request Jan 20, 2022
…es (#569)

See: ruby/ostruct#37
Co-Authored-By: Ladislav Gallay <ladislav.gallay@lentil.sk>

Co-authored-by: Ladislav Gallay <ladislav.gallay@lentil.sk>
dobrite pushed a commit to planningcenter/balto-brakeman that referenced this pull request Jun 30, 2022
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™.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants