
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
Manic is a static site generator, with configuration in ruby.
bin/manic
looks for config.manic
in the current working directory.. parsing site into output
Manic.config do
# set global variables
site_title "Manic static site example
author "Justin Baker"
# extend with helper method
plugin TagHelper
plugin "filename"
# add helper method for use in templates
img_tag lambda{|src| "<img src=\"#{src}\" />"}
end
Plugins are as basic as they can be. The API consists of just a module with helper methods.
By default, all files in plugins
will be autoloaded and available. This doesn't mean you can't load plugins other ways.
Calling plugin ModuleName
or plugin "filename"
in the Manic config file will load a plugin.
Helper methods can also be defined inside the Manic config by passing a lambda.
Manic.config do
img_tag lambda{|src| "<img src=\"#{src}\" />"}
end
Now you have an img_tag
helper method available to you.
FAQs
Unknown package
We found that manic 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
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.