aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorbronzdoc <lsagastume1990@gmail.com>2019-05-29 20:22:52 -0600
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-09-26 17:48:00 +0900
commit8f2379b0c5e182eb6e417431cbdcf2a0edfba71a (patch)
tree57a2331def25e02e9210c99fbef547d3c9583dd0 /lib
parent508afe2c26737e0be60a72faa9d6740a06b0914c (diff)
downloadruby-8f2379b0c5e182eb6e417431cbdcf2a0edfba71a.tar.gz
[rubygems/rubygems] Make ruby_code method handle OpenSSL::PKey::RSA objects
https://github.com/rubygems/rubygems/commit/b1d825ab3a
Diffstat (limited to 'lib')
-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 b3db311cbf..ff54400c3b 100644
--- a/lib/rubygems/specification.rb
+++ b/lib/rubygems/specification.rb
@@ -2303,6 +2303,7 @@ class Gem::Specification < Gem::BasicSpecification
when Time then obj.strftime('%Y-%m-%d').dump
when Numeric then obj.inspect
when true, false, nil then obj.inspect
+ when OpenSSL::PKey::RSA then obj.class
when Gem::Platform then "Gem::Platform.new(#{obj.to_a.inspect})"
when Gem::Requirement then
list = obj.as_list