Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Join the asset paths as strings to prevent expanding them.

  • Loading branch information...
commit 1e7cf69f81181ac164d17f6758ff943f9ea6beff 1 parent 58c7442
Ben Hoskings authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 deploy_tasks.rb
4 deploy_tasks.rb
View
@@ -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')
Please sign in to comment.
Something went wrong with that request. Please try again.