csslite 0.1.0 → 0.1.1
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 +1 -3
- data.tar.gz.sig +0 -0
- data/lib/csslite.rb +2 -2
- metadata +1 -1
- metadata.gz.sig +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d04bf49844e865a2f45a2456378fbbaeedc6803f
|
4
|
+
data.tar.gz: d1c6ad96076edec395247b05158c86b4e37b6104
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0df6036eae54693f3d2368f08311aec7a154ef9cb65c8b648e82f25b8fd46823aac02ace8c8437b32ffa6729dbb398930c28a564fca375c85d22c612ef21d13
|
7
|
+
data.tar.gz: 7eccd570f11d2efdfbfae89c04cfc6c7b7241a9819a823ac3ef7247acfea58f800329ff0c1b0a294549303b0fe5c846c0d366212e26d404338471af854216d0b
|
checksums.yaml.gz.sig
CHANGED
@@ -1,3 +1 @@
|
|
1
|
-
�
|
2
|
-
G��FJ�DV��L�h�^�
|
3
|
-
dla2Sr%�S���z���Ϯ�逮��7v���:h�i��^�'vY���\����=�x�/��~��m��R�k/����ټT�؎����
|
1
|
+
G�L�l`T[����g�D�n�kіQe�\ic<��'��ʂ�˖���;�Q�߹�x���3��T6�b7~&��]�M�ސ.Ц��U1_Y�#�$@h����_��}��� /�*?�)���y}юPv_���M�D�+��������L�QjwG6�8|���U���*/���>wD�Zt�[�\L��%��=�,A&E���Lto81���BY�y�p�{���n#>� ���a��
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/csslite.rb
CHANGED
@@ -9,7 +9,7 @@ class CSSLite
|
|
9
9
|
|
10
10
|
# parse the CSS
|
11
11
|
|
12
|
-
@a = s.split(/}/)
|
12
|
+
@a = s.strip.split(/}/).map do |entry|
|
13
13
|
|
14
14
|
raw_selector,raw_styles = entry.split(/{/,2)
|
15
15
|
|
@@ -38,7 +38,7 @@ class CSSLite
|
|
38
38
|
|
39
39
|
root_element.css(selector).each do |element|
|
40
40
|
|
41
|
-
element.style[k] = v unless
|
41
|
+
element.style[k] = v unless element.style.has_key? k
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
metadata
CHANGED
metadata.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
B��w(�3���DsV���S'�E��U5mk9cb�P���T]t�����a�{�D�"Ì�s�ٕo�}�[-{��jV����y��t{:�%Fk��G�o��������ʭ�R?��V�����*���
|
2
|
+
�9f�v��"�˝���&��c\b����d�`}\V!v/3I(�͵�4�54��+��1�_t|��;�T9��ި�b��yo�凥B�2"X���A۸Ȗ��A�HL %'�q�_c�K���N��J�
|