
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Chart Helpers is a gem that can parse markdown-like text and turn it into SVG files.
Add this line to your application's Gemfile:
gem 'chart_helpers'
And then execute:
$ bundle
Or install it yourself as:
$ gem install charts_helpers
require 'charts_helpers'
chart = <<EOF
gantt
title My Title
numberFormat .%2f
row 0, :group1, 0.000, 0.100
row 1, :group1, 0.100, 0.200
row 2, :group1, 0.200, 0.300
EOF
ChartHelpers.render_chart(chart, 'my_chart.svg')
require 'charts_helpers'
chart = <<EOF
graph
A-->B
subgraph Name
B--text-->C
end
EOF
ChartHelpers.render_chart(chart, 'my_chart.svg')
Supported arrows:
Line Type | |
---|---|
A-->B | Solid arrow |
B---C | Solid line |
C--text-->D | Solid arrow with label |
D--text---E | Solid line with label |
E-.text.->F | Dotted arrow with label |
F-.->G | Dotted arrow |
G==>H | Bold arrow |
H==text===>I | Bold line with text |
Full support for GraphViz's .dot format
require 'charts_helpers'
chart = <<EOF
graph graphname {
a -- b -- c;
b -- d;
}
EOF
ChartHelpers.render_chart(chart, 'my_chart.svg')
After checking out the repo, run bin/setup
to install dependencies. It is developed using the ruby version indicated in dev.yml
. You will also need the homebrew packages listed in dev.yml
, or the corresponding Linux packages if you are using Linux.
Then, run bin/testunit
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/ChartHelpers. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
FAQs
Unknown package
We found that chart_helpers 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.