rexleparser 0.4.15 → 0.4.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/rexleparser.rb +2 -2
- metadata +1 -1
- 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: fed549ef9e4667590e6e03ee7b11a4da335bc1a4
|
4
|
+
data.tar.gz: 9c521449e2e7a789a3697903daa4575cb4726b0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a088aebdbabaf0bbc7eaa1a989c09956e1c14d6c1e8e04c07bbc7b09a34e6c0ba9ee3b703874efa21fe24f09a8457f4af8d1375c36a16beaf8dab49e14acd611
|
7
|
+
data.tar.gz: 8ee1fe5fe8f4c29ad92e8236b95f76dde01960ccb3da3507e602dc58c15f707890ac0448042cde228271dd2dc358215439df09a88b822976dcf27ab0ad4cf831
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rexleparser.rb
CHANGED
@@ -81,7 +81,7 @@ class RexleParser
|
|
81
81
|
#a.shift until a[0] == '<' or a.length < 1
|
82
82
|
raw_values.strip!
|
83
83
|
|
84
|
-
attributes =
|
84
|
+
attributes = raw_values.length > 0 ? get_attributes(raw_values) : {}
|
85
85
|
element = [name, nil, attributes]
|
86
86
|
|
87
87
|
return element if after_text.empty?
|
@@ -95,7 +95,7 @@ class RexleParser
|
|
95
95
|
value, attributes = get_value_and_attribs(raw_values)
|
96
96
|
end
|
97
97
|
|
98
|
-
element = [name, value, attributes]
|
98
|
+
element = [name, value, attributes || {}]
|
99
99
|
tag = a[0, name.length + 3].join
|
100
100
|
|
101
101
|
return unless a.length > 0
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|