rexle 1.5.8 → 1.5.9
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 +0 -0
- data/lib/rexle.rb +2 -1
- metadata +2 -2
- metadata.gz.sig +4 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3de6afcc2f8624b09a8b6daed2f029f039620e6db533704082fbad51a24b8653
|
4
|
+
data.tar.gz: 7b2c4ff64e3fbd8af86434ecf6aafb77717ef5d71fd1854688e618685b58c376
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3291c1064ef80dba9e894e4c2202ee12941b379a4888409357a442add8f60f59d5d7d4fc7487e7dd887b9abf4655d16bb9d3f4c5058c89555ed27d627574bfb9
|
7
|
+
data.tar.gz: 7210323cb3b62f47ef9f1a6d43a3bbd2e2477675d42c1fba534f944da3bd93cc1240de36886040e21eb2b6cff27a23bf9aee3bb04465da6962b49c41f9938ad0
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rexle.rb
CHANGED
@@ -13,6 +13,7 @@ require 'backtrack-xpath'
|
|
13
13
|
|
14
14
|
# modifications:
|
15
15
|
|
16
|
+
# 11-Sep-2020: feature: Rexle::Element#text now has unescaped HTML using CGI
|
16
17
|
# 30-Jul-2020: minor improvement: #plaintext now unescapes & to &
|
17
18
|
# 11-May-2020: bug fix: Rexle#css now responds correctly to valid selectors
|
18
19
|
# 23-Apr-2020: feature: Added public method *plaintext*.
|
@@ -1003,7 +1004,7 @@ class Rexle
|
|
1003
1004
|
def map(&blk) self.children.map(&blk) end
|
1004
1005
|
|
1005
1006
|
def plaintext()
|
1006
|
-
xml().gsub(/<\/?[^>]+>/,'').gsub('&
|
1007
|
+
CGI.unescapeHTML xml().gsub(/<\/?[^>]+>/,'').gsub(' ',' ')\
|
1007
1008
|
.gsub(/\n\s+/,' ')
|
1008
1009
|
end
|
1009
1010
|
|
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.9
|
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-09-11 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: c32
|
metadata.gz.sig
CHANGED
@@ -1 +1,4 @@
|
|
1
|
-
|
1
|
+
s:`;*yXo���G�{|������
|
2
|
+
NޏH������"W^�������{��~ÛѾ����? �
|
3
|
+
�n��U�~f�>Fs�H�V��2h�T�ʟf��j��C��%�Ys���VUcx?�4������"x�;Ο��Z�'�]N���{�:�s��������CK�ϱ�S��Y0q�z���S���H��$�$G��*=h����)y'k���zB۳p�
|
4
|
+
Mj馤g4����O6�|��� ��Ƽ�m���Y�V^��:/O��V"5�j�9�-�'O+R��U�WC���,�i�vs��=���D��.��ŭ��q��vn�^Ĥ9�]Wn,6y$�A}D��W7���Q��%���lr ;�Q��������p�����z��
|