Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
41976ef
commit a40d9a3
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |