smart_asset 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/smart_asset/version.rb +1 -1
- data/lib/smart_asset.rb +9 -0
- metadata +2 -2
data/lib/smart_asset/version.rb
CHANGED
data/lib/smart_asset.rb
CHANGED
@@ -90,6 +90,15 @@ class SmartAsset
|
|
90
90
|
puts cmd if ENV['DEBUG']
|
91
91
|
`#{cmd}`
|
92
92
|
FileUtils.rm(tmp) unless ENV['DEBUG']
|
93
|
+
|
94
|
+
# Fix YUI compression issue
|
95
|
+
if ext == 'css'
|
96
|
+
if RUBY_PLATFORM.downcase.include?('darwin')
|
97
|
+
`sed -i '' 's/ and(/ and (/g' #{output}`
|
98
|
+
else
|
99
|
+
`sed -i 's/ and(/ and (/g' #{output}`
|
100
|
+
end
|
101
|
+
end
|
93
102
|
end
|
94
103
|
end
|
95
104
|
end
|