Permalink
Browse files

Shift the paths aronud some more

  • Loading branch information...
sstephenson committed Feb 7, 2011
1 parent cdb4db4 commit 910ba90fb774efa28e89f72b85ae544c4c11a508
View
@@ -13,10 +13,10 @@ Gem::Specification.new do |s|
"lib/execjs.rb",
"lib/execjs/external_runtime.rb",
"lib/execjs/rhino_runtime.rb",
- "lib/execjs/runners",
- "lib/execjs/runners/basic.js",
- "lib/execjs/runners/node.js",
"lib/execjs/runtimes.rb",
+ "lib/execjs/support",
+ "lib/execjs/support/basic_runner.js",
+ "lib/execjs/support/node_runner.js",
"lib/execjs/v8_runtime.rb"
]
View
@@ -19,4 +19,8 @@ def self.eval(source)
def self.runtime
@runtime ||= Runtimes.best_available
end
+
+ def self.root
+ @root ||= File.expand_path("../execjs", __FILE__)
+ end
end
View
@@ -14,10 +14,6 @@ def self.define_runtime(name, options)
const_set(name, runtime)
end
- def self.runner_path(path)
- File.expand_path("../runners/#{path}", __FILE__)
- end
-
define_runtime :V8,
:as => V8Runtime
@@ -28,18 +24,18 @@ def self.runner_path(path)
:command => "v8",
:test_args => "--help",
:test_match => /--crankshaft/,
- :runner_path => runner_path("basic.js")
+ :runner_path => ExecJS.root + "/support/basic_runner.js"
define_runtime :Node,
:command => ["nodejs", "node"],
- :runner_path => runner_path("node.js")
+ :runner_path => ExecJS.root + "/support/node_runner.js"
define_runtime :JSC,
:command => "/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc",
- :runner_path => runner_path("basic.js")
+ :runner_path => ExecJS.root + "/support/basic_runner.js"
define_runtime :Spidermonkey,
:command => "js",
- :runner_path => runner_path("basic.js")
+ :runner_path => ExecJS.root + "/support/basic_runner.js"
end
end
File renamed without changes.
File renamed without changes.

0 comments on commit 910ba90

Please sign in to comment.