From 69881a41f22e6d76ce23c97e7026783ea8f2d07c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Sat, 11 Jul 2020 11:08:35 +0200 Subject: [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. https://github.com/rubygems/rubygems/commit/a40d9a394a --- util/remove_openssl.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 util/remove_openssl.rb (limited to 'util') diff --git a/util/remove_openssl.rb b/util/remove_openssl.rb new file mode 100644 index 0000000000..c47e335391 --- /dev/null +++ b/util/remove_openssl.rb @@ -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 -- cgit v1.2.3