You give it an email. It gives you a Gravatar. What more do you want?
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.document
.gitignore
.travis.yml
Gemfile
LICENSE.txt
README.md
Rakefile
aggravatar.gemspec

README.md

Aggravatar Build Status Code Climate

You give it an email, it gives you a Gravatar URL. What more do you want?

Installation

Add this line to your application's Gemfile:

gem 'aggravatar'

And then execute:

$ bundle

Or install it yourself as:

$ gem install aggravatar

Usage

require "aggravatar"

Aggravatar.gravatar_url "adam@adamtanner.org", size: 200, rating: "g", force_default: true
# => "http://www.gravatar.com/avatar/11591979f29ab9c2bb58868232d07b88?size=200&rating=g&forcedefault=y

Aggravatar.secure_gravatar_url "adam@adamtanner.org", default: "http://example.com/images/avatar.jpg"
# => "https://secure.gravatar.com/avatar/11591979f29ab9c2bb58868232d07b88?default=http%3A%2F%2Fexample.com%2Fimages%2Favatar.jpg"

Supported Platforms

  • Ruby 1.9.3
  • JRuby (1.9 mode)
  • Rubinius (1.9 mode)

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Copyright

Copyright (c) 2009 Adam Tanner. See License for details.