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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/xpath-simplify.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7da400bd35e49ea0b725e1d43684618f737059be
4
- data.tar.gz: d18f8ed5fadef1431020a706f2627142a017a6e6
3
+ metadata.gz: 377033603b7c426e36b366fe51d874a84c0ccda8
4
+ data.tar.gz: 8708cb7d8bc8c382217628678931e3ff26ce8481
5
5
  SHA512:
6
- metadata.gz: 7c99e0112bb8fef4a014b6bfb7e6b8ad9df214c463f83d770fd7d15c408b01402413917ba0dfa48db053a13c5c93a46367d113fcc602e8e9bd7e41ab4d14d17d
7
- data.tar.gz: c82aa66e53ddf95a3ab12e6ade8f5cf6b7fa4775d410b23b7934a6411a97a6c9f149763339d3f453b8641203199d9051e837a8a4c0e23faf4f1e5ed243c24084
6
+ metadata.gz: a4311302bb6f3a36157451492df449e16ba3b5e9f4cd95a739930496d6328b167059ffc746bdfa57a8b582bb75612d930be7d9929e2c98d6f38648ff7042001c
7
+ data.tar.gz: fb72d5d290dc4b17357b71b2aed946e83dc5148b5a74564b168663b249ae3b36d31aa4c015ba6ac6ee1de2af7c5c8822699ee08706bfa953e3e8af34df5f9e74
@@ -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]} and //*#{arr[i+1][3..-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]} or //*#{arr[i+1][3..-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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xpath-simplify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Mackie