line-tree 0.4.5 → 0.4.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 +1 -3
- data/lib/line-tree.rb +4 -2
- data.tar.gz.sig +0 -0
- 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: 03045984648cbf4746e6ca3e5d1fd3d878e32b96
|
4
|
+
data.tar.gz: 41c467e61929553a4d542ab584eae95786fd8678
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bcbb2122e139c764a0e9a8381fedf4e8755ec31af0bffcaa787912a84c46113077412fa618849001d2ff699e1d241e29eb9edf2f739f12c92371679b167718b
|
7
|
+
data.tar.gz: ea052aa7927fa46c806bb5d5db95360b6b9318b4e944fdabbdd43f8923b4e1c297e4613a87a422693a507135f60fa28afd5c6bedb40a2f87ef0e9e9c57329523
|
checksums.yaml.gz.sig
CHANGED
data/lib/line-tree.rb
CHANGED
@@ -34,14 +34,16 @@ class LineTree
|
|
34
34
|
unless x[/.*/][/^\s*\w+:\S+/] then
|
35
35
|
|
36
36
|
rlines = @ignore_blank_lines ? (x).split(/\n/) : (x).split(/\n/,-1)
|
37
|
-
|
37
|
+
|
38
|
+
rlines = [x.gsub(/^\s{2}/,'')] if level and level < 0
|
38
39
|
label = [rlines.shift]
|
39
40
|
new_lines = rlines.map{|x| x[2..-1]}
|
40
41
|
|
41
42
|
if new_lines.length > 1 then
|
42
43
|
label + scan_shift(new_lines.join("\n"),level)
|
43
44
|
else
|
44
|
-
(new_lines.length > 0 and
|
45
|
+
(new_lines.length > 0 and \
|
46
|
+
new_lines != [nil])? label + [new_lines] : label
|
45
47
|
end
|
46
48
|
|
47
49
|
else
|
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.4.
|
4
|
+
version: 0.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
ErtlSTAImlBCK8q5BS4jBBt8VAEpNdkWpWbtDtLPA639pW2QWIcPx13ObWJh7Ejk
|
32
32
|
THoVqqsHTfeg3g==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2014-12-
|
34
|
+
date: 2014-12-30 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rexle
|
metadata.gz.sig
CHANGED
Binary file
|