
Security News
Rspack Introduces Rslint, a TypeScript-First Linter Written in Go
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
Add gravatars to your ruby project as simple as possible.
Add it to your Gemfile and run the bundle
command:
gem 'simple_gravatar'
Include de module where you want to use it:
class UserDecorator
include SimpleGravatar
def initialize(user)
@user = user
end
def gravatar
gravatar_url @user.email
end
end
Include the module in ActionView::Base
, let's say, in
config/initializers/simple_gravatar.rb
:
ActionView::Base.send(:include, SimpleGravatar) if defined? ActionView::Base
and use it anywhere in your views:
<%= image_tag gravatar_url('patriciomacadden@gmail.com') %>
Include the module as a helper:
helpers SimpleGravatar
get '/' do
gravatar_url 'patriciomacadden@gmail.com'
end
All available options are the specified by Gravatar API documentation.
git checkout -b my_awesome_branch
)git commit -am "Added some magic"
)git push origin my_awesome_branch
)See the LICENSE.
FAQs
Unknown package
We found that simple_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
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
Security News
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.