Socket
Book a DemoInstallSign in
Socket

gravatar-api

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gravatar-api

0.2.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

gravatar-api

A library for easy, object oriented Gravatar API access.

Gem Version Dependency Status

Using the Gem

gravatar-api was designed to use the Gravatar API properly for easy use in web applications (and whatever else you want!).

If you want to see an example of web app source code using gravatar-api check out this.

Examples:

require 'gravatar-api'

profile = Gravatar.new("jessegrantherrick@gmail.com")
# Return the avatar URL with default size (80px)
profile.url
 # => "http://www.gravatar.com/avatar/9f3712c7a02579d7e50cb20d2680eb67"

# Return the avatar URL with a different size (150px)
profile.url(:size => 150)
 # => "http://www.gravatar.com/avatar/9f3712c7a02579d7e50cb20d2680eb67?s=150"

# Return a hash of your given email (as of v0.1.3)
profile.hash!
 # => "9f3712c7a02579d7e50cb20d2680eb67"

The hash!(email) method also works as a class method.

require 'gravatar-api'

Gravatar.hash!("jessegrantherrick@gmail.com")
# => "9f3712c7a02579d7e50cb20d2680eb67"

FAQs

Package last updated on 26 Nov 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.