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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 48ffcbfab5e523417662457d13ac99081ec9257b3c8658943487c981ae9e6963
4
- data.tar.gz: a1e01f8147ac5f5ca54a99038d9c5a38d8e149cbfb64546f461fd2e9f80b3a4b
3
+ metadata.gz: 3de6afcc2f8624b09a8b6daed2f029f039620e6db533704082fbad51a24b8653
4
+ data.tar.gz: 7b2c4ff64e3fbd8af86434ecf6aafb77717ef5d71fd1854688e618685b58c376
5
5
  SHA512:
6
- metadata.gz: 7ee20461d62db424b3542e10e06bbee810e943a59e3f06297fd71a4cf77addd2a945ac56dc931aad7eedb9633f1afb18d25a77841b3a945bdd1435426e3f9846
7
- data.tar.gz: 326c39c15f196b500d82fd2bff225ca3a40e472c77cc51191d8db03766bcaaac11c72560e75ef9d532e4af71370be29b1ccbaee9731fad4e4a742566a6bf8814
6
+ metadata.gz: 3291c1064ef80dba9e894e4c2202ee12941b379a4888409357a442add8f60f59d5d7d4fc7487e7dd887b9abf4655d16bb9d3f4c5058c89555ed27d627574bfb9
7
+ data.tar.gz: 7210323cb3b62f47ef9f1a6d43a3bbd2e2477675d42c1fba534f944da3bd93cc1240de36886040e21eb2b6cff27a23bf9aee3bb04465da6962b49c41f9938ad0
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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('&amp;','&').gsub('&nbsp;',' ')\
1007
+ CGI.unescapeHTML xml().gsub(/<\/?[^>]+>/,'').gsub('&nbsp;',' ')\
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.8
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-07-30 00:00:00.000000000 Z
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
- ڿ�: r-v*���2��A|���0���������
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��Y0׷q�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��