html-to-css 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +3 -3
- data/lib/html-to-css.rb +2 -4
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 315de96a3d972029860b987b08f1b169ae7205be9a674074bf451b7d5b2391d6
|
4
|
+
data.tar.gz: cd812fc610fd26d6828da99c4458e7b54ee3ccc7f9f62a455ec28e0a04fb7b80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4bf07e1e56c15d669b353a446b76f0f64dce5c4b3dd19c510665f1a0750c80c8ca8a5d805a7d079be382d7917b00a0a66b50696ccb084ba5cc8bf04e418721e
|
7
|
+
data.tar.gz: d64016c0d5b3c814e17bdb105676abe106036b4387706b9e14bbfc2273789b636806d73e25b8632fea0a317bead4ef234cedd1353146944a36cff2b517e199f1
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
�3�)�kx��(�Y�4=�L�L2������u]�&l��f�M
|
2
|
+
��;���Q�n#,h��qz
|
3
|
+
��
|
data/lib/html-to-css.rb
CHANGED
@@ -48,7 +48,7 @@ class HtmlToCss
|
|
48
48
|
end
|
49
49
|
|
50
50
|
@selectors = []
|
51
|
-
@nocss =
|
51
|
+
@nocss = %i(head script)
|
52
52
|
@nolayoutcss = ['ul>li>a', 'ul>li>ul', 'p>a', 'div>div>\w+', 'article']
|
53
53
|
@css = []
|
54
54
|
|
@@ -74,7 +74,6 @@ class HtmlToCss
|
|
74
74
|
footer: "background-color: :color;"
|
75
75
|
}
|
76
76
|
|
77
|
-
@ignore_elements = %i(script)
|
78
77
|
end
|
79
78
|
|
80
79
|
def to_css()
|
@@ -138,7 +137,7 @@ class HtmlToCss
|
|
138
137
|
|
139
138
|
def scan_to_css(type, e, indent='', parent_selector='', &blk)
|
140
139
|
|
141
|
-
return if @nocss.include? e.name
|
140
|
+
return if @nocss.include? e.name.to_sym
|
142
141
|
h = e.attributes
|
143
142
|
|
144
143
|
if h.has_key?(:id) then
|
@@ -189,7 +188,6 @@ class HtmlToCss
|
|
189
188
|
|
190
189
|
e.elements.each do |x|
|
191
190
|
|
192
|
-
next if @ignore_elements.include? x.name.to_sym
|
193
191
|
scan_to_css type, x, indent, parent_selector
|
194
192
|
|
195
193
|
end
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|