line-tree 0.5.0 → 0.5.1

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: 9102faf781e0aa8dd94998dfb9bc512dcef18693
4
- data.tar.gz: 61032026128578e564b44fd84af12d3c1f624062
3
+ metadata.gz: 6dc0a2ebddd24813a4c01cb379e896ff4c9337e8
4
+ data.tar.gz: 8905d2968e93145912111f231c5fcfed6c919b16
5
5
  SHA512:
6
- metadata.gz: 2e2b496ddd2981c2bd1819e01c08fe15990b2d29e9a0b3e6357fca46c308e9b17a1ee9708898b5a8980b4cb3bf41015146ab038d3572ec134df2a296ee06e4ce
7
- data.tar.gz: 5bb9fb2e1eb9458077e4f325bc96b2c063c8ffbb07b84a7169e9fb12b0ec7fdc9c1ada7e3665db65c247ceca4fff58cbeffcc2838f216b0ba2f04b39e14fc136
6
+ metadata.gz: 75979a31a0ffb64a3d53b65e7507a1201fb53a02a727ab4a85bfe4eb01ab9abba17a5135728a80f8433bdc1d808af442a673e5f48a8a76d261a17ad94da667c1
7
+ data.tar.gz: 44a63659914f28679fae8e41dc7acd0921959ec5c7c26d0de53bdd891ef5cc0c102d36d6e68386a1be7a2fc0994beb068fe0eea41fed85940077f57b3ff76bb8
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/line-tree.rb CHANGED
@@ -65,10 +65,11 @@ class LineTree
65
65
  end
66
66
 
67
67
  r = s.match(/('[^']+[']|[^\s]+)\s*(\{[^\}]+\})?\s*(.*)/m)
68
- .captures.values_at(0,-1,1)
69
- if r.last then
68
+ .captures.values_at(0,1,-1)
69
+
70
+ if r[1] then
70
71
 
71
- r[-1] = get_attributes(r.last)
72
+ r[1] = get_attributes(r[1])
72
73
 
73
74
  elsif s[/(\w+\s*=\s*["'])/]
74
75
 
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.5.0
4
+ version: 0.5.1
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-02-02 00:00:00.000000000 Z
34
+ date: 2015-02-16 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rexle
@@ -42,7 +42,7 @@ dependencies:
42
42
  version: '1.2'
43
43
  - - ">="
44
44
  - !ruby/object:Gem::Version
45
- version: 1.2.0
45
+ version: 1.2.14
46
46
  type: :runtime
47
47
  prerelease: false
48
48
  version_requirements: !ruby/object:Gem::Requirement
@@ -52,7 +52,7 @@ dependencies:
52
52
  version: '1.2'
53
53
  - - ">="
54
54
  - !ruby/object:Gem::Version
55
- version: 1.2.0
55
+ version: 1.2.14
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