зеркало из https://github.com/github/ruby.git
[rubygems/rubygems] Move openssl require to a separate file
So it can be reused. https://github.com/rubygems/rubygems/commit/b9fc6e40db
This commit is contained in:
Родитель
6b14249c98
Коммит
69fa0d6d30
|
@ -0,0 +1,7 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
begin
|
||||||
|
require "openssl"
|
||||||
|
rescue LoadError => e
|
||||||
|
raise unless e.path == 'openssl'
|
||||||
|
end
|
|
@ -7,12 +7,7 @@
|
||||||
|
|
||||||
require 'rubygems/exceptions'
|
require 'rubygems/exceptions'
|
||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
|
require_relative 'openssl'
|
||||||
begin
|
|
||||||
require 'openssl'
|
|
||||||
rescue LoadError => e
|
|
||||||
raise unless e.path == 'openssl'
|
|
||||||
end
|
|
||||||
|
|
||||||
##
|
##
|
||||||
# = Signing gems
|
# = Signing gems
|
||||||
|
|
Загрузка…
Ссылка в новой задаче