rexleparser 0.6.2 → 0.6.3

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: 875a7bfef1c025c8c437e441f5a15c47902eb9d0
4
- data.tar.gz: 1e2b4e3c9eb5387dff1ea1e2fb0cfcf65e4c3449
3
+ metadata.gz: 2f5997dad3675d485984c40a63bf09ac5eb886cf
4
+ data.tar.gz: 00e73f46bfbf176f12aa3dc4ef6932ee2c06231a
5
5
  SHA512:
6
- metadata.gz: 29cc53f42281d586b9f0342ef963c3786cc80a9bdd00f22222f187506d6e5528b31baee5f404f328a708c80343d04ef58954edb4d7bb6ef5ae54c7a87305408e
7
- data.tar.gz: 81f840444e2f6d2d1355612fbc690aef8f57355b96bf0a65e7b6dffd9a28d84a6ec56ca0476c3625ff4756bd38d688323979cd8a9abeef2d399f22b2bc13d3ff
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
- @instructions = s.scan(/<\?([\w-]+) ([^>]+)\?>/)
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.2
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-08 00:00:00.000000000 Z
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