-
-
Save guimello/745112 to your computer and use it in GitHub Desktop.
Revisions
-
Arcath revised this gist
Jul 21, 2010 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ def gravatar_url(email,options = {}) require 'digest/md5' hash = Digest::MD5.hexdigest(email) url = "http://www.gravatar.com/avatar/#{hash}" -
Arcath revised this gist
Jul 21, 2010 . 1 changed file with 11 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,12 @@ def gravatar_url(email,options) require 'digest/md5' hash = Digest::MD5.hexdigest(email) url = "http://www.gravatar.com/avatar/#{hash}" options.each do |option| option == options.first ? url+="?" : url+="&" key = option[0].to_s value = option[1].to_s url+=key + "=" + value end url end -
Arcath created this gist
Jul 19, 2010 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ def gravatar_url(email) require 'digest/md5' hash = Digest::MD5.hexdigest(email) "http://www.gravatar.com/avatar/#{hash}" end