rexle 1.3.13 → 1.3.14
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.tar.gz.sig +0 -0
- data/lib/rexle.rb +4 -4
- 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: e776621157e65a33b2df6868828286633b40d8f5
|
|
4
|
+
data.tar.gz: 9a0d1b84665de2e310ba49dd5534a9df3325c81d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2251cb40dd1c6bdad1ad0462e5fdc1a09d238e66b107c7a7991a1527cbd97a638b98ac3df3a9a0bfe2e7143adae120584c5e596cad0c940586b7c08ec8829797
|
|
7
|
+
data.tar.gz: 7786bb4e4bcec86144aed24fefbf6bb3e78f0b30df78fb5b12d0bac12ebf94e14f992fd70e0aa6d4e01ffc1b75198d155d922fa6f3584dc77a542504227305db
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/rexle.rb
CHANGED
|
@@ -14,6 +14,8 @@ require 'backtrack-xpath'
|
|
|
14
14
|
|
|
15
15
|
# 13-Mar-2016: bug fix: Reapplied a statement that was commented out in
|
|
16
16
|
# the previous gem release
|
|
17
|
+
# bug fix: Removed a redundant statement from
|
|
18
|
+
# method attribute_search()
|
|
17
19
|
# 12-Mar-2016: A predicate can now handle position() with the
|
|
18
20
|
# equality operator e.g. b[position() = 2]
|
|
19
21
|
# 09-Mar-2016: bug fix: '.' now returns the current element
|
|
@@ -1123,7 +1125,7 @@ class Rexle
|
|
|
1123
1125
|
|
|
1124
1126
|
def attribute_search(attr_search, e, h, i=nil, &blk)
|
|
1125
1127
|
|
|
1126
|
-
|
|
1128
|
+
r2 = if attr_search.is_a? Fixnum then
|
|
1127
1129
|
block_given? ? blk.call(e) : e if i == attr_search
|
|
1128
1130
|
elsif attr_search[/i\s(?:<|>|==)\s\d+/] and eval(attr_search) then
|
|
1129
1131
|
block_given? ? blk.call(e) : e
|
|
@@ -1150,11 +1152,9 @@ class Rexle
|
|
|
1150
1152
|
end
|
|
1151
1153
|
elsif attr_search[/e\.xpath/] and eval(attr_search)
|
|
1152
1154
|
block_given? ? blk.call(e) : e
|
|
1153
|
-
elsif e.element attr_search then
|
|
1154
|
-
block_given? ? blk.call(e) : e
|
|
1155
1155
|
end
|
|
1156
1156
|
|
|
1157
|
-
|
|
1157
|
+
r2
|
|
1158
1158
|
end
|
|
1159
1159
|
|
|
1160
1160
|
def recursive_scan(nodes, &blk)
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|