bin/jspec in jspec-2.11.10 vs bin/jspec in jspec-2.11.12

- old
+ new

@@ -10,11 +10,11 @@ require 'server/server' RHINO = 'java org.mozilla.javascript.tools.shell.Main' program :name, 'JSpec' -program :version, '2.11.10' +program :version, '2.11.12' program :description, 'JavaScript BDD Testing Framework' default_command :bind command :init do |c| c.syntax = 'jspec init [dest]' @@ -256,10 +256,14 @@ root = JSPEC_ROOT end paths.each do |path| path = File.join dest, path - contents = File.read(path).gsub 'JSPEC_ROOT', root + if path.include? 'dom' + contents = File.read(path).gsub 'JSPEC_ROOT/', '' + else + contents = File.read(path).gsub 'JSPEC_ROOT', root + end File.open(path, 'w') { |file| file.write contents } end end ##