line-tree 0.5.3 → 0.5.4
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.tar.gz.sig +1 -1
- data/lib/line-tree.rb +5 -2
- metadata +18 -18
- 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: 169022f3dd622dcd8e1f15ab574e2321dbd45af1
|
4
|
+
data.tar.gz: 753d42c7529a7a46ab34734cbe63c32876c8ad18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5345226c61f093da718e0d64805450fdcfb99b52ed142cda587873c30fa21321dc20b996a52fcc6e894d23574a7e210fe2c8839c8fca9e462e9bcebe6222769f
|
7
|
+
data.tar.gz: c55ca4646d1612ebf24b276a024141649097ee8b1b956354e299e341d810c5990626c52bab657b8b302db7f97ba1130353181dbb639dfcb0e9ba1194aa2fcf7e
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
,�b5���d����s��jvLO�ƣ|�!� ���FE(8.>��.-P��H����tXyo�7vL7�)q��d�H�3�qf�I��и����?M_��4Ln8���^�[2�h�10KUY��#:ۆɋ0�Յ�ZW��A�j�
|
data/lib/line-tree.rb
CHANGED
@@ -65,7 +65,7 @@ class LineTree
|
|
65
65
|
return [nil,non_element] if non_element
|
66
66
|
end
|
67
67
|
|
68
|
-
r = s.match(/('[^']+[']|[^\s]+)\s*(\{
|
68
|
+
r = s.match(/('[^']+[']|[^\s]+)\s*(\{.*\})?\s*(.*)/m)
|
69
69
|
.captures.values_at(0,1,-1)
|
70
70
|
|
71
71
|
if r[1] then
|
@@ -98,10 +98,13 @@ class LineTree
|
|
98
98
|
def get_attributes(s)
|
99
99
|
|
100
100
|
a = s.scan(/\w+: ["'][^"']+["']/).map do |attr|
|
101
|
-
|
101
|
+
|
102
|
+
name, val = attr.match(/\s*([^:=]+)[:=]\s*['"]*\
|
103
|
+
([a-zA-Z0-9\(\);\-\/:\.,\s"'_\{\}]*)/).captures
|
102
104
|
[name, val.sub(/['"]$/,'')]
|
103
105
|
end
|
104
106
|
|
107
|
+
|
105
108
|
Hash[*a.flatten]
|
106
109
|
end
|
107
110
|
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -12,26 +12,26 @@ cert_chain:
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
|
14
14
|
YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
|
15
|
-
|
15
|
+
8ixkARkWAmV1MB4XDTE1MDkyMjE5MjExNVoXDTE2MDkyMTE5MjExNVowSDESMBAG
|
16
16
|
A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
|
17
17
|
EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
18
|
+
ggEBAKoCZRbLwILhPaKiwZZyjlliT5d0r3ND4EgTl41BAeru4B7+QTphTGoLMLcF
|
19
|
+
VdSc4KXvUeIRBN1p4V0LncItc3Z2tpY/azMhp7puW5HjENToDmpZYo1L40TowIca
|
20
|
+
vKLi89kB8MZ4Pbz96rNO7TWBk5+9PW49enn4trVty4h0l9JfR4HUWFrLtv66cw75
|
21
|
+
gC3AW2Z7844K4Vwe2iIQZg/YKk2qoVYrXrPYVY8o2wp7FbHe1cQS15oJ8oW4abwv
|
22
|
+
KVGh9v/HWBWJpiSGyR/xf6sj5T2sFFE2p9Epz+VsaF6XcRuxM7hqg1GmCe09gnE1
|
23
|
+
xtu0mwyZWoEKKQfevgNKluztTKECAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
|
24
|
+
DwQEAwIEsDAdBgNVHQ4EFgQU4mlrVQsMxMyCY7h28HvpElNidW0wJgYDVR0RBB8w
|
25
25
|
HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1h
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
26
|
+
c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAFWxyuEL+
|
27
|
+
vVXc7+WfMaArAqzFOqnnJqaX3UdlWU5Rz9LYjQhXPusIsCX+lCojHwC+CcksH89u
|
28
|
+
ov73AQJ3y7MC1TUAEBs+0nRUfkiwS2FjzHAfKJWUmdUUJ9U1Z2ikC7H4Gqvxhz9v
|
29
|
+
aJP4UUCn38tOXay5jGn9HrZV2w/SBKYJ+nGY60CEfZRwtBxFjMBoXGzzUyqdBuhn
|
30
|
+
c2wLKHJNKsY54pAyj8Rp1e/fbVi5/6NPmv6rccuB/vCu5pDuueU09nUMfpwGlGrp
|
31
|
+
7hJQViF2A4oP1yEw5KunIhFVJbc7Su5onAEfBDhrTncllL9LW24QyUxdRYFI2ddi
|
32
|
+
Otqv0Jb+HJ1Sjg==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2015-
|
34
|
+
date: 2015-09-22 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rexle
|
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
81
|
version: '0'
|
82
82
|
requirements: []
|
83
83
|
rubyforge_project:
|
84
|
-
rubygems_version: 2.
|
84
|
+
rubygems_version: 2.4.8
|
85
85
|
signing_key:
|
86
86
|
specification_version: 4
|
87
87
|
summary: line-tree
|
metadata.gz.sig
CHANGED
Binary file
|