yob / pdf-reader

The PDF::Reader library implements a PDF parser conforming as much as possible to the PDF specification from Adobe.
MIT License
1.82k stars 271 forks source link

Update sorbet to the latest release #513

Closed yob closed 1 year ago

yob commented 1 year ago

srb init has been deprecated in favour of tapioca [1], so switch to that at the same time. A few small code changes are included as well, to keep the new version of sorbet happy.

Sadly, I had to revert a few files from typed: strict back to typed: true. These have constants and the workaround from [2] no longer works in the new sorbet version.

Also required not loading sorbet on ruby < 3.0. Seems like sometime between 0.5.10001 and 0.5.10821 sorbet changed to only supporting ruby 3.0+

[1] https://sorbet.org/blog/2022/07/27/srb-tapioca [2] https://github.com/sorbet/sorbet/issues/5137

yob commented 1 year ago

😳

2023-05-13_13-58