code_terminator 0.4.13 → 0.4.14
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
- data/lib/code_terminator/html.rb +4 -0
- data/lib/code_terminator/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f508da0ae33e2fa4e4a74b374cfa421313208871
|
|
4
|
+
data.tar.gz: e4a1eeff9512e6982789e9d8c22d68684abeba01
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f7bead4a3f71a5574cc59dc9c66368cf1af0cfdfbf5e76fdfee950a8c1afd06f0172b659c19b32b94939ad2e85d1b96845e20c43a766323823abe9242015859f
|
|
7
|
+
data.tar.gz: 8c4ce312b6e515f98ecff34d5e290cc32c1c681adf9606ecbcec7026c4e45064a4f9f30544dd6e78feefa93cddcabe9b636c43718c51b491037a94ebea611b17
|
data/lib/code_terminator/html.rb
CHANGED
|
@@ -307,7 +307,11 @@ class CodeTerminator::Html
|
|
|
307
307
|
#embebed code
|
|
308
308
|
#if code.css(e[:parent]).text != e[:content]
|
|
309
309
|
if node_child.text.strip != e[:content].strip
|
|
310
|
+
if item == "comment"
|
|
311
|
+
error330 = new_error(element: e, type: 330, description: "The text inside the comment should be #{e[:content]}")
|
|
312
|
+
else
|
|
310
313
|
error330 = new_error(element: e, type: 330, description: "The text inside `<#{e[:parent]}>` should be #{e[:content]}")
|
|
314
|
+
end
|
|
311
315
|
else
|
|
312
316
|
text_found = true
|
|
313
317
|
end
|