Handle environment where GEM_HOME is not available
This commit is contained in:
parent
dc3d2a3c2f
commit
167985dc87
Notes:
git
2025-01-30 09:13:35 +00:00
@ -22,7 +22,7 @@ describe "Gem.bin_path" do
|
||||
end
|
||||
|
||||
skip "Could not find the default gemspecs" unless Dir.exist?(default_specifications_dir)
|
||||
skip "default_specifications_dir mismatch with GEM_HOME" unless default_specifications_dir.include?(ENV['GEM_HOME'])
|
||||
skip "default_specifications_dir mismatch with GEM_HOME" if ENV["GEM_HOME"] && !default_specifications_dir.start_with?(ENV['GEM_HOME'])
|
||||
|
||||
Gem::Specification.each_spec([default_specifications_dir]) do |spec|
|
||||
spec.executables.each do |exe|
|
||||
|
Loading…
x
Reference in New Issue
Block a user