[前][次][番号順一覧][スレッド一覧]

ruby-changes:62488

From: David <ko1@a...>
Date: Fri, 31 Jul 2020 21:09:02 +0900 (JST)
Subject: [ruby-changes:62488] 69881a41f2 (master): [rubygems/rubygems] Add a CI test for basic rubygems functionality without openssl

https://git.ruby-lang.org/ruby.git/commit/?id=69881a41f2

From 69881a41f22e6d76ce23c97e7026783ea8f2d07c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...>
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

diff --git a/util/remove_openssl.rb b/util/remove_openssl.rb
new file mode 100644
index 0000000..c47e335
--- /dev/null
+++ b/util/remove_openssl.rb
@@ -0,0 +1,21 @@ https://github.com/ruby/ruby/blob/trunk/util/remove_openssl.rb#L1
+# 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 v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]