summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2025-11-29 07:18:43 +0900
committergit <svn-admin@ruby-lang.org>2025-11-28 23:43:24 +0000
commitf18bedaf96d950a69ae18df9a7eeea6754224c20 (patch)
tree738092e440a13ff69cb84f6e1f3b73be6cc48e05
parentbb2e4d58cce135d3609dba1ee17ed614522a88bf (diff)
[ruby/rubygems] Use String#include? with suggested by Performance/StringInclude cop
https://github.com/ruby/rubygems/commit/fdd3419144
-rw-r--r--lib/rubygems/ext/ext_conf_builder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/ext/ext_conf_builder.rb b/lib/rubygems/ext/ext_conf_builder.rb
index 745cf08b6c..bc70ed67fb 100644
--- a/lib/rubygems/ext/ext_conf_builder.rb
+++ b/lib/rubygems/ext/ext_conf_builder.rb
@@ -40,7 +40,7 @@ class Gem::Ext::ExtConfBuilder < Gem::Ext::Builder
end
ENV["DESTDIR"] = nil
- unless RbConfig::CONFIG["MAKE"] =~ /nmake/
+ unless RbConfig::CONFIG["MAKE"]&.include?("nmake")
ENV["MAKEFLAGS"] ||= "-j#{Etc.nprocessors + 1}"
end