rexle 1.3.9 → 1.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e887ca995f85512cd44dfb3803f2cd94a354470
4
- data.tar.gz: e6156c54b67174055fccd6a519dbfb82bd0eec5a
3
+ metadata.gz: aa5e46b1147e08b30314c2dbfce997354943fe76
4
+ data.tar.gz: 4c71da7214b5d62af1ac409fe50cafe44b47ac3e
5
5
  SHA512:
6
- metadata.gz: df2c07a7f7b698dc7f1f33f2dffbae3dcf635f5ccb7ab3910f4e7daf656dbe67af1c7f3fb59914d71a82a9181d4de109aee5f722840977928614ac1c10182fd5
7
- data.tar.gz: cfc04148dafb882bf53ee785a542360f32850475819fb77ff947b7306cb39c95e4695cdf963035a06feea3406cdc21f1d04f97735b032dc6211ecf61ece7c457
6
+ metadata.gz: e10e53f73808efed5c45121eeb6ad433d3a76ae0738047669dc3367a05f29df9ef5da8ef438668a85ca527c4dfb80172b4564138ae512e1cf20f43997141d2ea
7
+ data.tar.gz: fd4996723bc1425a682dfb4f3bee820c486dd7868269097390c07864040aa6c10791abf8873689c52adb7d0a3faa8993a0c24623ee9374cf1dec09534794b4d9
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/rexle.rb CHANGED
@@ -12,6 +12,8 @@ require 'backtrack-xpath'
12
12
 
13
13
  # modifications:
14
14
 
15
+ # 02-Mar-2016: improvement: When handling the HTML element iframe, it
16
+ # is no longer printed as a self-closing tag
15
17
  # 05-Nov-2015: bug fix: UTF-8 encoding is now enforced when
16
18
  # preparing the XML for output
17
19
  # 15-Sep-2015: improvement: When handling the HTML element textarea, it
@@ -226,7 +228,8 @@ module XMLhelper
226
228
 
227
229
  if (x.children and x.children.length > 0 \
228
230
  and not x.children.is_an_empty_string?) or \
229
- x.name == 'script' or x.name == 'textarea' then
231
+ x.name == 'script' or x.name == 'textarea' \
232
+ or x.name == 'iframe' then
230
233
 
231
234
  out = ["<%s>" % tag]
232
235
  out << scan_print(x.children)
@@ -291,7 +294,8 @@ module XMLhelper
291
294
  if (x.value and x.value.length > 0) \
292
295
  or (x.children and x.children.length > 0 \
293
296
  and not x.children.is_an_empty_string?) or \
294
- x.name == 'script' or x.name == 'textarea' then
297
+ x.name == 'script' or x.name == 'textarea' or \
298
+ x.name == 'iframe' then
295
299
 
296
300
  ind1 = (x.children and x.children.grep(Rexle::Element).length > 0) ?
297
301
  ("\n" + ' ' * indent) : ''
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.3.9
4
+ version: 1.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  Tkua07gB3/nVO3aPg7C3vEbDZCxT3WAMli2uZisYT6ozmdAlDsixLjipgFN4If3z
32
32
  Ej0QR3kvGcAvFQ==
33
33
  -----END CERTIFICATE-----
34
- date: 2015-11-05 00:00:00.000000000 Z
34
+ date: 2016-03-02 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rexleparser
metadata.gz.sig CHANGED
@@ -1,3 +1,2 @@
1
- �{O�a�T���)A@,���;��+
2
- ��� ֨nx+ZIW�������D�%U͈!�/w��Fc�ƽ�<[`�����"4Q�Kc��o,����ۻ5��t�$1ʛnv��*�d���tj�V���$��:^��~�H��J0�qYH��7$�� hߵ�[fh���P��1�=�޲n����D�˅�����dR�Ȫ�
3
- ��3/��S������+�2>�X
1
+ ���7H��|~����S�%�� {���#3f���a�Ni@�1eؾ|d�:�+�"{�m� ��=�k�,(���E�?�=ڐ�Y�9�6��1��3נc���|��-z��X�=��G��>�>��$u(��KWa��顣��l���#����C](`e�����#�X�H�_+`�S�g�Hp���U�%f�e��$���S��1Du�!�
2
+ �o��t"��Zu���gC$����Ě