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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/line-tree.rb +4 -3
- data.tar.gz.sig +0 -0
- metadata +4 -4
- 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: 6dc0a2ebddd24813a4c01cb379e896ff4c9337e8
|
4
|
+
data.tar.gz: 8905d2968e93145912111f231c5fcfed6c919b16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
69
|
-
|
68
|
+
.captures.values_at(0,1,-1)
|
69
|
+
|
70
|
+
if r[1] then
|
70
71
|
|
71
|
-
r[
|
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.
|
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-
|
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.
|
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.
|
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
|