line-tree 0.3.14 → 0.3.15
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 +4 -2
- data.tar.gz.sig +2 -2
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fdf457c3cd69a25aa9fa1e38a4af79da0cabbb8c
|
4
|
+
data.tar.gz: 1aacfb059a985ce039ebe1253c3136c967f0333e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cfbde03557a2d813c4cae3c52d6e95ae48deb2877ed9516e292a7ea8de8e3ff1d39d630cfe765c447bdde237087f179177c362355382ecfe9d970ae00c48b65
|
7
|
+
data.tar.gz: 06a52859fd4c34cd45d1e6fd94755f4c4b4f118177f2a5b727ebe50d5e1a095a3ec3351f5be8401fe0b78365f759d2ba4d32bbe5e18f15b1357d2ba9f94d5a84
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/line-tree.rb
CHANGED
@@ -37,7 +37,8 @@ class LineTree
|
|
37
37
|
|
38
38
|
def scan_a(a)
|
39
39
|
|
40
|
-
r = a.shift.match(/('[^']+[']|[^\s]+)\s*(\{[^\}]+\})?\s*(.*)/m)
|
40
|
+
r = a.shift.match(/('[^']+[']|[^\s]+)\s*(\{[^\}]+\})?\s*(.*)/m)
|
41
|
+
.captures.values_at(0,-1,1)
|
41
42
|
|
42
43
|
r[-1] = get_attributes(r.last) if r.last
|
43
44
|
a.map {|x| r << scan_a(x.clone) } if a.is_a? Array
|
@@ -47,7 +48,8 @@ class LineTree
|
|
47
48
|
def get_attributes(s)
|
48
49
|
|
49
50
|
a = s[/{(.*)}/,1].split(',').map do |attr|
|
50
|
-
attr.match(/\s*([^:=]+)[:=]\s*['"]*([a-zA-Z0-9\(\);\-\/:\.\s]*)/).captures
|
51
|
+
name, val = attr.match(/\s*([^:=]+)[:=]\s*['"]*([a-zA-Z0-9\(\);\-\/:\.\s"']*)/).captures
|
52
|
+
[name, val.sub(/['"]$/,'')]
|
51
53
|
end
|
52
54
|
|
53
55
|
Hash[*a.flatten]
|
data.tar.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
��
|
2
|
-
|
1
|
+
4��?M2���Mlk��.16n��s�I��[DW0䱴�<���D1a��{��T\�~O�g�p�e�z<�Ы�;_J��>9��1���4i��.*Wݼp�)��@|�2>f�S�b��#.�H7�sC�W�Ǝ/fd�A�$��R��O�_�� ɔ'�E������[O�/����*!s���z�LX�=�1!��&���D����$�8L�Rl���TZ�$
|
2
|
+
U��a�x��P�A'�G�oy�Dk���P
|
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.3.
|
4
|
+
version: 0.3.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -29,7 +29,7 @@ cert_chain:
|
|
29
29
|
Dz+jRefuoazkdPPGcZD+mCU2F42iAyY8omZZjf105rpw/tU49czillRb982Rnja1
|
30
30
|
iAgNdWiPNW8ECExJQhYpRbJN0t+PWcMV
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date: 2013-10-
|
32
|
+
date: 2013-10-09 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: rexle
|
metadata.gz.sig
CHANGED
Binary file
|