ghazel-yui-compressor 0.9.4.1 → 0.9.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/yui/compressor.rb +9 -0
- metadata +3 -3
data/lib/yui/compressor.rb
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
if ENV['OS'] == 'Windows_NT'
|
2
|
+
begin
|
3
|
+
require "win32/open3"
|
4
|
+
rescue Exception => e
|
5
|
+
raise Error, "You need the win32/open3 gem to use Ruby YUI Compreessor in a Windows environment. #{e}"
|
6
|
+
end
|
7
|
+
else
|
8
|
+
require "open3"
|
9
|
+
end
|
1
10
|
require "open3"
|
2
11
|
require "stringio"
|
3
12
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ghazel-yui-compressor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
9
|
- 4
|
10
|
-
-
|
11
|
-
version: 0.9.4.
|
10
|
+
- 2
|
11
|
+
version: 0.9.4.2
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Sam Stephenson
|