aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-03-16 13:38:45 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-03-17 18:50:55 +0900
commitd8c5fa963fbf34d10599fff571f87c36410dab13 (patch)
tree924ae2807b0cecfa114cab4f435df1fd4e4e3533 /lib/rubygems.rb
parent66bd2c1a1cea53dec4cf2d9e625ac01d3418863e (diff)
downloadruby-d8c5fa963fbf34d10599fff571f87c36410dab13.tar.gz
[rubygems/rubygems] util/rubocop -A --only Style/YodaCondition
https://github.com/rubygems/rubygems/commit/3594945391
Diffstat (limited to 'lib/rubygems.rb')
-rw-r--r--lib/rubygems.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb
index 756e7ed008..619ed385f7 100644
--- a/lib/rubygems.rb
+++ b/lib/rubygems.rb
@@ -454,7 +454,7 @@ An Array (#{env.inspect}) was passed in from #{caller[3]}
# distinction as extensions cannot be shared between the two.
def self.extension_api_version # :nodoc:
- if "no" == RbConfig::CONFIG["ENABLE_SHARED"]
+ if RbConfig::CONFIG["ENABLE_SHARED"] == "no"
"#{ruby_api_version}-static"
else
ruby_api_version
@@ -731,7 +731,7 @@ An Array (#{env.inspect}) was passed in from #{caller[3]}
if prefix != File.expand_path(RbConfig::CONFIG["sitelibdir"]) &&
prefix != File.expand_path(RbConfig::CONFIG["libdir"]) &&
- "lib" == File.basename(RUBYGEMS_DIR)
+ File.basename(RUBYGEMS_DIR) == "lib"
prefix
end
end