line-tree 0.5.4 → 0.5.5

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: 169022f3dd622dcd8e1f15ab574e2321dbd45af1
4
- data.tar.gz: 753d42c7529a7a46ab34734cbe63c32876c8ad18
3
+ metadata.gz: 2032ea4afb86bb78856a54e03f797a8f74c5109d
4
+ data.tar.gz: d007c841120c62566b82365cb0f99523c5fe7eff
5
5
  SHA512:
6
- metadata.gz: 5345226c61f093da718e0d64805450fdcfb99b52ed142cda587873c30fa21321dc20b996a52fcc6e894d23574a7e210fe2c8839c8fca9e462e9bcebe6222769f
7
- data.tar.gz: c55ca4646d1612ebf24b276a024141649097ee8b1b956354e299e341d810c5990626c52bab657b8b302db7f97ba1130353181dbb639dfcb0e9ba1194aa2fcf7e
6
+ metadata.gz: d9f36d9ae9d78c46dcad0f7206a9637b2424873611e68e7b657f5f7d1a7c395db733caf47f1add73ad1b5eab1e139f9818288e85936f9d36467df09e9634fc65
7
+ data.tar.gz: 899e27c89a2415cdd7ab0d13cfe2445697d3df607e7224067af99e16101de8c4271a6b70c0d72a3f62bee84f4dcd59cc83f05a235fce6f81a56ea044aec68848
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/line-tree.rb CHANGED
@@ -67,7 +67,7 @@ class LineTree
67
67
 
68
68
  r = s.match(/('[^']+[']|[^\s]+)\s*(\{.*\})?\s*(.*)/m)
69
69
  .captures.values_at(0,1,-1)
70
-
70
+ puts 'r: ' + r.inspect
71
71
  if r[1] then
72
72
 
73
73
  r[1] = get_attributes(r[1])
@@ -98,13 +98,13 @@ class LineTree
98
98
  def get_attributes(s)
99
99
 
100
100
  a = s.scan(/\w+: ["'][^"']+["']/).map do |attr|
101
-
101
+ puts 'attr: ' + attr.inspect
102
102
  name, val = attr.match(/\s*([^:=]+)[:=]\s*['"]*\
103
- ([a-zA-Z0-9\(\);\-\/:\.,\s"'_\{\}]*)/).captures
103
+ ([a-zA-Z0-9\(\);\-\/:\.,\s"'_\{\}\$]*)/).captures
104
104
  [name, val.sub(/['"]$/,'')]
105
105
  end
106
106
 
107
-
107
+ puts 'a: ' + a.inspect
108
108
  Hash[*a.flatten]
109
109
  end
110
110
 
@@ -122,4 +122,4 @@ class LineTree
122
122
  end
123
123
 
124
124
 
125
- end
125
+ end
data.tar.gz.sig CHANGED
@@ -1 +1 @@
1
- ,�b5���d���� s��jvLO�ƣ|�!� ���FE(8.>��.-P��H����tXyo7vL7�)q��d�H3�qf�I��и����?M_��4Ln8���^�[2�h�10KUY��#:ۆɋ0�Յ�ZW��A�j�
1
+ 4��K�Ϲ�W��V2�܈��]���d.|+��\���5������s8+�q��ڼ��epp}#���_}B �����L|z���cJj��A��)����ތ�_���񋹷,d�b67�C�����3!G�-J"� 1��nɋfVi�q�p�S��x��%f�v�F��of�9x&���/[�;�h��*A��f&����'Nd���Ͽ���H��Co&/�_4��:YKO`�g/�-�������vX
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: line-tree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
@@ -1 +1,2 @@
1
- :_wtK#��wwLg�=�BE5 ������\e��*���0���FF͙Y #��P���kI⏍�0���r}��$Ų�u�٭�AK���?&cqXZ.}0ſ�N�-x#�?�3�����JUi���e3��8$�@��]#��j�p��]ٰL������C�H�;Qbq� ���(���R�1��V��^6]�� � h��q����I��UC鈿UD��f$ڒ��w<�[>�}��@��^�mf}��?����/�
1
+ 6�B�?I��S��գJ&�CHnB7����?�2����m�L�Br�������_��T����1��>��Y�ޣ#q�P�Q��� �qst8P
2
+ ���mK���4N�����u����"b