lib/rubygems/ext/rake_builder.rb in rubygems-update-3.4.21 vs lib/rubygems/ext/rake_builder.rb in rubygems-update-3.4.22
- old
+ new
@@ -8,10 +8,10 @@
# See LICENSE.txt for permissions.
#++
class Gem::Ext::RakeBuilder < Gem::Ext::Builder
def self.build(extension, dest_path, results, args=[], lib_dir=nil, extension_dir=Dir.pwd)
- if File.basename(extension) =~ /mkrf_conf/i
+ if /mkrf_conf/i.match?(File.basename(extension))
run([Gem.ruby, File.basename(extension), *args], results, class_name, extension_dir)
end
rake = ENV["rake"]