rexleparser 0.5.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +1 -2
- data/lib/rexleparser.rb +6 -7
- metadata +2 -2
- 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: daae8a7347bf12a32fa2ae177b2a80dcac193142
|
4
|
+
data.tar.gz: 2729f9d4603e3ddd415463a15d46cd7bf40fb13f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39000b7b17976850b6896c8671f6b2a06b6351afcf3794c5acf9601e69ce7225c7ce9ab7107f43db344fbd955c0396defb0747220160188edd8f03f4b5abfc1c
|
7
|
+
data.tar.gz: c7771fc446949b2c29a35f446f7db3b88afa12dd680043eda8ff05db7ad4e7e194810dadd6141291b19746a8f345f9307c43f7aed267e360358b59d54b0edb52
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
hn���q�N������̍���j�Κ���+�wgZ��J�.�����U�Lw+�|�������&��i�i�a/I�`����1��ҙ
|
1
|
+
�F�#r�')B����[^��
|
data/lib/rexleparser.rb
CHANGED
@@ -31,7 +31,7 @@ class RexleParser
|
|
31
31
|
# end tag match
|
32
32
|
tag = r[/^>[^<]+</]
|
33
33
|
|
34
|
-
if tag[/^>.*[^\/]<$/] then
|
34
|
+
if tag[/^>.*[^\/]<$/m] then
|
35
35
|
|
36
36
|
# is it the end tag to match the start tag?
|
37
37
|
tag = r.slice!(/^>[^<]+</)
|
@@ -43,13 +43,11 @@ class RexleParser
|
|
43
43
|
return [:end_tag, end_tag]
|
44
44
|
|
45
45
|
elsif tag[/^>[^>]*\w+<$/] then
|
46
|
-
|
47
46
|
# broken tag found
|
48
47
|
broken_tag = tag
|
49
48
|
return [:child, [nil, [], broken_tag]] if broken_tag
|
50
49
|
|
51
|
-
elsif tag[/^(?:>--|>\]\]).*(?:--!|\[ATADC\[!<)/] then
|
52
|
-
|
50
|
+
elsif tag[/^(?:>--|>\]\]).*(?:--!|\[ATADC\[!<)/m] then
|
53
51
|
# it's a comment tag
|
54
52
|
return [:child, create_comment(tag)]
|
55
53
|
else
|
@@ -58,7 +56,8 @@ class RexleParser
|
|
58
56
|
r.prepend '>' + tag
|
59
57
|
return [:child, text]
|
60
58
|
end
|
61
|
-
|
59
|
+
elsif tag[/\/<$/] then
|
60
|
+
return [:child, parse_node(r)]
|
62
61
|
elsif r[/^(?:>--|>\]\]).*(?:--!|\[ATADC\[!<)/m] then
|
63
62
|
|
64
63
|
i = r =~ /(\-\-!<|\[ATADC\[!<)/
|
@@ -119,7 +118,7 @@ class RexleParser
|
|
119
118
|
start_tag, children, end_tag = tag, [], nil
|
120
119
|
|
121
120
|
until end_tag do
|
122
|
-
|
121
|
+
|
123
122
|
key, res = scan_next r, tagname
|
124
123
|
|
125
124
|
case key
|
@@ -177,4 +176,4 @@ class RexleParser
|
|
177
176
|
|
178
177
|
return [tag[/[!\-\w\[]+/], ltext, get_attributes(tag), *r]
|
179
178
|
end
|
180
|
-
end
|
179
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rexleparser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
CkjTMLaPwIQI6dsbG4bVJ7/XzL7c8niqJSF7M0yr1+2kUrWFUZMBMrUUxgZxSkjL
|
32
32
|
Cgd76bp2zjiyCw==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2015-01-
|
34
|
+
date: 2015-01-29 00:00:00.000000000 Z
|
35
35
|
dependencies: []
|
36
36
|
description:
|
37
37
|
email: james@r0bertson.co.uk
|
metadata.gz.sig
CHANGED
Binary file
|