[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
|
begin
|
||||||
require 'ostruct'
|
require 'ostruct'
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
|
warn "JSON::GenericObject requires 'ostruct'. Please install it with `gem install ostruct`."
|
||||||
end
|
end
|
||||||
|
|
||||||
module JSON
|
module JSON
|
||||||
|
Loading…
x
Reference in New Issue
Block a user