rexleparser 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rexleparser.rb +4 -4
- metadata +2 -2
data/lib/rexleparser.rb
CHANGED
@@ -46,7 +46,7 @@ class RexleParser
|
|
46
46
|
value, attributes = get_value_and_attributes(raw_values) if raw_values.length > 0
|
47
47
|
|
48
48
|
element = [name, value, attributes]
|
49
|
-
|
49
|
+
|
50
50
|
tag = a[0, name.length + 3].join
|
51
51
|
|
52
52
|
if a.length > 0 then
|
@@ -55,10 +55,10 @@ class RexleParser
|
|
55
55
|
children = false if tag == "</%s>" % name
|
56
56
|
|
57
57
|
if children == true then
|
58
|
-
r = scan_element(a)
|
59
|
-
element << r if r
|
60
58
|
|
61
|
-
(r = scan_element(a); element << r if r) until (a[0, name.length + 3].join == "</%s>" % [name]) or a.length < 2
|
59
|
+
(r = scan_element(a); puts ' r: ' + r.inspect; element << r if r) until (a[0, name.length + 3].join == "</%s>" % [name]) or a.length < 2
|
60
|
+
a.slice!(0, name.length + 3) if a[0, name.length + 3].join == "</%s>" % name
|
61
|
+
a.shift until a[0] == '<' or a.length <= 1
|
62
62
|
else
|
63
63
|
#check for its end tag
|
64
64
|
a.slice!(0, name.length + 3) if a[0, name.length + 3].join == "</%s>" % name
|
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.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors: []
|
7
7
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-11-
|
12
|
+
date: 2010-11-26 00:00:00 +00:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|