Class: Gem::Specification

Inherits:
BasicSpecification
  • Object
show all
Defined in:
lib/hoe/debug.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#old_ruby_codeObject

:nodoc: :nodoc:



101
102
103
104
105
106
107
108
109
110
# File 'lib/hoe/debug.rb', line 101

def ruby_code(obj) # :nodoc:
  old_ruby_code obj
rescue Gem::Exception => e
  case e.message
  when /OpenSSL/
    "nil"
  else
    raise
  end
end

#ruby_code(obj) ⇒ Object

:nodoc:



103
104
105
106
107
108
109
110
111
112
# File 'lib/hoe/debug.rb', line 103

def ruby_code(obj) # :nodoc:
  old_ruby_code obj
rescue Gem::Exception => e
  case e.message
  when /OpenSSL/
    "nil"
  else
    raise
  end
end