Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minor fixes to regressions in SASS and LESS Builders

  • Loading branch information...
commit 4d68e457a826f2fd8d125bf25f9836fb4e2e11d3 1 parent 03f88b5
Peter Wagenet wagenet authored
1  lib/sproutcore/builders.rb
View
@@ -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"
2  lib/sproutcore/builders/less.rb
View
@@ -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) }
2  lib/sproutcore/builders/sass.rb
View
@@ -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 = []
Please sign in to comment.
Something went wrong with that request. Please try again.