From 6562b5a3b4d75e44f237dbcdd2127e3c3643b54c Mon Sep 17 00:00:00 2001 From: Christian Williams Date: Tue, 27 Jul 2010 18:47:12 -0700 Subject: [PATCH] Add warning to SpecRunner.html when running from non-built source. --- Rakefile | 1 + example/SpecRunner.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index a49020a..9d38bff 100644 --- a/Rakefile +++ b/Rakefile @@ -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 diff --git a/example/SpecRunner.html b/example/SpecRunner.html index 54c36cc..2089f4c 100644 --- a/example/SpecRunner.html +++ b/example/SpecRunner.html @@ -17,6 +17,7 @@ +

You must be trying to look at examples in the Jasmine source tree.

Please download a distribution version of Jasmine at http://pivotal.github.com/jasmine/.