line-tree 0.4.7 → 0.5.0
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 -3
- data.tar.gz.sig +0 -0
- metadata +6 -6
- 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: 9102faf781e0aa8dd94998dfb9bc512dcef18693
|
4
|
+
data.tar.gz: 61032026128578e564b44fd84af12d3c1f624062
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e2b496ddd2981c2bd1819e01c08fe15990b2d29e9a0b3e6357fca46c308e9b17a1ee9708898b5a8980b4cb3bf41015146ab038d3572ec134df2a296ee06e4ce
|
7
|
+
data.tar.gz: 5bb9fb2e1eb9458077e4f325bc96b2c063c8ffbb07b84a7169e9fb12b0ec7fdc9c1ada7e3665db65c247ceca4fff58cbeffcc2838f216b0ba2f04b39e14fc136
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/line-tree.rb
CHANGED
@@ -73,8 +73,8 @@ class LineTree
|
|
73
73
|
elsif s[/(\w+\s*=\s*["'])/]
|
74
74
|
|
75
75
|
raw_attributes, value = s.split(/(?=[^'"]+$)/,2)
|
76
|
-
r[
|
77
|
-
r[1] = value.to_s.strip
|
76
|
+
r[1] = get_xml_attributes raw_attributes
|
77
|
+
r[-1] = value.to_s.strip
|
78
78
|
|
79
79
|
end
|
80
80
|
|
@@ -84,7 +84,7 @@ class LineTree
|
|
84
84
|
result, remaining = scan_a(x.clone)
|
85
85
|
|
86
86
|
if remaining then
|
87
|
-
r.last ? r << remaining : r[1] += remaining
|
87
|
+
r.last ? r << remaining : r[-1] += remaining
|
88
88
|
end
|
89
89
|
r << result
|
90
90
|
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.
|
4
|
+
version: 0.5.0
|
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: 2015-
|
34
|
+
date: 2015-02-02 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rexle
|
@@ -39,20 +39,20 @@ dependencies:
|
|
39
39
|
requirements:
|
40
40
|
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '1.
|
42
|
+
version: '1.2'
|
43
43
|
- - ">="
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 1.0
|
45
|
+
version: 1.2.0
|
46
46
|
type: :runtime
|
47
47
|
prerelease: false
|
48
48
|
version_requirements: !ruby/object:Gem::Requirement
|
49
49
|
requirements:
|
50
50
|
- - "~>"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: '1.
|
52
|
+
version: '1.2'
|
53
53
|
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 1.0
|
55
|
+
version: 1.2.0
|
56
56
|
description: Line-tree parses indented lines of text and returns an array representing
|
57
57
|
a tree structure.
|
58
58
|
email: james@r0bertson.co.uk
|
metadata.gz.sig
CHANGED
Binary file
|