# File lib/gravatarify/base.rb, line 48 def gravatar_url(email, *params) url_options = Utils.merge_gravatar_options(*params) email_hash = Digest::MD5.hexdigest(Utils.smart_email(email)) extension = (ext = url_options.delete(:filetype) and ext != '') ? ".#{ext || 'jpg'}" : '' # slightly adapted from gudleik's implementation host = Base.gravatar_host(self, email_hash, url_options.delete(:secure)) "#{host}/avatar/#{email_hash}#{extension}#{Base.gravatar_params(email, url_options)}" end