voxpupuli / json-schema

Ruby JSON Schema Validator
MIT License
1.52k stars 241 forks source link

Add missing require 'stringio' #512

Closed jmarrec closed 1 month ago

jmarrec commented 1 month ago

In some cases, such a statically built ruby 3.x, I definitely get NameError: uninitialized constant IO::StringIO

bastelfreak commented 1 month ago

I think that's a bug in the ruby version you're using, but I think it won't hurt us to explicitly require it. I had similar issues with json in other projects.

jmarrec commented 1 month ago

@bastelfreak What I meant by "statically built ruby" iss that I use a ruby built with --enable-static and --with-static-linked-ext which is indeed unusual. Thanks for the merge!