0.0
No commit activity in last 3 years
No release in over 3 years
A gem for getting profile pictures.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 1.3
~> 0.14
~> 10.4
~> 3.1
~> 0.28
~> 0.9

Runtime

~> 1.6
 Project Readme

PictureFrom

Build Status Code Climate Test Coverage

PictureFrom is the most efficient library for getting profile pictures.

Installation

gem install picture_from

Usage

Using PictureFrom is pretty simple! First, make sure the library is required:

require 'picture_from'

Pass an user information to the library's interface:

PictureFrom.url('zuck')
# => http://graph.facebook.com/zuck/picture

PictureFrom.url('Mark Zuckerberg')
# => http://graph.facebook.com/zuck/picture

PictureFrom.url('@unclebobmartin')
# => https://pbs.twimg.com/profile_images/1102364992/clean_code_72_color_400x400.png

PictureFrom.url('karreiro@gmail.com')
# => http://www.gravatar.com/avatar/16be5820a296f5bce151f0c1b5e16fc8 

Engines

PicutreFrom has many engines for finding the appropriate image for any user in your application:

  • Gravatar
    • by e-mail
  • Facebook
    • by username
    • by e-mail
    • by user information
  • Twitter
    • by username

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