Skip to content
Browse files

finish extractions

  • Loading branch information...
1 parent 361ef79 commit b05dcfc1a13ace7d8601bc10232ffab0ac7c6112 @mattly mattly committed May 3, 2011
Showing with 3 additions and 6 deletions.
  1. +3 −6 lib/rack/coffee.rb
View
9 lib/rack/coffee.rb
@@ -55,16 +55,13 @@ def call(env)
coffee = F.join(root, path.sub(/\.js$/,'.coffee'))
if @join == F.basename(coffee, '.coffee')
dir = F.dirname(coffee)
-
modified_time = Dir["#{dir}/*.coffee"].map{|f| F.mtime(f) }.max
- return not_modified if check_modified_time(env, modified_time)
-
- [200, headers_for(modified_time), brew("-j #{dir}/*")]
+ coffee = "-j #{dir}/*"
elsif F.file?(coffee)
-
modified_time = F.mtime(coffee)
+ end
+ if modified_time
return not_modified if check_modified_time(env, modified_time)
-
[200, headers_for(modified_time), brew(coffee)]
else
@server.call(env)

0 comments on commit b05dcfc

Please sign in to comment.
Something went wrong with that request. Please try again.