Sha256: f47016fbb50c0a30fb6f54727edf2b9b60a6955a1e4354e7728aa9d0d2b3dc14
Contents?: true
Size: 353 Bytes
Versions: 2
Compression:
Stored size: 353 Bytes
Contents
require 'digest/md5' module PictureFrom class GravatarPicture # TODO: Gravatar always returns an image. The default Gravatar image should # be rejected. def picture_from_email(email) "http://www.gravatar.com/avatar/#{digest(email)}" end private def digest(email) Digest::MD5.hexdigest(email) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
picture_from-1.0.1 | lib/picture_from/gravatar_picture.rb |
picture_from-1.0.0 | lib/picture_from/gravatar_picture.rb |