Skip to content

Commit

Permalink
More workarounds
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Oct 25, 2024
1 parent d112e37 commit 5180c92
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions ext/json/ext/generator/generator.c
Original file line number Diff line number Diff line change
Expand Up @@ -1507,4 +1507,6 @@ void Init_generator(void)
usascii_encindex = rb_usascii_encindex();
utf8_encindex = rb_utf8_encindex();
binary_encindex = rb_ascii8bit_encindex();

rb_require("json/ext/generator/state");
}
3 changes: 0 additions & 3 deletions lib/json/ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ module Ext
else
require 'json/ext/parser'
require 'json/ext/generator'
unless RUBY_ENGINE == 'jruby'
require 'json/ext/generator/state'
end
$DEBUG and warn "Using Ext extension for JSON."
JSON.parser = Parser
JSON.generator = Generator
Expand Down
2 changes: 1 addition & 1 deletion lib/json/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module JSON
VERSION = '2.7.4.rc1'
VERSION = '2.7.4.rc2'
end

0 comments on commit 5180c92

Please sign in to comment.