summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodriguez <[email protected]>2021-10-18 18:53:09 +0200
committergit <[email protected]>2024-06-06 18:44:41 +0000
commitb5949ad62a1bd2f3caee79ad2b4dbbb4d37d1092 (patch)
treec04d437a11e54d8e64c396ff00f88884fc4dd418
parent4720b7d257606525def271bfbdbc18fd1bba556a (diff)
[rubygems/rubygems] Simplify check for ruby-core setup
https://github.com/rubygems/rubygems/commit/77bc6f1ecc
-rw-r--r--spec/bundler/support/path.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/spec/bundler/support/path.rb b/spec/bundler/support/path.rb
index 048e0e6018..3ef677d6de 100644
--- a/spec/bundler/support/path.rb
+++ b/spec/bundler/support/path.rb
@@ -258,14 +258,7 @@ module Spec
end
def ruby_core?
- # avoid to warnings
- @ruby_core ||= nil
-
- if @ruby_core.nil?
- @ruby_core = true & ENV["GEM_COMMAND"]
- else
- @ruby_core
- end
+ !ENV["GEM_COMMAND"].nil?
end
def git_root