line-tree 0.5.5 → 0.5.6

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: 2032ea4afb86bb78856a54e03f797a8f74c5109d
4
- data.tar.gz: d007c841120c62566b82365cb0f99523c5fe7eff
3
+ metadata.gz: 925f930bf9cebe001d51faea47e660fd6307846e
4
+ data.tar.gz: f30c55cb1529c3b22f90a2fb57673560f662f06c
5
5
  SHA512:
6
- metadata.gz: d9f36d9ae9d78c46dcad0f7206a9637b2424873611e68e7b657f5f7d1a7c395db733caf47f1add73ad1b5eab1e139f9818288e85936f9d36467df09e9634fc65
7
- data.tar.gz: 899e27c89a2415cdd7ab0d13cfe2445697d3df607e7224067af99e16101de8c4271a6b70c0d72a3f62bee84f4dcd59cc83f05a235fce6f81a56ea044aec68848
6
+ metadata.gz: e586079ce4d8e7dca1519e3091de50cfd76a9584fab55970f0c79483d71d5d5ff9f84d182efb4528a1b1d58adee8772ac9298448c0dba03ce2312f6cf7707bf7
7
+ data.tar.gz: 96698fabae4872f66f9277cf2ae7ac73cfab3be231ece7f413bc959b6a3081a0049995640330067f97e1c50667c9ffc0ad408fe0e7fa2bc7d86cf09b3f094f91
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
- puts 'r: ' + r.inspect
70
+
71
71
  if r[1] then
72
72
 
73
73
  r[1] = get_attributes(r[1])
@@ -98,13 +98,12 @@ class LineTree
98
98
  def get_attributes(s)
99
99
 
100
100
  a = s.scan(/\w+: ["'][^"']+["']/).map do |attr|
101
- puts 'attr: ' + attr.inspect
101
+
102
102
  name, val = attr.match(/\s*([^:=]+)[:=]\s*['"]*\
103
103
  ([a-zA-Z0-9\(\);\-\/:\.,\s"'_\{\}\$]*)/).captures
104
104
  [name, val.sub(/['"]$/,'')]
105
105
  end
106
106
 
107
- puts 'a: ' + a.inspect
108
107
  Hash[*a.flatten]
109
108
  end
110
109
 
@@ -122,4 +121,4 @@ class LineTree
122
121
  end
123
122
 
124
123
 
125
- end
124
+ end
data.tar.gz.sig CHANGED
Binary file
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.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  7hJQViF2A4oP1yEw5KunIhFVJbc7Su5onAEfBDhrTncllL9LW24QyUxdRYFI2ddi
32
32
  Otqv0Jb+HJ1Sjg==
33
33
  -----END CERTIFICATE-----
34
- date: 2015-09-22 00:00:00.000000000 Z
34
+ date: 2015-11-03 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rexle
metadata.gz.sig CHANGED
@@ -1,2 +1,3 @@
1
- 6�B�?I��S��գJ&�CHnB7����?�2����mL�Br�������_��T����1��>��Y�ޣ#q�PQ��� qs�t8�P
2
- ���mK���4N�����u����"b
1
+ %sm�_�jȢ*H���LL��%E�+N��
2
+ �4�pG8���'�NlG�a���$MCS�LO�|�_��x�-��&�F���%�O�Ÿ��\�^B� -JN��3��U������d9w꧞�(�ٵ�9�d���#�^��eq�0�'A��-�ATpx�2�^�Qߖ�#"#��?��Y¹ed���
3
+ N�壢s&�_Z��� ]�dJ�UJ�i��Cf.m`