Coder Social home page Coder Social logo

lwe / gravatarify Goto Github PK

View Code? Open in Web Editor NEW
73.0 73.0 8.0 133 KB

Awesome gravatar support for Ruby (and Rails) - with unique options like Proc's for default images, or support for gravatar.com's multiple host names.

Home Page: http://github.com/lwe/gravatarify

License: MIT License

Ruby 100.00%

gravatarify's People

Contributors

dependabot[bot] avatar lwe avatar technoweenie avatar thegcat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

gravatarify's Issues

@2x image sizes

When I do this:

<%= gravatar_tag user.email, size: 20, default: 'mm', secure: true %>

It gives:

<img alt="" height="20" src="......?d=mm&amp;s=20" width="20">

However what I'd really want is a way to have the images display @2x for Retina / high DPI screens, where it ask for ?s=40 from Gravatar and display it in an image tag with height/weight=20 still.

Is there any way to do this?

Server Offline Client Online Question

This is not an issue, but more a question, just to confirm,
will this gem work with gravatar when the server is offline, but the client is online.

Example in an enterprise environment where the servers will not have internet access but the client will.

A quick skim over the code seems to just be generating URL's, which leads me to believe it will but I just need to be certain.

CI on Travis

I realize not much has changed here in the last few months, so this might not get used much, but would you consider a pull request adding support for Travis CI? http://travis-ci.org

Sinatra + Haml + Gravatarify

From: willchinelato

I believe there's a bug in the Gravatarify gem.

I'm using Sinatra + Haml and when I require Gravatarify, its helpers methods doesn't get included in Haml::Helpers.

As a noticed, this happens because ActionSupport gets detected first, causing Haml::Helpers inclusion to be ignored. I guess you could solve this problem by removing the defined?(ActionSupport), but I didn't take the time to analyze the impact.

Anyway, as a temporary solution, I manually included Gravatarify::Helpers in Haml::Helpers:
Haml::Helpers.send(:include, Gravatarify::Helper) if defined?(Haml)

Despite this little problem, this gem helps a lot.

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.