
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
This gem allows you to use Microsoft's Fluent Icons package in a Rails app through the fluent()
helper.
This has been extracted from https://games.directory without any other consideration, as such, if it doesn't work for you, you can either open an Issue or Pull Request.
https://github.com/microsoft/fluentui-system-icons
I'm happy to merge anything that'll make this work with any other Rails app.
Add this line to your application's Gemfile:
gem 'fluent-icons'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install fluent-icons
Plain Ruby FluentIcons::Fluent.new('add', style: 'regular', weight: 20, **options)
Rails fluent('add', style: 'regular', weight: 20, **options)
By default, the helper will use weight: 20
of the SVG icon. However, not all of them have a weight of 20.
If the SVG image is not found, you should try a different weight like so: fluent('add', weight: 24)
With TailwindCSS, you can change the size and color of the icon with fluent('add', class: 'w-4 h-4 fill-current text-green-500')
To avoid having to add the fill-current
class each time, you can add these CSS rules:
.fluent path { @apply fill-current; } /* TailwindCSS with JIT */
.fluent path { fill: currentColor; } /* Plain CSS */
To update the icons, run bin/update
. This will copy all the icons from the FluentUI Icon library to the lib/data/svg
directory and create the new data.json
with the updated schema.
After checking out the repo, run bin/setup
to install dependencies.
Bug reports and pull requests are welcome on GitHub at https://github.com/studio51/fluent-ui-icons. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the Fluent::Icons project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
FAQs
Unknown package
We found that fluent-icons demonstrated a healthy version release cadence and project activity because the last version was released less than 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
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.