sqwish 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY.md +9 -0
- data/lib/sqwish.rb +12 -3
- metadata +3 -13
data/HISTORY.md
CHANGED
data/lib/sqwish.rb
CHANGED
@@ -7,11 +7,20 @@ module Sqwish
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def sqwish_js
|
10
|
-
@squish_js ||= ExecJS.compile(
|
10
|
+
@squish_js ||= ExecJS.compile(sqwish_wrapper)
|
11
|
+
end
|
12
|
+
|
13
|
+
def sqwish_wrapper
|
14
|
+
# If we're not using node, some things will have to be stubbed.
|
15
|
+
%{
|
16
|
+
var require = function() { return {}; };
|
17
|
+
var module = { exports: {} };
|
18
|
+
#{sqwish_src}
|
19
|
+
}
|
11
20
|
end
|
12
21
|
|
13
22
|
def sqwish_src
|
14
|
-
open(sqwish_js_path).read
|
23
|
+
src = open(sqwish_js_path).read
|
15
24
|
end
|
16
25
|
|
17
26
|
def sqwish_js_path
|
@@ -19,7 +28,7 @@ module Sqwish
|
|
19
28
|
end
|
20
29
|
|
21
30
|
def version
|
22
|
-
"0.0.
|
31
|
+
"0.0.3"
|
23
32
|
end
|
24
33
|
end
|
25
34
|
end
|
metadata
CHANGED
@@ -1,12 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sqwish
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 0
|
8
|
-
- 2
|
9
|
-
version: 0.0.2
|
4
|
+
prerelease:
|
5
|
+
version: 0.0.3
|
10
6
|
platform: ruby
|
11
7
|
authors:
|
12
8
|
- Rico Sta. Cruz
|
@@ -26,8 +22,6 @@ dependencies:
|
|
26
22
|
requirements:
|
27
23
|
- - ">="
|
28
24
|
- !ruby/object:Gem::Version
|
29
|
-
segments:
|
30
|
-
- 0
|
31
25
|
version: "0"
|
32
26
|
type: :runtime
|
33
27
|
version_requirements: *id001
|
@@ -59,21 +53,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
59
53
|
requirements:
|
60
54
|
- - ">="
|
61
55
|
- !ruby/object:Gem::Version
|
62
|
-
segments:
|
63
|
-
- 0
|
64
56
|
version: "0"
|
65
57
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
58
|
none: false
|
67
59
|
requirements:
|
68
60
|
- - ">="
|
69
61
|
- !ruby/object:Gem::Version
|
70
|
-
segments:
|
71
|
-
- 0
|
72
62
|
version: "0"
|
73
63
|
requirements: []
|
74
64
|
|
75
65
|
rubyforge_project:
|
76
|
-
rubygems_version: 1.
|
66
|
+
rubygems_version: 1.5.0
|
77
67
|
signing_key:
|
78
68
|
specification_version: 3
|
79
69
|
summary: A node-based CSS compressor
|