Permalink
Browse files

Join the asset paths as strings to prevent expanding them.

  • Loading branch information...
1 parent 58c7442 commit 1e7cf69f81181ac164d17f6758ff943f9ea6beff @benhoskings committed Jan 17, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 deploy_tasks.rb
View
4 deploy_tasks.rb
@@ -2,7 +2,7 @@
dep '', :path do
def to_brew
- Dir.glob(path / '**/*.coffee').reject {|coffee|
+ Dir.glob(File.join(path, '**/*.coffee')).reject {|coffee|
js = coffee.sub(/^#{Regexp.escape(path.to_s)}/, 'public/javascripts/').sub(/\.coffee$/, '.js')
File.exists?(js) && File.mtime(js) > File.mtime(coffee)
}
@@ -19,7 +19,7 @@ def to_brew
dep 'scss built', :path do
def missing_css
- Dir.glob(path / '**/*.scss').reject {|scss|
+ Dir.glob(File.join(path, '**/*.scss')).reject {|scss|
scss[/\/_[^\/]+\.scss$/] # Don't try to build _partials.scss
}.reject {|scss|
css = scss.sub(/^#{Regexp.escape(path)}/, 'public/stylesheets/').sub(/\.scss$/, '.css')

0 comments on commit 1e7cf69

Please sign in to comment.