[flori/json] Warn to install ostruct if json couldn't load it
https://github.com/flori/json/commit/fff285968d
This commit is contained in:
parent
066bd28cff
commit
514b415d90
@ -2,6 +2,7 @@
|
||||
begin
|
||||
require 'ostruct'
|
||||
rescue LoadError
|
||||
warn "JSON::GenericObject requires 'ostruct'. Please install it with `gem install ostruct`."
|
||||
end
|
||||
|
||||
module JSON
|
||||
|
Loading…
x
Reference in New Issue
Block a user