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.
@@ -1,3 +1,3 @@
1
1
  class SmartAsset
2
- VERSION = "0.4.1" unless defined?(::SmartAsset::VERSION)
2
+ VERSION = "0.4.2" unless defined?(::SmartAsset::VERSION)
3
3
  end
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
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 1
9
- version: 0.4.1
8
+ - 2
9
+ version: 0.4.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Winton Welsh