summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-26 22:56:32 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-26 22:56:32 +0900
commitc4ec817a7a6bc104dc1caf9018bc97a2dbfd324e (patch)
tree1c159bcdf9203b686b8370967e571bb7edbb94b8
parent41e3c204fd83660a243fa61f91aeda2a78817a97 (diff)
downloadruby-c4ec817a7a6bc104dc1caf9018bc97a2dbfd324e.tar.gz
Gem::Specification#to_ruby needs OpenSSL
-rw-r--r--lib/rubygems/specification.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb
index d4290d9ffa..4fd556f193 100644
--- a/lib/rubygems/specification.rb
+++ b/lib/rubygems/specification.rb
@@ -2423,6 +2423,7 @@ class Gem::Specification < Gem::BasicSpecification
# still have their default values are omitted.
def to_ruby
+ require 'openssl'
mark_version
result = []
result << "# -*- encoding: utf-8 -*-"