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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f83204981f5eb869747559800e7283417ae9a98c
4
- data.tar.gz: 30a968cadfe3cdc596447118cdddb76ca4ea94d5
3
+ metadata.gz: 9102faf781e0aa8dd94998dfb9bc512dcef18693
4
+ data.tar.gz: 61032026128578e564b44fd84af12d3c1f624062
5
5
  SHA512:
6
- metadata.gz: 7f217d97c9a636f4e7e950bd1f569d6a889482f74d2760f4c4c89871976b6e65247994be39522e80ca8848fda9cea23909e84dfeaa1248e5761502873ba22638
7
- data.tar.gz: fb631f5115bab54c0c8e24dec0cb3ad511f02fc87d832d6160a9e3bad27ec1b08ee7b1c4ef78129fb545cd1a21ec666a2212e431fb096569002f4e67518a1e98
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[-1] = get_xml_attributes raw_attributes
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.7
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-01-21 00:00:00.000000000 Z
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.0'
42
+ version: '1.2'
43
43
  - - ">="
44
44
  - !ruby/object:Gem::Version
45
- version: 1.0.33
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.0'
52
+ version: '1.2'
53
53
  - - ">="
54
54
  - !ruby/object:Gem::Version
55
- version: 1.0.33
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