backtrack-xpath 0.1.4 → 0.1.5
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/backtrack-xpath.rb +4 -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: 171b32b032bbce5608ae3bc62979fd748cfa9baf
|
4
|
+
data.tar.gz: 07b15e3269758bba8603dfb22133c980b65b5698
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35491e81367e8a56180c16f89f5301fe9f942c94f557f86f19e86923bc8e344e5b2c3b9ffbb5d69309cd0a2ae40e43a49d5c7f8bfc1c0e4894cf6371462b1a91
|
7
|
+
data.tar.gz: 211b70808bf834c3ba3326102f69a75a7c71883e75f798c86155d0da92f12cf59ff8c7bc5fa49e52de100008e814d4b904f3e3e3b67ae418a8803198422dac68
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/backtrack-xpath.rb
CHANGED
@@ -27,11 +27,13 @@ class BacktrackXPath
|
|
27
27
|
result
|
28
28
|
end
|
29
29
|
|
30
|
-
def doc_scan(node)
|
30
|
+
def doc_scan(node)
|
31
|
+
|
32
|
+
return unless node.parent
|
31
33
|
|
32
34
|
name = node.name
|
33
35
|
attribute = node.attributes ? attribute_scan(node) : ''
|
34
|
-
result =
|
36
|
+
result = doc_scan(node.parent)
|
35
37
|
|
36
38
|
[result, name + attribute]
|
37
39
|
end
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|