Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

motion-gravatar

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

motion-gravatar

  • 0.0.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Generate Gravatar URLs in RubyMotion

Generate the URL for a user's Gravatar image by providing an email address, image size, and optional default image URL.

Install

Use Bundler to manage gems in RubyMotion.

Rakefile

$:.unshift("/Library/RubyMotion/lib")
require 'motion/project'
require 'bundler'
Bundler.require

Motion::Project::App.setup do |app|
  # Use `rake config' to see complete project settings.
  app.name = 'Testing'
end

Gemfile

source :rubygems

gem 'motion-gravatar'

Run bundle install.

Usage

email = 'brian@brianpattison.com'
size = 512
defaultURL = 'http://example.com/gravatar/default.jpg'
url = Gravatar.getURL(email, size, defaultURL)

Both size and defaultURL are optional. If not provided, Gravatar's defaults will be used, which is 80px for the size and the Gravatar logo as the default image if one does not exist for the provided email address.

Thanks

Thanks to @MugunthKumar for the Objective-C side with Gravatar!

FAQs

Package last updated on 28 Jun 2012

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc