Skip to content

Commit 57e1507

Browse files
nobumatzbot
authored andcommitted
[rubygems/rubygems] Workaround for TruffleRuby that set nil to LIBRUBY_RELATIVE
rubygems/rubygems@06fd399973
1 parent 378e65a commit 57e1507

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/rubygems/test_gem_ext_builder.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,10 +323,10 @@ def self.expand(val, config = CONFIG); val; end
323323
end
324324
RUBY
325325
RbConfig::CONFIG.each do |k, v|
326-
f.puts %(RbConfig::CONFIG[#{k.dump}] = #{v.dump})
326+
f.puts %(RbConfig::CONFIG[#{k.dump}] = #{v&.dump || "nil"})
327327
end
328328
RbConfig::MAKEFILE_CONFIG.each do |k, v|
329-
f.puts %(RbConfig::MAKEFILE_CONFIG[#{k.dump}] = #{v.dump})
329+
f.puts %(RbConfig::MAKEFILE_CONFIG[#{k.dump}] = #{v&.dump || "nil"})
330330
end
331331
f.puts "RbConfig::CONFIG['host_os'] = 'fake_os'"
332332
f.puts "RbConfig::CONFIG['arch'] = 'fake_arch'"

0 commit comments

Comments
 (0)