rexleparser 0.6.2 → 0.6.3
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/lib/rexleparser.rb +6 -5
- data.tar.gz.sig +0 -0
- 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: 2f5997dad3675d485984c40a63bf09ac5eb886cf
|
|
4
|
+
data.tar.gz: 00e73f46bfbf176f12aa3dc4ef6932ee2c06231a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c08e26fbc974682a11fb5e6cee23787e106ae1adcb21a6937628ba3358c7e1658d37aa20488ce12164308173fd3c94cd033b34f59eb3ff742837453589138bee
|
|
7
|
+
data.tar.gz: cb42ba4d025f710598b82c6cb5532fad6204e884045e2a06aa7ca669143ab7ebb142b241ad78147e24c6d9419c09d32251c06114168f251b98ece350a0c2abf5
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/rexleparser.rb
CHANGED
|
@@ -11,10 +11,11 @@ class RexleParser
|
|
|
11
11
|
|
|
12
12
|
super()
|
|
13
13
|
s = raw_s.clone
|
|
14
|
-
|
|
14
|
+
|
|
15
|
+
raw_xml, raw_instrctns = s.split(/(?=\?><\w)/,2).reverse
|
|
16
|
+
@instructions = raw_instrctns.scan(/<\?([\w-]+) ([^>]+)/) if raw_instrctns
|
|
15
17
|
@doctype = s.slice!(/<!DOCTYPE html>\n?/)
|
|
16
|
-
|
|
17
|
-
@to_a = reverse(parse_node(s.strip.gsub(/<\?[^>]+>/,'').reverse))
|
|
18
|
+
@to_a = reverse(parse_node(raw_xml.strip.reverse))
|
|
18
19
|
|
|
19
20
|
end
|
|
20
21
|
|
|
@@ -22,7 +23,7 @@ class RexleParser
|
|
|
22
23
|
|
|
23
24
|
|
|
24
25
|
def scan_next(r, tagname)
|
|
25
|
-
|
|
26
|
+
|
|
26
27
|
j = tagname
|
|
27
28
|
|
|
28
29
|
if r[0] == '>' then
|
|
@@ -103,7 +104,7 @@ class RexleParser
|
|
|
103
104
|
end
|
|
104
105
|
|
|
105
106
|
def parse_node(r, j=nil)
|
|
106
|
-
|
|
107
|
+
|
|
107
108
|
return unless r.length > 0
|
|
108
109
|
|
|
109
110
|
tag = r.slice!(/^>[^<]+</) if (r =~ /^>[^<]+</) == 0
|
data.tar.gz.sig
CHANGED
|
Binary file
|
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.6.
|
|
4
|
+
version: 0.6.3
|
|
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-02-
|
|
34
|
+
date: 2015-02-11 00:00:00.000000000 Z
|
|
35
35
|
dependencies: []
|
|
36
36
|
description:
|
|
37
37
|
email: james@r0bertson.co.uk
|
metadata.gz.sig
CHANGED
|
Binary file
|