
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Get a nice, clean badge displaying your Rails Environment or other helpful info. Want to display last deploy date? Or maybe the status of some app wide settings? Throw it in HoneyBadger! He just doesn't care!
Add to your Gemfile:
gem "honey_badger"
In your application layout somewhere, probably just below your body tag, render the honey_badger helper:
<%= honey_badger unless Rails.env.production? %>
If you want to display something other than the current environment name, just pass it in:
<%= honey_badger "Don't Care" %>
Or pass in an array to display more than one interesting fact in your badge (each will be displayed on its own line):
<%= honey_badger ["eats larva", "skin is loose"] %>
Add the require for the css in your application.css (using Rails 3.1 sprockets awesomeness):
/*
*= require honey_badger
*/
Make sure to put the honey_badger
above your own SCSS requires, or else the honey badger might get nasty. It'll just take what it wants.
You can customize colors and add custom environment names by importing honey_badger
into your SCSS file. Let's say you like the color orange and your Rails.env
is staging
:
@import 'honey_badger';
.honey-badger.staging {
@include corner-banner(#f90);
}
To see what else you can customize, take a look at honey_badger.css.scss
.
This project rocks and uses MIT-LICENSE.
FAQs
Unknown package
We found that honey_badger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.