lib/ggake/coffee.rb in ggake-0.3.0 vs lib/ggake/coffee.rb in ggake-0.3.1

- old
+ new

@@ -1,9 +1,9 @@ module Rake module DSL def coffee(input, options) - (File.join(options[:output], File.basename(input, '.coffee')) + '.js').tap do |js_file| + File.join(options[:output], input).ext('js').tap do |js_file| file js_file => input do sh "coffee --compile --output #{options[:output]} #{input}" end end end