Sha256: fd35fe2389dac708106379d4084fdde26fc4df6b8efa8f34562e53f16958fda2
Contents?: true
Size: 424 Bytes
Versions: 29
Compression:
Stored size: 424 Bytes
Contents
class Pyk::Gravatar #Pyk::Gravatar.dp(email, size) def self.dp(email, size=20) identifier = Digest::MD5.hexdigest((email.blank? ? "" : email).downcase) "http://gravatar.com/avatar/#{identifier}.png?s=#{size}" end #Pyk::Gravatar.profile(email) def self.profile(email) identifier = Digest::MD5.hexdigest((email.blank? ? "" : email).downcase) "http://gravatar.com/#{identifier}" end end
Version data entries
29 entries across 29 versions & 1 rubygems