lib/caboodle/kits/gravatar/gravatar.rb in caboodle-0.2.14 vs lib/caboodle/kits/gravatar/gravatar.rb in caboodle-0.2.15

- old
+ new

@@ -1,17 +1,15 @@ require 'digest/md5' -module Caboodle - class Standard < Caboodle::Kit - - description "Sets the logo of the site to your gravatar.com image" - - optional [:email] - - configure do - if Caboodle::Site.logo_url.to_s.blank? && !Caboodle::Site.email.to_s.blank? - hash = Digest::MD5.hexdigest(Caboodle::Site.email) - Caboodle::Site.logo_url = "http://www.gravatar.com/avatar/#{hash}" - end +class Caboodle::Gravatar < Caboodle::Kit + + description "Sets the logo of the site to your gravatar.com image" + + optional [:email] + + configure do + if Caboodle::Site.logo_url.to_s.blank? && !Caboodle::Site.email.to_s.blank? + hash = Digest::MD5.hexdigest(Caboodle::Site.email) + Caboodle::Site.logo_url = "http://www.gravatar.com/avatar/#{hash}" end end end \ No newline at end of file