rexle 1.5.7 → 1.5.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +2 -3
- data/lib/rexle.rb +3 -1
- metadata +2 -2
- 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: 48ffcbfab5e523417662457d13ac99081ec9257b3c8658943487c981ae9e6963
|
4
|
+
data.tar.gz: a1e01f8147ac5f5ca54a99038d9c5a38d8e149cbfb64546f461fd2e9f80b3a4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ee20461d62db424b3542e10e06bbee810e943a59e3f06297fd71a4cf77addd2a945ac56dc931aad7eedb9633f1afb18d25a77841b3a945bdd1435426e3f9846
|
7
|
+
data.tar.gz: 326c39c15f196b500d82fd2bff225ca3a40e472c77cc51191d8db03766bcaaac11c72560e75ef9d532e4af71370be29b1ccbaee9731fad4e4a742566a6bf8814
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
U
|
2
|
-
|
3
|
-
{�!�=T���bi��f'ڼ����6^��
|
1
|
+
w�AN���P8���L�IF��-fe��#���@���Ej��6.��U�:��4U�<I���w����V ""�<$� �J��]Ի�@�j�8�,��[�F˓�(�0"�|^�_��);��g5Si/�<�.���4
|
2
|
+
+�C����R���
|
data/lib/rexle.rb
CHANGED
@@ -13,6 +13,7 @@ require 'backtrack-xpath'
|
|
13
13
|
|
14
14
|
# modifications:
|
15
15
|
|
16
|
+
# 30-Jul-2020: minor improvement: #plaintext now unescapes & to &
|
16
17
|
# 11-May-2020: bug fix: Rexle#css now responds correctly to valid selectors
|
17
18
|
# 23-Apr-2020: feature: Added public method *plaintext*.
|
18
19
|
# 04-Feb-2020: minor bug fix: Element A is now defined as a non self-closing tag
|
@@ -1002,7 +1003,8 @@ class Rexle
|
|
1002
1003
|
def map(&blk) self.children.map(&blk) end
|
1003
1004
|
|
1004
1005
|
def plaintext()
|
1005
|
-
xml().gsub(/<\/?[^>]+>/,'').gsub('&
|
1006
|
+
xml().gsub(/<\/?[^>]+>/,'').gsub('&','&').gsub(' ',' ')\
|
1007
|
+
.gsub(/\n\s+/,' ')
|
1006
1008
|
end
|
1007
1009
|
|
1008
1010
|
def root() self 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.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
yK32Ci6By/qMCdJdE8pLLZhHuZGIkoYJK7EN7OKPznwuXRCOq7jb44HAIDi4RZST
|
36
36
|
J+lqIOqNxqRJkYpuYSZr+tyd
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2020-
|
38
|
+
date: 2020-07-30 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: c32
|
metadata.gz.sig
CHANGED
Binary file
|