Module: GoodGuide::Gibbon

Defined in:
lib/goodguide/gibbon.rb,
lib/goodguide/gibbon/version.rb

Defined Under Namespace

Modules: Util Classes: AbstractClient, Context, Failure, JS, MissingData, Program, QueryError, RuntimeClient, RuntimeError, SemanticError, StaticClient

Class Method Summary collapse

Class Method Details

.dev_js_libObject



114
115
116
# File 'lib/goodguide/gibbon.rb', line 114

def self.dev_js_lib
  root.join('vendor/gibbon/gibbon.browser.dev.js')
end

.js_libObject



110
111
112
# File 'lib/goodguide/gibbon.rb', line 110

def self.js_lib
  root.join('vendor/gibbon/gibbon.browser.js')
end

.js_sourceObject



118
119
120
# File 'lib/goodguide/gibbon.rb', line 118

def self.js_source
  @js_source ||= File.read(js_lib)
end

.rootObject



106
107
108
# File 'lib/goodguide/gibbon.rb', line 106

def self.root
  Pathname.new(__FILE__).dirname.parent.parent
end

.versionObject



5
6
7
# File 'lib/goodguide/gibbon/version.rb', line 5

def self.version
  JSON.load(File.read('vendor/gibbon/package.json'))['version']
end