From b5949ad62a1bd2f3caee79ad2b4dbbb4d37d1092 Mon Sep 17 00:00:00 2001 From: David Rodriguez Date: Mon, 18 Oct 2021 18:53:09 +0200 Subject: [rubygems/rubygems] Simplify check for ruby-core setup https://github.com/rubygems/rubygems/commit/77bc6f1ecc --- spec/bundler/support/path.rb | 9 +-------- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3