From 9d522cc44d256bcad157f9dc351c7dfce146c848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Wed, 28 Aug 2024 12:30:35 +0200 Subject: [rubygems/rubygems] Make ruby-core check not depend on ENV I found it useful to be able to use `GEM_COMMAND` outside of a ruby-core env, so I made the ruby-core env detection not depend on it. https://github.com/rubygems/rubygems/commit/6cb389c290 --- spec/bundler/support/env.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/bundler/support/env.rb b/spec/bundler/support/env.rb index 4d99c892cd..2d13c449fe 100644 --- a/spec/bundler/support/env.rb +++ b/spec/bundler/support/env.rb @@ -3,7 +3,7 @@ module Spec module Env def ruby_core? - !ENV["GEM_COMMAND"].nil? + File.exist?(File.expand_path("../../../lib/bundler/bundler.gemspec", __dir__)) end end end -- cgit v1.2.3