rexle 1.5.5 → 1.5.10
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 +8 -5
- metadata +34 -33
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b31472c5a71d46b454252d7fed48da965947c273d4ec06b713d2436260bda89d
|
|
4
|
+
data.tar.gz: 8adb3f90e4d6990f87aaca0ef6274413d517066833633e71a462d87d777f8018
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7a670f100e792f5753834a34115818646a211cdb5826dc822778f361511f5323800afc4ca0616cb994ea48753dbce57b2e522a4881c2aa08ba84a1cf9182efa3
|
|
7
|
+
data.tar.gz: 7b62e0c8507727a00f1eb62d8d8582ad6ca5e009cfa6547474b96bd3cf4563b93f3fc02cbd644e16752c4d7141fb0bdeb7a20d8ceb8a317720d8bd1cd3a300f9
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/rexle.rb
CHANGED
|
@@ -13,6 +13,10 @@ require 'backtrack-xpath'
|
|
|
13
13
|
|
|
14
14
|
# modifications:
|
|
15
15
|
|
|
16
|
+
# 20-Feb-2021: bug fix: The @instructions accessor is now ignored if nil
|
|
17
|
+
# 11-Sep-2020: feature: Rexle::Element#text now has unescaped HTML using CGI
|
|
18
|
+
# 30-Jul-2020: minor improvement: #plaintext now unescapes & to &
|
|
19
|
+
# 11-May-2020: bug fix: Rexle#css now responds correctly to valid selectors
|
|
16
20
|
# 23-Apr-2020: feature: Added public method *plaintext*.
|
|
17
21
|
# 04-Feb-2020: minor bug fix: Element A is now defined as a non self-closing tag
|
|
18
22
|
# 18-Sep-2019: minor bug fix: &apos is now unescaped properly
|
|
@@ -257,9 +261,7 @@ class Rexle
|
|
|
257
261
|
a = selector.split(',').flat_map do |x|
|
|
258
262
|
@doc.root.xpath RexleCSS.new(x).to_xpath
|
|
259
263
|
end
|
|
260
|
-
|
|
261
|
-
a.shift if self.kind_of? Rexle
|
|
262
|
-
|
|
264
|
+
|
|
263
265
|
return a
|
|
264
266
|
end
|
|
265
267
|
|
|
@@ -1003,7 +1005,8 @@ class Rexle
|
|
|
1003
1005
|
def map(&blk) self.children.map(&blk) end
|
|
1004
1006
|
|
|
1005
1007
|
def plaintext()
|
|
1006
|
-
xml().gsub(/<\/?[^>]+>/,'').gsub(' ',' ')
|
|
1008
|
+
CGI.unescapeHTML xml().gsub(/<\/?[^>]+>/,'').gsub(' ',' ')\
|
|
1009
|
+
.gsub(/\n\s+/,' ')
|
|
1007
1010
|
end
|
|
1008
1011
|
|
|
1009
1012
|
def root() self end
|
|
@@ -1486,7 +1489,7 @@ class Rexle
|
|
|
1486
1489
|
|
|
1487
1490
|
if o[:declaration] == true then
|
|
1488
1491
|
|
|
1489
|
-
unless @instructions.assoc 'xml' then
|
|
1492
|
+
unless @instructions and @instructions.assoc 'xml' then
|
|
1490
1493
|
@instructions.unshift ["xml","version='1.0' encoding='UTF-8'"]
|
|
1491
1494
|
end
|
|
1492
1495
|
end
|
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.5.
|
|
4
|
+
version: 1.5.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -11,31 +11,31 @@ cert_chain:
|
|
|
11
11
|
- |
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
|
13
13
|
MIIEXjCCAsagAwIBA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NVHQ4EFgQUjjkDzYYL
|
|
26
|
+
SN/1W+u8CjupVuZrz1IwJgYDVR0RBB8wHYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0
|
|
27
27
|
c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1hc3RlckBqYW1lc3JvYmVydHNvbi5ldTAN
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
28
|
+
BgkqhkiG9w0BAQsFAAOCAYEAdGyAy/d9vAVyUxoBE0giPMNd1xMuyHlZ/sy2zRL3
|
|
29
|
+
2MI3GvFnYMSxhU+/ClDfIRfq37bgpuKPD/HmXGBgOcf05ZEyfGYFA318DWPOuSqQ
|
|
30
|
+
WGWmBohzZQm4DE0VcJpwLXdQaR3BvCryjgk110104/nxGlhXNs+joS1yL+urID3x
|
|
31
|
+
G9d3AFr3hsIydpIlSLue5z+L4ssm+hTxT+ZH3gglGlvgtqryMEec1dVQY4Qb9+Lc
|
|
32
|
+
NY6PZkkqHcAHG9nt5d5+H7SS9hRNcvs+npPjhHhoW9eXcfRz5h4KsEbmZNczUul6
|
|
33
|
+
yQ42F7lgIB0a48zmaiSneZNsRQk99SHQ+paP0DqSRsa0U9j0IEHdRui7EWA7regE
|
|
34
|
+
S3p1n7ojESGKYCT5yHp6WFpG0p7rX8U6zWJ7PAf0NBVK6TbL8dA7NY4Jeo1eWxE8
|
|
35
|
+
7GC2GlG9BZ9Re4sfu0pwhOe4qFiGyJciH9BWM8DpSRJPbEmLeoNUdU23JgQPhhkO
|
|
36
|
+
Kiffp9M4EsB/3/3SNM/RVklK
|
|
37
37
|
-----END CERTIFICATE-----
|
|
38
|
-
date:
|
|
38
|
+
date: 2021-02-20 00:00:00.000000000 Z
|
|
39
39
|
dependencies:
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: c32
|
|
@@ -81,22 +81,22 @@ dependencies:
|
|
|
81
81
|
name: rexle-builder
|
|
82
82
|
requirement: !ruby/object:Gem::Requirement
|
|
83
83
|
requirements:
|
|
84
|
-
- - ">="
|
|
85
|
-
- !ruby/object:Gem::Version
|
|
86
|
-
version: 0.6.0
|
|
87
84
|
- - "~>"
|
|
88
85
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: '0
|
|
86
|
+
version: '1.0'
|
|
87
|
+
- - ">="
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: 1.0.2
|
|
90
90
|
type: :runtime
|
|
91
91
|
prerelease: false
|
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
|
94
|
-
- - ">="
|
|
95
|
-
- !ruby/object:Gem::Version
|
|
96
|
-
version: 0.6.0
|
|
97
94
|
- - "~>"
|
|
98
95
|
- !ruby/object:Gem::Version
|
|
99
|
-
version: '0
|
|
96
|
+
version: '1.0'
|
|
97
|
+
- - ">="
|
|
98
|
+
- !ruby/object:Gem::Version
|
|
99
|
+
version: 1.0.2
|
|
100
100
|
- !ruby/object:Gem::Dependency
|
|
101
101
|
name: rexle-css
|
|
102
102
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -163,7 +163,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
163
163
|
- !ruby/object:Gem::Version
|
|
164
164
|
version: '0'
|
|
165
165
|
requirements: []
|
|
166
|
-
|
|
166
|
+
rubyforge_project:
|
|
167
|
+
rubygems_version: 2.7.10
|
|
167
168
|
signing_key:
|
|
168
169
|
specification_version: 4
|
|
169
170
|
summary: Rexle is an XML parser written purely in Ruby
|
metadata.gz.sig
CHANGED
|
Binary file
|