prawn
prawn copied to clipboard
Fix spec failures for ruby 3.5
master is currently red. This turns it green.
If you have an alternate solution, please share.
fixes utf-8 vs us-ascii encoding for ruby 3.5-preview1
expected: #<Encoding:UTF-8> "06ce69758c64b0e5f14d09474d94ba580aaa4edca7014c6ab5bc9536b5bb0d0c163425aceff74a0ad3867859f8372e07b96e63822cc0e789549bb3a35d3cf185"
got: #<Encoding:US-ASCII> "4b7fb30d46e11bd6e65e49ea5a01e231be3800712729ca3d2843abd06c5333c7e80fbf5a168c4d3d9a84381424f4b2fcd18478517d47b9b33428168e0a2dfb60"
update: looks like render_file is not working.
A proper fix will fix that and not gloss over it like this PR (changed to a draft)
Did you have a chance to find what changed in 3.5 to make it go red?
@pointlessone Good call. Yes, the output is not the same
At the very least, render_file is broken in ruby 3.5
I did not fix this. there is an actual underlying issue