5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# File 'lib/html_mockup-autoprefixer/processor.rb', line 5
def call(release, options={})
options = {
:match => ["stylesheets/**/*.css"],
:skip => []
}.update(options)
match = options.delete(:match)
skip = options.delete(:skip)
files = release.get_files(match)
files.each do |f|
if !skip.detect{|r| r.match(f) }
release.log(self, "Processing: #{f}")
content = File.read(f)
File.open(f, "w") do |fh|
fh.write AutoprefixerRails.compile(content)
end
end
end
end
|