From 8d029883811b3b6c8f16c32a20fdf738e1cfa0b8 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Fri, 6 May 2011 14:24:46 -0400 Subject: [PATCH] inline coffeescript support via coffee-script-source --- bin/jasmine-headless-webkit | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/jasmine-headless-webkit b/bin/jasmine-headless-webkit index 72f7c05..48b4885 100755 --- a/bin/jasmine-headless-webkit +++ b/bin/jasmine-headless-webkit @@ -8,7 +8,13 @@ require 'fileutils' require 'getoptlong' require 'rubygems' + +gem 'jasmine' +gem 'coffee-script-source' + require 'jasmine' +require 'coffee_script/source' + require 'jasmine/cli' include Jasmine::CLI @@ -48,6 +54,7 @@ puts "Running Jasmine specs..." files = [ 'file://' + File.join(Jasmine.root, 'lib/jasmine.js'), 'file://' + File.join(Jasmine.root, 'lib/jasmine-html.js'), + 'file://' + CoffeeScript::Source.bundled_path, ] files += [ [ 'src_files', 'src_dir' ], [ 'stylesheets', 'src_dir' ], [ 'helpers', 'spec_dir' ], [ 'spec_files', 'spec_dir' ] ].collect do |searches, root| @@ -67,6 +74,8 @@ files = files.flatten.compact.collect { |file| case File.extname(file) when '.js' %{} + when '.coffee' + %{} when '.css' %{} end