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

Version Path
pyk-0.3.2 lib/pyk/gravatar.rb
pyk-0.3.1 lib/pyk/gravatar.rb
pyk-0.3.0 lib/pyk/gravatar.rb
pyk-0.2.9 lib/pyk/gravatar.rb
pyk-0.2.8 lib/pyk/gravatar.rb
pyk-0.2.7 lib/pyk/gravatar.rb
pyk-0.2.6 lib/pyk/gravatar.rb
pyk-0.2.5 lib/pyk/gravatar.rb
pyk-0.2.3 lib/pyk/gravatar.rb
pyk-0.2.2 lib/pyk/gravatar.rb
pyk-0.2.1 lib/pyk/gravatar.rb
pyk-0.2.0 lib/pyk/gravatar.rb
pyk-0.1.9 lib/pyk/gravatar.rb
pyk-0.1.8 lib/pyk/gravatar.rb
pyk-0.1.6 lib/pyk/gravatar.rb
pyk-0.1.5 lib/pyk/gravatar.rb
pyk-0.1.4 lib/pyk/gravatar.rb
pyk-0.1.3 lib/pyk/gravatar.rb
pyk-0.1.2 lib/pyk/gravatar.rb
pyk-0.1.1 lib/pyk/gravatar.rb