Sha256: 00b11f0e7667109f9d6180d052d21426df88d40acec16245f0e4fa6186f538c8
Contents?: true
Size: 509 Bytes
Versions: 2
Compression:
Stored size: 509 Bytes
Contents
module Sasspectations class Runner def initialize(root_path) @root_path = root_path end def render spec_files.map { |path| scss_file_to_css(path) }.join("\n\n") end private def scss_file_to_css(scss_path) Sass::Engine.for_file(scss_path, {syntax: :scss, style: :compact}).render end def spec_files Dir[specs_path_glob] end def specs_path_glob Pathname.new(@root_path).join('spec', 'scss', '**', '*_spec.scss') end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sasspectations-0.0.2 | lib/sasspectations/runner.rb |
sasspectations-0.0.1 | lib/sasspectations/runner.rb |