Add warning to SpecRunner.html when running from non-built source.

This commit is contained in:
Christian Williams
2010-07-27 18:47:12 -07:00
parent 15955df258
commit 6562b5a3b4
2 changed files with 2 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ task :default => 'jasmine:dist'
def substitute_jasmine_version(filename)
contents = File.read(filename)
contents = contents.gsub(/##JASMINE_VERSION##/, (jasmine_version))
contents = contents.gsub(/[^\n]*REMOVE_THIS_LINE_FROM_BUILD[^\n]*/, '')
File.open(filename, 'w') { |f| f.write(contents) }
end