bin/jazrb in smparkes-jazrb-0.0.8 vs bin/jazrb in smparkes-jazrb-0.0.9
- old
+ new
@@ -6,16 +6,20 @@
ENV["JAZRB_JS_PATH"] = JAZ_DIR = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'jazrb'))
INTRO = File.join(JAZ_DIR, "intro.js")
OUTRO = File.join(JAZ_DIR, "outro.js")
-args = [ "envjsrb", INTRO ];
+args = [ "envjsrb" ]
+if $jazrb_deps
+ args += [ "--deps", $jazrb_deps ]
+end
+args << INTRO
introd = true
outrod = true
-$jazrb_args.each do |f|
+ARGV.each do |f|
if f =~ /\.x?html?$/ || f =~ %r(^https?://)
if introd && !outrod
args << OUTRO
args << "about:blank"
@@ -89,10 +93,11 @@
end
end
def cdata_block string
if @testcase_failed
- $spec_info[:failures].last[:stack] = string
+ $spec_info[:failures].last[:stack] ||= ""
+ $spec_info[:failures].last[:stack] << string
end
end
def end_element name
case name