diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-04-04 11:36:47 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-04-04 12:46:02 +0900 |
commit | 514b415d90cee7675d96d0a44af059a56d3ac235 (patch) | |
tree | 41cc42a19ea18aff53ce0fd8b9a437a6f594b3e0 /ext/json | |
parent | 066bd28cff75b752b0af90dce933fa382dee0406 (diff) | |
download | ruby-514b415d90cee7675d96d0a44af059a56d3ac235.tar.gz |
[flori/json] Warn to install ostruct if json couldn't load it
https://github.com/flori/json/commit/fff285968d
Diffstat (limited to 'ext/json')
-rw-r--r-- | ext/json/lib/json/generic_object.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/json/lib/json/generic_object.rb b/ext/json/lib/json/generic_object.rb index b7b8b04ec4..56efda6495 100644 --- a/ext/json/lib/json/generic_object.rb +++ b/ext/json/lib/json/generic_object.rb @@ -2,6 +2,7 @@ begin require 'ostruct' rescue LoadError + warn "JSON::GenericObject requires 'ostruct'. Please install it with `gem install ostruct`." end module JSON |