diff options
| author | tompng <tomoyapenguin@gmail.com> | 2024-04-03 18:43:24 +0900 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-04-04 12:46:01 +0900 |
| commit | 066bd28cff75b752b0af90dce933fa382dee0406 (patch) | |
| tree | 3a5e63784f3a276124754bd4763346236ab96b32 /ext | |
| parent | 0930231361a72e4c45fde8865e29473fa8e76fce (diff) | |
[flori/json] Autoload GenericObject to avoid require ostruct warning in Ruby 3.4
https://github.com/flori/json/commit/b507f9e404
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/json/lib/json/common.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/json/lib/json/common.rb b/ext/json/lib/json/common.rb index 090066012d..95098d3bb4 100644 --- a/ext/json/lib/json/common.rb +++ b/ext/json/lib/json/common.rb @@ -1,8 +1,9 @@ #frozen_string_literal: false require 'json/version' -require 'json/generic_object' module JSON + autoload :GenericObject, 'json/generic_object' + NOT_SET = Object.new.freeze private_constant :NOT_SET |
