rexle 1.0.10 → 1.0.11
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/lib/rexle.rb +10 -2
- data.tar.gz.sig +0 -0
- metadata +2 -2
- 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: c02a1ffb1246a1e8def0ba33ab1a4ee3ea1baf24
|
4
|
+
data.tar.gz: 90b4c3463fe307025e912d6720467e6de85d22d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4e9f0fe998a37ccc7e4fd7bdbf5510c1924dac0e60fa08097073e809c586391dc6b1bc36ccdbcb32d675a08ce74993651d3fe436ae860eed94e84dd27ad927b
|
7
|
+
data.tar.gz: bdf1ff525603447996787f488b7fd51bd088d81ca35723e2a4f1657689717bcb3d3b35366b9823a72d91e5c6c1f3824e32d73acf3482143cc83e2e912fea187e
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/rexle.rb
CHANGED
@@ -11,7 +11,9 @@ include REXML
|
|
11
11
|
|
12
12
|
# modifications:
|
13
13
|
|
14
|
-
#
|
14
|
+
# 04-Jun-2014: bug fix: If XPath contains /text(), only valid
|
15
|
+
# text elements are returned
|
16
|
+
# 03-Jun-2014: bug fix: Text elements are now nil by default
|
15
17
|
# 01-Jun-2014: bug fix: XPath elements separated by a pipe '|' are now
|
16
18
|
# stripped of white space
|
17
19
|
# 20-May-2014: feature: XPath Descendants after the element (or without
|
@@ -440,6 +442,7 @@ class Rexle
|
|
440
442
|
|
441
443
|
end
|
442
444
|
|
445
|
+
|
443
446
|
if return_elements.length > 0 then
|
444
447
|
|
445
448
|
if (a_path + [remaining_path]).join.empty? then
|
@@ -451,7 +454,12 @@ class Rexle
|
|
451
454
|
|
452
455
|
rlist << return_elements.map.with_index do |x,i|
|
453
456
|
|
454
|
-
rtn_element = filter(x, i+1, attr_search)
|
457
|
+
rtn_element = filter(x, i+1, attr_search) do |e|
|
458
|
+
r = e.xpath(a_path.join('/') + raw_condition.to_s \
|
459
|
+
+ remaining_path, &blk)
|
460
|
+
#(r || e)
|
461
|
+
end
|
462
|
+
|
455
463
|
next if rtn_element.nil? or (rtn_element.is_a? Array and rtn_element.empty?)
|
456
464
|
|
457
465
|
if rtn_element.is_a? Hash then
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rexle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
UOGKUMV5RApHDnC0ywMYNe0HK7qMSTP5YLKs8JUjNxpc5jl8+o3D3sHkNN4DzbQm
|
32
32
|
jVfzDZ+niKvAUA==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2014-06-
|
34
|
+
date: 2014-06-04 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rexleparser
|
metadata.gz.sig
CHANGED
Binary file
|