line-tree 0.3.12 → 0.3.13
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 +2 -1
- data.tar.gz.sig +2 -2
- metadata +1 -1
- 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: c19286085c44300b97ceba9c4a77a01b4c053c83
|
4
|
+
data.tar.gz: dffda321c00226875131dc88829cacf5b8469958
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab9705d0ac30914bf2ae0aeaca23ee902273f676733f5548b2c4f1e4aca5f1be66ddb888a26a7db9bedefafd42fc8d0409e3b75c45c92e7b1d1c8cf34e4ff9d3
|
7
|
+
data.tar.gz: 24b6ccc5840ad37536263b61904b688d3084546af9af8a67b4ab2ffff92a7764f8b6c428640a24e57ec31941ae25a4f4f975b2240896672a7b66f941bc5ba67b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/line-tree.rb
CHANGED
@@ -30,7 +30,7 @@ class LineTree
|
|
30
30
|
new_lines.length > 0 ? label + [new_lines] : label
|
31
31
|
end
|
32
32
|
else
|
33
|
-
[x.
|
33
|
+
[x.lines.map{|x| x.sub(/^\s{2}/,'')}.join]
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
@@ -45,6 +45,7 @@ class LineTree
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def get_attributes(s)
|
48
|
+
|
48
49
|
a = s[/{(.*)}/,1].split(',').map do |attr|
|
49
50
|
attr.match(/\s*([^:=]+)[:=]\s*['"]*([a-zA-Z0-9\(\);\-\/:\.\s]*)/).captures
|
50
51
|
end
|
data.tar.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
�j
|
2
|
-
|
1
|
+
xU���V������?����e^s5`˜N���e ���{1�QwΞ�Ԟj�'��m�q��P��/��F�����{�P�oF8�yB���7���Ĩ�gN$���/
|
2
|
+
d����Ŗ����I�'i⬿�N��+�D�V����6*�{
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|