
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Gravatar.com, mainly known for its avatar hosting. But users can store more than only an avatar at gravatar.
This gem also allows you to easily access it all (accounts at other social networks, more photo's, the name of the user, saved websites, cryptocurrency accounts and more)
Add this line to your application's Gemfile:
gem 'easy_gravatar'
And then execute:
$ bundle
Or install it yourself as:
$ gem install easy_gravatar
Creating an instance is easy:
user = EasyGravatar::Gravatar.new("[email protected]")
Or use the even shorter class Gravatar:
user = Gravatar.new("[email protected]")
After creating an instance you can get some basics fast using
user.full_name # => the full name of the user
user.avatar # => the avatar from the user, in the default gravatar width of 80 pixels
user.avatar(150) # => the avatar from the user, in with a width of 150 pixels
Feel free to contribute to the project and add your own "short getters".
All the available information is saved in a hash. Use user.hash
to get the hash. As an alternative it is also possible to easily read from the hash.
user.get_value(:formattedName) # => also gives the full name
user.get_value(:currency, :bitcoin) # => gives the users bitcoin address
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that easy_gravatar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.