[flori/json] Warn to install ostruct if json couldn't load it

https://github.com/flori/json/commit/fff285968d
This commit is contained in:
Hiroshi SHIBATA 2024-04-04 11:36:47 +09:00
parent 066bd28cff
commit 514b415d90

View File

@ -2,6 +2,7 @@
begin
require 'ostruct'
rescue LoadError
warn "JSON::GenericObject requires 'ostruct'. Please install it with `gem install ostruct`."
end
module JSON