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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/line-tree.rb +3 -4
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 925f930bf9cebe001d51faea47e660fd6307846e
|
4
|
+
data.tar.gz: f30c55cb1529c3b22f90a2fb57673560f662f06c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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.
|
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-
|
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
|
-
|
2
|
-
���
|
1
|
+
%sm�_�jȢ*H���L�L��%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`
|