xpath-simplify 0.0.5 → 0.0.6
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
- data/lib/xpath-simplify.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 377033603b7c426e36b366fe51d874a84c0ccda8
|
|
4
|
+
data.tar.gz: 8708cb7d8bc8c382217628678931e3ff26ce8481
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a4311302bb6f3a36157451492df449e16ba3b5e9f4cd95a739930496d6328b167059ffc746bdfa57a8b582bb75612d930be7d9929e2c98d6f38648ff7042001c
|
|
7
|
+
data.tar.gz: fb72d5d290dc4b17357b71b2aed946e83dc5148b5a74564b168663b249ae3b36d31aa4c015ba6ac6ee1de2af7c5c8822699ee08706bfa953e3e8af34df5f9e74
|
data/lib/xpath-simplify.rb
CHANGED
|
@@ -140,7 +140,7 @@ class XPathSimplify
|
|
|
140
140
|
end
|
|
141
141
|
|
|
142
142
|
def self.evaluate_and(arr,i,flag = false)
|
|
143
|
-
if flag then arr[i] = "#{arr[i-1]}
|
|
143
|
+
if flag then arr[i] = "#{arr[i-1]} + //*#{arr[i+1][3..-1]}"
|
|
144
144
|
else arr[i] = "#{arr[i-1][0..-2]} and #{arr[i+1][4..-1]}"
|
|
145
145
|
end
|
|
146
146
|
arr[i-1] = nil
|
|
@@ -149,7 +149,7 @@ class XPathSimplify
|
|
|
149
149
|
end
|
|
150
150
|
|
|
151
151
|
def self.evaluate_or(arr,i,flag = false)
|
|
152
|
-
if flag then arr[i] = "#{arr[i-1]}
|
|
152
|
+
if flag then arr[i] = "#{arr[i-1]} | //*#{arr[i+1][3..-1]}"
|
|
153
153
|
else arr[i] = "#{arr[i-1][0..-2]} or #{arr[i+1][4..-1]}"
|
|
154
154
|
end
|
|
155
155
|
arr[i-1] = nil
|