
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Squid helps you write Ruby code to draw graphs in PDF files.
The source code is available on GitHub and the documentation on RubyDoc.
Prawn is a great Ruby library to generate PDF files but lacks high-level components to draw graphs.
Squid adds a single method chart(data = {}, options = {})
to Prawn.
Provide the data
to plot as a hash, with each key/value representing a series.
For instance, the following code generates the graph below:
data = {views: {2013 => 182, 2014 => 46, 2015 => 134}}
chart data
All the settings available for the chart
method are detailed on the Squid homepage:
Please proceed to http://fullscreen.github.io/squid for more details and examples.
Squid requires Ruby 2.2 or higher. If used in a Rails project, requires Rails 4.0 or higher.
To include in your project, add gem 'squid', '~> 1.4'
to the Gemfile
file of your Ruby project.
rake manual
If you’ve made it this far in the README… thanks! :v: Feel free to try it the gem, explore the code, and send issues or pull requests.
All pull requests will have to make Travis and Code Climate happy in order to be accepted. :kissing_smiling_eyes:
You can also run the tests locally with bundle exec rspec
.
Happy hacking!
FAQs
Unknown package
We found that squid 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
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.