lib/polymer/project.rb in polymer-1.0.0.beta.6 vs lib/polymer/project.rb in polymer-1.0.0.beta.7

- old
+ new

@@ -21,11 +21,11 @@ # # @return [Pathname] # attr_reader :root - # @return [Pathname, false] + # @return [Pathname] # The path to the Sass mixin file. # @return [false] # False if Sass has been disabled. # attr_reader :sass @@ -84,9 +84,13 @@ @sprites = sprites @sass = extract_path :sass, options @css = extract_path :css, options @cachefile = extract_path :cache, options + + if @sass and @sass.to_s[-5..-1] != '.sass' + @sass = @sass + '_polymer.sass' + end # Sprites which are to be saved as a data URI need to have a save # path explicitly set. @data_uri_sprites = @sprites.select do |sprite| if sprite.save_path == :data_uri