[ruby/erb] Rename erb.so to erb/escape.so

(https://github.com/ruby/erb/pull/35)

https://github.com/ruby/erb/commit/1280046952
This commit is contained in:
Takashi Kokubun 2022-11-24 15:21:56 -08:00 committed by git
parent 04a92a6764
commit c480f589c2
5 changed files with 5 additions and 5 deletions

View File

@ -84,7 +84,7 @@ erb_escape_html(VALUE self, VALUE str)
}
void
Init_erb(void)
Init_escape(void)
{
rb_cERB = rb_define_class("ERB", rb_cObject);
rb_mUtil = rb_define_module_under(rb_cERB, "Util");

View File

@ -0,0 +1,2 @@
require 'mkmf'
create_makefile 'erb/escape'

View File

@ -1,2 +0,0 @@
require 'mkmf'
create_makefile 'erb'

View File

@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
spec.platform = 'java'
else
spec.required_ruby_version = '>= 2.7.0'
spec.extensions = ['ext/erb/extconf.rb']
spec.extensions = ['ext/erb/escape/extconf.rb']
end
spec.add_dependency 'cgi', '>= 0.3.3'

View File

@ -1000,7 +1000,7 @@ class ERB
#
begin
# ERB::Util.html_escape
require 'erb.so'
require 'erb/escape'
rescue LoadError
def html_escape(s)
CGI.escapeHTML(s.to_s)