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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 928f784dbf8e62a3b57e0cf6b6be1c733e26920c
4
- data.tar.gz: 0062044a43e8af59a20ddd75cc8b84a5ceb6da21
3
+ metadata.gz: 169022f3dd622dcd8e1f15ab574e2321dbd45af1
4
+ data.tar.gz: 753d42c7529a7a46ab34734cbe63c32876c8ad18
5
5
  SHA512:
6
- metadata.gz: 533fdc49f30247e88799e27385ec9f12db318a3a9477c1b3f0adccdb95a7b949b4e14e730d79939e27a0a59b300491cd8c41f93d82a862ac9ef109eb310cc284
7
- data.tar.gz: 6570c45ee170f3c4ab2e9fab3e324395d6a5d70527ad5adb7e3208fd663e65850178af0a1bc3cc2b4a6d2f53c88a7815b9f2b987f42ad5bded899038bf6292f3
6
+ metadata.gz: 5345226c61f093da718e0d64805450fdcfb99b52ed142cda587873c30fa21321dc20b996a52fcc6e894d23574a7e210fe2c8839c8fca9e462e9bcebe6222769f
7
+ data.tar.gz: c55ca4646d1612ebf24b276a024141649097ee8b1b956354e299e341d810c5990626c52bab657b8b302db7f97ba1130353181dbb639dfcb0e9ba1194aa2fcf7e
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
@@ -1 +1 @@
1
- ����d�7؎��_WL��-en��[��Y�����XUJ֑i���=��@@R
1
+ ,�b5���d���� s��jvLO�ƣ|�!� ���FE(8.>��.-P��H����tXyo7vL7�)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*(\{[^\}]+\})?\s*(.*)/m)
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
- name, val = attr.match(/\s*([^:=]+)[:=]\s*['"]*([a-zA-Z0-9\(\);\-\/:\.,\s"'_]*)/).captures
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.3
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
- 8ixkARkWAmV1MB4XDTE0MDMxNTEyMzAyNVoXDTE1MDMxNTEyMzAyNVowSDESMBAG
15
+ 8ixkARkWAmV1MB4XDTE1MDkyMjE5MjExNVoXDTE2MDkyMTE5MjExNVowSDESMBAG
16
16
  A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
17
  EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
18
- ggEBAM98PI75nMzoKjAM3kUDpe6GKy7vFROcBoYCbEXXEQqG4i93IaBqSnZHr+/S
19
- ZeeY1Ey2QLuzFDBtl3uL2WAMbSo/+BhFLB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ynqRaJNasKCKRqVjShSDL0iK3mDBxYGNzaS5i4Zvs4PwS0kd
29
- ilYw0d2pvvzNuNQdPs7fB+DJ0CMydKynONv2S+qeD90xanxc0OQTqle+T+RET8rq
30
- G12F0ijwriux4UdxDD/wA1vbxjqXh+4jGyp/u9D40CWL18PxPKmeoXhERWCd6qra
31
- ErtlSTAImlBCK8q5BS4jBBt8VAEpNdkWpWbtDtLPA639pW2QWIcPx13ObWJh7Ejk
32
- THoVqqsHTfeg3g==
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-03-01 00:00:00.000000000 Z
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.2.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