rexle 1.0.30 → 1.0.31
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/rexle.rb +4 -2
- data.tar.gz.sig +0 -0
- 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: 447d3c0e354b2dd98d2340af1932035eea229762
|
4
|
+
data.tar.gz: ce371c091663a83a046d92bb6066871af4737e7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a96dab68ef3453f59e1ba6922e7dcef3b670cd87cb93154e692f529216ca6aa30e791fc581b3a79dc9cfca4ca50ac9660f645ec9c8b21c74e393053f81139e2
|
7
|
+
data.tar.gz: 2481f073c40e905b066bf7e9090251a5394b4ee67b957e3f81bbcc775d8ebb40b3daa24bf8efaf7be43a2ae332e1e9ecee6ed9279639ba52252be503d0649e02
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/rexle.rb
CHANGED
@@ -14,7 +14,9 @@ include REXML
|
|
14
14
|
|
15
15
|
# 26-Oct-2014: bug fix: XML output containing a class attribute,
|
16
16
|
# now appears as a string. Empty nodes are
|
17
|
-
# now displayed as self-closing tags.
|
17
|
+
# now displayed as self-closing tags.
|
18
|
+
# An XPath containing a @class attribute is now
|
19
|
+
# first validated against the element attribute existence
|
18
20
|
# 21-Oct-2014: partial feature: An Xpath containing //preceding-sibling and
|
19
21
|
# //following-sibling now works
|
20
22
|
# 19-Oct-2014: feature: An XPath containing the attribute @class is
|
@@ -839,7 +841,7 @@ class Rexle
|
|
839
841
|
x[1] = '==' if x[1] == '='
|
840
842
|
"h[:'%s'] %s %s" % x
|
841
843
|
else
|
842
|
-
"h[:class].include? %s" % x.last
|
844
|
+
"h[:class] and h[:class].include? %s" % x.last
|
843
845
|
end
|
844
846
|
else
|
845
847
|
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|