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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a0926053be5f531c62d583ac6028bf531b62d2ec
4
- data.tar.gz: acd2c724c2038ce68249b340288b04cd43a1ed2f
3
+ metadata.gz: d04bf49844e865a2f45a2456378fbbaeedc6803f
4
+ data.tar.gz: d1c6ad96076edec395247b05158c86b4e37b6104
5
5
  SHA512:
6
- metadata.gz: 7038098a453391e3e3c5f3d711b5d2d5d85a9f736deb8250700d28f4e8c750776f1571668aa6890c451e612e3e5b453262bddc9a2b42712eff31a2b4dfd47471
7
- data.tar.gz: f616aef04a6cff282cf19a8caea84ac789e5987ad7433450e8993f833f3ae40162781b44d6d3f3fd3520c87cafe14f18e853480f4908526b84785bb4c967b67d
6
+ metadata.gz: b0df6036eae54693f3d2368f08311aec7a154ef9cb65c8b648e82f25b8fd46823aac02ace8c8437b32ffa6729dbb398930c28a564fca375c85d22c612ef21d13
7
+ data.tar.gz: 7eccd570f11d2efdfbfae89c04cfc6c7b7241a9819a823ac3ef7247acfea58f800329ff0c1b0a294549303b0fe5c846c0d366212e26d404338471af854216d0b
checksums.yaml.gz.sig CHANGED
@@ -1,3 +1 @@
1
- N.�Y�ڒ��zVs��ɏ��d)ok��^G��?. v��^�ѝ>�^���ؙ�a^w��S܍K "4���C���d��˕�UHh�ܨ�����0�CKn�0[
2
- G��FJ�DV��L�h�^�
3
- dla2Sr%�S���z���Ϯ�逮��7v���:h�i��^�'vY���\����=�x�/��~��m��R�k/����ټT�؎����
1
+ GL�l`T[����g�DnkіQe�\ic<��'��ʂ�˖���;�Q�߹�x��� 3��T6�b7~ &��]�M�ސ.Ц��U1_Y�#�$@h����_��}��� /�*?�)���y}юPv_���MD�+��������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(/}/)[0..-2].map do |entry|
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 override == false and element.style.has_key? k
41
+ element.style[k] = v unless element.style.has_key? k
42
42
  end
43
43
  end
44
44
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csslite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
@@ -1 +1,2 @@
1
- ,���϶3*��ė���xR�x'(i? a)z,��4r�JJ&Ql��v1�?�b����$�=ǀ�'��,y�����u��&͡j;���0�`��1}ˈ��h]Ý7�.�\ؑ7ͧDoh�Q�Cڠ�m��P�Y��+������q�����U��2�|4F�|z��|1��Wc"���lZn������[98G�̎zF�<���\�&a�m%�o�2%��k������|�J2xx��\{�F��ћ�����0
1
+ B��w(�3���DsV���S'�E��U5mk9cb�P���T]t�����a�{D"Ì�s�ٕo�}[-{��jV����y��t{:�%Fk��Go��������ʭ�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�