summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Daloze <[email protected]>2020-04-05 19:58:29 +0200
committerHiroshi SHIBATA <[email protected]>2020-05-08 07:38:50 +0900
commit1464719f5feabaa237902e59f482792641901c1a ()
treed56bfc8e0dcf16570d692e3e35d16130583b5d84
parentbb3d80bbbe0603e9f9689a96c7ce86682053b4dd (diff)
[rubygems/rubygems] Only run the $SAFE test on MRI < 2.7
* Other Ruby implementations don't support $SAFE. https://.com/rubygems/rubygems/commit/9a4ba16efa
Notes: Merged: https://.com/ruby/ruby/pull/3087
-rw-r--r--test/rubygems/test_gem_specification.rb2
1 files changed, 1 insertions, 1 deletions
@@ -944,7 +944,7 @@ dependencies: []
assert_equal File.join(@tempdir, 'a-2.gemspec'), spec.loaded_from
end
- if RUBY_VERSION < '2.7'
def test_self_load_tainted
full_path = @a2.spec_file
write_file full_path do |io|