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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e73eec903ba4bd2697e85053366f556fd517392a5ee2ed5aa39800ef4b4382d7
4
- data.tar.gz: 90af4e08b9a160cc6940acb22bedc1edc75296815a9f7c0c9d40afd679d4120b
3
+ metadata.gz: 315de96a3d972029860b987b08f1b169ae7205be9a674074bf451b7d5b2391d6
4
+ data.tar.gz: cd812fc610fd26d6828da99c4458e7b54ee3ccc7f9f62a455ec28e0a04fb7b80
5
5
  SHA512:
6
- metadata.gz: 992c1b05ed9b75c6131304f89b57f6fcc48fedc64f95d77021b4fca816ef39a2f3edd080f4276b55df01f46c6097ad810b8c9fb9d25a1a2a71dbc57195039d31
7
- data.tar.gz: f9ef14c9d00ca6153dd864627e17cea9f160ec3ad28b09bd3bf2753be11f5fa6f65ce411e37dba00a7f4915a83069d2aa92aa885ca39d3a5bb7535dcb5117fdf
6
+ metadata.gz: d4bf07e1e56c15d669b353a446b76f0f64dce5c4b3dd19c510665f1a0750c80c8ca8a5d805a7d079be382d7917b00a0a66b50696ccb084ba5cc8bf04e418721e
7
+ data.tar.gz: d64016c0d5b3c814e17bdb105676abe106036b4387706b9e14bbfc2273789b636806d73e25b8632fea0a317bead4ef234cedd1353146944a36cff2b517e199f1
Binary file
data.tar.gz.sig CHANGED
@@ -1,3 +1,3 @@
1
- ���W
2
- �?���yF���^�rKjA�fz��[���Wq7��3��X�X�x$7[y�\�M@�W��k<x����rs���\r�O*А>��_�z�Mr�� lS`�)���Y���gR_�v6��W@#S��R��n���f��]L��xj��~I,�N���@�>�l.�;a�dC�e���G��"Z��6�Г�A/��I��u��FB�)A�<I�]I�:& �@Q���2�4*Z8mS�?�o>f9����;L�˩(�ځ�m
3
- ���?M"�&��,+"�o�oVa:�dTg� �'>$�=s��֦~�� w�=@µ�`�`.wDMv"IN!
1
+ �3)�kx��(�Y�4=�L�L2������u]�&l��f�M
2
+ ��;���Q�n#,h��qz
3
+ ��
@@ -48,7 +48,7 @@ class HtmlToCss
48
48
  end
49
49
 
50
50
  @selectors = []
51
- @nocss = ['head']
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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html-to-css
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file