You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

plot

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

plot - rubygems Package Compare versions

Comparing version
0.1.0
to
0.1.1
+12
-1
lib/plot/mark.rb

@@ -85,3 +85,14 @@ class Plot::MarkProxy

"Plot['#{@type}'](JSON.parse('#{JSON.generate(data)}'), JSON.parse('#{JSON.generate(@options)}'))"
data.each do |d|
d.each do |k,v|
if v.class == Date then
d[k] = {
date: true,
string: v.to_s
}
end
end
end
"Plot['#{@type}'](JSON.parse(`#{JSON.generate(data)}`).map((obj) => { Object.keys(obj).forEach((k) => { if (obj[k].date) { obj[k] = new Date(Date.parse(obj[k].string)) } } ); return obj; }), JSON.parse('#{JSON.generate(@options)}'))"
end

@@ -88,0 +99,0 @@