Skip to content

Commit 63272ea

Browse files
Merge pull request #7976 from rubygems/deivid-rodriguez/gem-command-usable-outside-of-ruby-core
Make ruby-core check not depend on ENV (cherry picked from commit 6965950)
1 parent a908154 commit 63272ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bundler/spec/support/env.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module Spec
44
module Env
55
def ruby_core?
6-
!ENV["GEM_COMMAND"].nil?
6+
File.exist?(File.expand_path("../../../lib/bundler/bundler.gemspec", __dir__))
77
end
88
end
99
end

0 commit comments

Comments
 (0)