gravatar_image_tag
gravatar_image_tag copied to clipboard
A configurable and documented Rails view helper for adding gravatars into your Rails application
Update URI::Parser for Ruby 2.7.5
Running on Ruby 2.7, I get this warning a lot: vendor/bundle/ruby/2.7.0/gems/gravatar_image_tag-1.2.0/lib/gravatar_image_tag.rb:121: warning: URI.escape is obsolete Everything still seems to work fine, but I'm afraid it might break on a newer...
- [x] Replace obsolete URI.escape method with CGI.escape (no specs failed so it should be fine, I think) - [x] Fix deprecation warnings about using ActionView::Base.new in specs - [x]...
Proposed change to get rid of excessive log file noise when on Ruby 2.7+.
To simplify the use of a self-hosted gravatar service the hostname of gravatar should be configurable. Thanks for considering adding this.
You can consume images just starting the url with `//`instead of use configuration `{secure: true}`. The browser uses the current page location's protocol when the img-src starts with `//`.
I would like to have the `width` and `height` attributes set in most cases, but be able to override this behavior in some cases, when I am using the tag...
Hi! This ``` def self.url_params(gravatar_params) return nil if gravatar_params.keys.size == 0 array = gravatar_params.map { |k, v| "#{k}=#{value_cleaner(v)}" } "?#{array.join('&')}" end ``` causes invalid html, if I run the http://validator.w3.org...