Remove binary data at installation

And revert "Relaxed warning assertions",
6f9be8505d.
This commit is contained in:
Nobuyoshi Nakada 2019-11-11 12:19:40 +09:00
Родитель 6f9be8505d
Коммит 390293525a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4BC7D6DF58D8DF60
2 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -509,11 +509,11 @@ class TestGemRequire < Gem::TestCase
_, err = capture_subprocess_io do
system(@@ruby, "-w", "-rpp", "--disable=gems", "-I", lib, "-C", dir, "-I.", "main.rb")
end
assert_includes err, "main.rb:1: warning: uplevel\ntest\n"
assert_equal "main.rb:1: warning: uplevel\ntest\n", err
_, err = capture_subprocess_io do
system(@@ruby, "-w", "-rpp", "--enable=gems", "-I", lib, "-C", dir, "-I.", "main.rb")
end
assert_includes err, "main.rb:1: warning: uplevel\ntest\n"
assert_equal "main.rb:1: warning: uplevel\ntest\n", err
end
end
@ -524,11 +524,11 @@ class TestGemRequire < Gem::TestCase
_, err = capture_subprocess_io do
system(@@ruby, "-w", "-rpp", "--disable=gems", "-I", lib, "-C", dir, "-I.", "main.rb")
end
assert_includes err, "{:x=>1}\n{:y=>2}\n"
assert_equal "{:x=>1}\n{:y=>2}\n", err
_, err = capture_subprocess_io do
system(@@ruby, "-w", "-rpp", "--enable=gems", "-I", lib, "-C", dir, "-I.", "main.rb")
end
assert_includes err, "{:x=>1}\n{:y=>2}\n"
assert_equal "{:x=>1}\n{:y=>2}\n", err
end
end
end

Просмотреть файл

@ -838,7 +838,7 @@ def install_default_gem(dir, srcdir)
puts "#{INDENT}#{gemspec.name} #{gemspec.version}"
gemspec_path = File.join(default_spec_dir, "#{full_name}.gemspec")
open_for_install(gemspec_path, $data_mode) do
gemspec.to_ruby
gemspec.to_ruby.gsub(/.*\0.*\n/, '')
end
specific_gem_dir = File.join(gem_dir, 'gems', full_name)