![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
C2PO is a grammar of graphics implementation inspired by Hadley Wickham's ggplot2 library. This Rubygem uses the free online C2PO compiler and is limited to 1 MB of data. Plot specifications are compiled directly to an SVG string, which is returned:
require 'c2po'
#Make some random data:
data = 20.times.collect do
{:a => 10*rand, :b => 5*rand}
end
#Specify a simple scatterplot graphic:
scatterplot_spec = {
:data => data,
:geom => :point,
:mapping => {:x => :a, :y => :b}}
#Render an SVG string:
C2PO.render scatterplot_spec
#=>
For the plain client library, run
gem install c2po
or add
c2po, "0.0.1"
to your Gemfile
.
If you want to learn the grammar and work interactively with the examples in /examples
, just clone this repo:
git clone https://github.com/keminglabs/c2po-ruby
install the deps:
cd examples
bundle install
then run:
bundle exec guard
to launch a live-reloading web server on localhost:3000
for displaying graphics.
Walk through and execute the example code in examples/1-usage.rb
to get started.
FAQs
Unknown package
We found that c2po 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.