clbustos/statsample — pull request #23 by justin808 (2014-07-14 00:13:15+00:00)
Title: Raising in equality precludes working with AwesomePrint

Second comparison of this method in awesome_print/formatter.rb causes
the crash.

Without this fix, pry + awesome_print cannot be used, as even a simple
case such as

[1, 2, 3].to_scale

will crash

awesome_print/formatter.rb
# Catch all method to format an arbitrary object.
#------------------------------------------------------------------------------
def awesome_self(object, type)
if @options[:raw] && object.instance_variables.any?
awesome_object(object)
elsif object == ENV
awesome_hash(object.to_hash)
else
colorize(object.inspect.to_s, type)
end
end