rexle 1.3.18 → 1.3.19
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/rexle.rb +5 -2
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7d4a05c0029e1844f848445f0253e656e76fd74e
|
|
4
|
+
data.tar.gz: 864e6fa3e813adf522b6196baed511be871aa750
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f31e0edfe2fd742b66e7f6e2de4b87b6b15e5f748d8a14f07612b950f59d24adb47726310a85360f33acb085a3102b56bde1cd6bf505050be4a1b53d2a300fd8
|
|
7
|
+
data.tar.gz: 1d553faa32a0e308f41c50e3ffe9804259960cd4b2687a253d26af7e67cdeb278f85ac9b5435824945e0aada4d42020955cfba3476041e206ed2fbb0d2d491aa
|
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
|
+
# 16-Apr-2016: improvement: The HTML element div is no longer printed as
|
|
16
|
+
# a self-closing tag if empty
|
|
15
17
|
# 04-Apr-2016: bug fix: modified the bug fix from the 15-Mar-2016 to
|
|
16
18
|
# validate on a function name only within the variable attr_search
|
|
17
19
|
# minor improvement: Added a new line character between
|
|
@@ -136,11 +138,12 @@ module XMLhelper
|
|
|
136
138
|
end
|
|
137
139
|
|
|
138
140
|
tag = x.name + (a.empty? ? '' : ' ' + a.join(' '))
|
|
141
|
+
|
|
142
|
+
non_self_closing_tags = %w(script textarea iframe div)
|
|
139
143
|
|
|
140
144
|
if (x.children and x.children.length > 0 \
|
|
141
145
|
and not x.children.is_an_empty_string?) or \
|
|
142
|
-
|
|
143
|
-
or x.name == 'iframe' then
|
|
146
|
+
non_self_closing_tags.include? x.name then
|
|
144
147
|
|
|
145
148
|
out = ["<%s>" % tag]
|
|
146
149
|
out << scan_print(x.children)
|
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.
|
|
4
|
+
version: 1.3.19
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
pOw2Fx4uv9tO6wagRTcaHduxkh4jYfPDQI9mODFccHeY+wRLDGTENQwIILvMgEa7
|
|
32
32
|
50vRuyU+obGfjg==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2016-04-
|
|
34
|
+
date: 2016-04-16 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: rexleparser
|
metadata.gz.sig
CHANGED
|
Binary file
|