wicked_pdf icon indicating copy to clipboard operation
wicked_pdf copied to clipboard

Remove usage of `OpenStruct` or add `ostruct` as dependency

Open Earlopain opened this issue 9 months ago • 1 comments

Issue description

Hey there, I saw https://github.com/mileszs/wicked_pdf/pull/1110 which added a require of ostruct to work around an error.

ostruct is on its way to be a bundled gem and Ruby 3.4 will warn if it is required without being specified as a dependency. https://github.com/ruby/ruby/pull/10428

So I suggest removing the usage to avoid breaking in Ruby 3.5. Adding it to the gemspec is also a solution.

Earlopain avatar May 13 '24 06:05 Earlopain