Sha256: 6446390e2c52c5bee2f181821b5497d2f34728aee6618749cdaac47adaf038d5

Contents?: true

Size: 848 Bytes

Versions: 7

Compression:

Stored size: 848 Bytes

Contents

$:.unshift(File.dirname(__FILE__)+"/../lib")
require 'spec'
require 'spec/autorun'
require 'rubyvis'
require 'pp'
require 'nokogiri'
$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

7 entries across 7 versions & 1 rubygems

Version Path
rubyvis-0.1.7 spec/spec_helper.rb
rubyvis-0.1.6 spec/spec_helper.rb
rubyvis-0.1.5 spec/spec_helper.rb
rubyvis-0.1.4 spec/spec_helper.rb
rubyvis-0.1.3 spec/spec_helper.rb
rubyvis-0.1.2 spec/spec_helper.rb
rubyvis-0.1.1 spec/spec_helper.rb