rexle 0.9.25 → 0.9.26

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 (2) hide show
  1. data/lib/rexle.rb +4 -4
  2. metadata +1 -1
@@ -192,18 +192,18 @@ class Rexle
192
192
  :"Rexle::Element" => proc {|x| [x]}
193
193
  }
194
194
  bucket = []
195
-
196
- results = path.split('|').map do |xp|
195
+ raw_results = path.split('|').map do |xp|
197
196
  query_xpath(xp, bucket, &blk)
198
197
  end
199
- procs[results.inject(&:+).class.to_s.to_sym].call(results)
198
+ results = raw_results.inject(&:+)
199
+ procs[results.class.to_s.to_sym].call(results)
200
200
 
201
201
  else
202
202
  m, xpath_value = fn_match.captures
203
203
  method(m.to_sym).call(xpath_value)
204
204
  end
205
205
 
206
- end
206
+ end
207
207
 
208
208
  def query_xpath(raw_xpath_value, rlist=[], &blk)
209
209
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rexle
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.9.25
5
+ version: 0.9.26
6
6
  platform: ruby
7
7
  authors:
8
8
  - James Robertson