Permalink
Browse files

Minor fixes to regressions in SASS and LESS Builders

  • Loading branch information...
1 parent 03f88b5 commit 4d68e457a826f2fd8d125bf25f9836fb4e2e11d3 @wagenet wagenet committed Sep 19, 2010
Showing with 3 additions and 2 deletions.
  1. +1 −0 lib/sproutcore/builders.rb
  2. +1 −1 lib/sproutcore/builders/less.rb
  3. +1 −1 lib/sproutcore/builders/sass.rb
@@ -5,6 +5,7 @@
require "sproutcore/builders/javascript"
require "sproutcore/builders/minify"
require "sproutcore/builders/sass"
+require "sproutcore/builders/less"
require "sproutcore/builders/strings"
require "sproutcore/builders/stylesheet"
require "sproutcore/builders/test"
@@ -21,7 +21,7 @@ def build(dst_path)
end
begin
- content = readlines(entry.source_path)*''
+ content = readlines(entry.source_path)
css = ::Less::Engine.new(content).to_css
lines = []
css.each_line { |l| lines << rewrite_inline_code(l) }
@@ -31,7 +31,7 @@ def build(dst_path)
end
begin
- content = readlines(entry.source_path)*''
+ content = readlines(entry.source_path)
load_paths = [entry.source_path[0..entry.source_path.rindex('/')]]
css = ::Sass::Engine.new(content, :syntax => @@sass_syntax, :load_paths => load_paths).render
lines = []

0 comments on commit 4d68e45

Please sign in to comment.