Sha256: d19be6ca4d37cb21edd48c34c1e754a83741c5b25cfeae0667e2af26d8ad7de0
Contents?: true
Size: 829 Bytes
Versions: 1
Compression:
Stored size: 829 Bytes
Contents
$:.unshift(File.dirname(__FILE__)+"/../lib") require 'spec' require 'spec/autorun' require 'rubyvis' require 'pp' $PROTOVIS_DIR=File.dirname(__FILE__)+"/../vendor/protovis/src" module Rubyvis class JohnsonLoader begin require 'johnson' def self.available? true end rescue LoadError def self.available? false end end attr_accessor :runtime def initialize(*files) files=["/pv.js","/pv-internals.js", "/data/Arrays.js","/data/Numbers.js", "/data/Scale.js", "/data/QuantitativeScale.js", "/data/LinearScale.js","/color/Color.js","/color/Colors.js","/text/Format.js", "/text/DateFormat.js","/text/NumberFormat.js","/text/TimeFormat.js"]+files files.uniq! files=files.map {|v| $PROTOVIS_DIR+v} @runtime = Johnson.load(*files) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubyvis-0.1.0 | spec/spec_helper.rb |