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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f618c9f7362740fab8dd51fa97118b695effd37a7b1254992eb7bc45075256a9
4
- data.tar.gz: 8fd18092107575476f66e8f46fc8251bd42a2bc9d0819867f2ba2ac4b292f47c
3
+ metadata.gz: 48ffcbfab5e523417662457d13ac99081ec9257b3c8658943487c981ae9e6963
4
+ data.tar.gz: a1e01f8147ac5f5ca54a99038d9c5a38d8e149cbfb64546f461fd2e9f80b3a4b
5
5
  SHA512:
6
- metadata.gz: b98a5b59400eb42f562725e87c982e086446fe5ed8fafa777ac68214e345350efe567bab0b0da3e3d43eed2283cf2f550cb59a8ed3f0b44ce5c62a5298193a78
7
- data.tar.gz: d3ef38f3a5bb0cba758d98d5f7ef8618f93af4e40edea315a557c6133a7d3fdbb0420ea7441bdea06df8e787abf43314b3f1970ec05e1f2340a8676df734cc1a
6
+ metadata.gz: 7ee20461d62db424b3542e10e06bbee810e943a59e3f06297fd71a4cf77addd2a945ac56dc931aad7eedb9633f1afb18d25a77841b3a945bdd1435426e3f9846
7
+ data.tar.gz: 326c39c15f196b500d82fd2bff225ca3a40e472c77cc51191d8db03766bcaaac11c72560e75ef9d532e4af71370be29b1ccbaee9731fad4e4a742566a6bf8814
Binary file
data.tar.gz.sig CHANGED
@@ -1,3 +1,2 @@
1
- U��a���(?ŵ@dz]��'�
2
- ��"jG �[p/�;v<�;����uL���7L?Q��o����[�њ�l���[�!tÐ!����v`� `�NhY?A9��4z���_��T�z҂�\fd�a�o?�s�N��u+���
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���
@@ -13,6 +13,7 @@ require 'backtrack-xpath'
13
13
 
14
14
  # modifications:
15
15
 
16
+ # 30-Jul-2020: minor improvement: #plaintext now unescapes &amp; 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('&nbsp;',' ').gsub(/\n\s+/,' ')
1006
+ xml().gsub(/<\/?[^>]+>/,'').gsub('&amp;','&').gsub('&nbsp;',' ')\
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.7
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-06-22 00:00:00.000000000 Z
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