Skip to content

arokettu/vishnu

Repository files navigation

Vishnu

Gem Gitlab pipeline status

Vishnu is a simple library to use Libravatar avatars in your ruby app.

Libravatar is an avatar service to let their users associate avatar images with their emails or openids. This rubygem generates their avatar URL.

Installation

Add the following line to your Gemfile:

gem 'vishnu'

Or if you want to register Libravatar alias, then:

gem 'vishnu', require: 'libravatar'

Simple Usage

Vishnu.new(email:  'someone@example.com').url   # get avatar for email
Vishnu.new(openid: 'https://example.com').url   # get avatar for OpenID URL

Documentation

Read full documentation here: https://sandfox.dev/ruby/vishnu.html

Support

Please file issues on our main repo at GitLab: https://gitlab.com/sandfox/vishnu/-/issues

License

Licensed under the MIT License. See LICENSE.txt for further details.