rexle 0.9.42 → 0.9.43
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.
- data/lib/rexle.rb +2 -1
- metadata +2 -2
data/lib/rexle.rb
CHANGED
|
@@ -10,6 +10,7 @@ require 'cgi'
|
|
|
10
10
|
include REXML
|
|
11
11
|
|
|
12
12
|
# modifications:
|
|
13
|
+
# 15-Aug-2012: feature: xpath containing child:: now supported
|
|
13
14
|
# 13-Aug-2012: bug fix: xpath can now handle the name() function
|
|
14
15
|
# 11-Aug-2012: bug fix: separated the max() method from 1 line into 3
|
|
15
16
|
# and that fixed it
|
|
@@ -225,7 +226,7 @@ class Rexle
|
|
|
225
226
|
#@rexle.prefixes.each {|x| xpath_value.sub!(x + ':','') }
|
|
226
227
|
flag_func = false
|
|
227
228
|
|
|
228
|
-
xpath_value = raw_xpath_value
|
|
229
|
+
xpath_value = raw_xpath_value.sub('child::','./')
|
|
229
230
|
#xpath_value.sub!(/\.\/(?=[\/])/,'')
|
|
230
231
|
|
|
231
232
|
if xpath_value[/^[\w\/]+\s*=.*/] then
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: rexle
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.9.
|
|
5
|
+
version: 0.9.43
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- James Robertson
|
|
@@ -10,7 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2012-08-
|
|
13
|
+
date: 2012-08-15 00:00:00 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rexleparser
|