rexle 1.3.29 → 1.3.30
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.tar.gz.sig +0 -0
- data/lib/rexle.rb +5 -3
- 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: 17b270997c2599c0283eea0a908245ef872bf119
|
|
4
|
+
data.tar.gz: df441bb368b681bac74196af5c95d98500d1a58c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d5c227c2b77bb9e9cd0484bdd9386823102509b177b967adb3444e62c1b0b9949500c85c951e182dff193896ec9fc0734b0e155f2a2eb844e25d63a52ef458e8
|
|
7
|
+
data.tar.gz: fa321760606e37223f2facd16b56064ece823d4dabaccd2ea8107643a3ad62d28d4d8200816f186012f66a4d7f7a4d84874b4c5002c7246be8b2b8c8c3ea2191
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/rexle.rb
CHANGED
|
@@ -12,6 +12,8 @@ require 'backtrack-xpath'
|
|
|
12
12
|
|
|
13
13
|
# modifications:
|
|
14
14
|
|
|
15
|
+
# 25-Apr-2016: bug fix: Rexle::Element#to_a no longer returns a
|
|
16
|
+
# duplicate text value
|
|
15
17
|
# 24-Apr-2016: bug fix: The element text is now enclosed within quotes when
|
|
16
18
|
# evaluating an xpath condition. see xpath improvement 23-apr-2016
|
|
17
19
|
# 23-Apr-2016: xpath improvement: Better predicate support
|
|
@@ -1009,7 +1011,7 @@ class Rexle
|
|
|
1009
1011
|
alias text= value=
|
|
1010
1012
|
|
|
1011
1013
|
def to_a()
|
|
1012
|
-
e = [String.new(self.name), Hash.new(self.attributes)
|
|
1014
|
+
e = [String.new(self.name), Hash.new(self.attributes)]
|
|
1013
1015
|
[*e, *scan_to_a(self.children)]
|
|
1014
1016
|
end
|
|
1015
1017
|
|
|
@@ -1521,10 +1523,10 @@ class Rexle
|
|
|
1521
1523
|
super(a)
|
|
1522
1524
|
end
|
|
1523
1525
|
|
|
1524
|
-
def to_doc()
|
|
1526
|
+
def to_doc(root: 'root')
|
|
1525
1527
|
|
|
1526
1528
|
recordset = self.map(&:to_a)
|
|
1527
|
-
Rexle.new([
|
|
1529
|
+
Rexle.new([root,{}, *recordset])
|
|
1528
1530
|
|
|
1529
1531
|
end
|
|
1530
1532
|
|
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.3.
|
|
4
|
+
version: 1.3.30
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
pOw2Fx4uv9tO6wagRTcaHduxkh4jYfPDQI9mODFccHeY+wRLDGTENQwIILvMgEa7
|
|
32
32
|
50vRuyU+obGfjg==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2016-04-
|
|
34
|
+
date: 2016-04-25 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: rexleparser
|
metadata.gz.sig
CHANGED
|
Binary file
|