1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Add a CI test for basic rubygems functionality without openssl

The whole test suite actually passes on my system, but it has weird
errors in CI. Since I don't want to spend time on it, instead of running
the whole test suite, I'm just adding a bare test to check that `gem
list` works.

a40d9a394a
This commit is contained in:
David Rodríguez 2020-07-11 11:08:35 +02:00 committed by Hiroshi SHIBATA
parent 9057e9c7b1
commit 69881a41f2
Notes: git 2020-07-31 21:08:13 +09:00

21
util/remove_openssl.rb Normal file
View file

@ -0,0 +1,21 @@
# frozen_string_literal: true
require "rbconfig"
require "fileutils"
archdir = RbConfig::CONFIG["archdir"]
rubylibdir = RbConfig::CONFIG["rubylibdir"]
default_specifications_dir = Gem.default_specifications_dir
openssl_rb = File.join(rubylibdir, "openssl.rb")
openssl_gemspec = Dir.glob("#{default_specifications_dir}/openssl-*.gemspec").first
openssl_ext = if RUBY_PLATFORM == "java"
File.join(rubylibdir, "jopenssl.jar")
else
File.join(archdir, "openssl.so")
end
FileUtils.mv openssl_rb, openssl_rb + "_"
FileUtils.mv openssl_ext, openssl_ext + "_"
FileUtils.mv openssl_gemspec, openssl_gemspec + "_" if openssl_gemspec