code_terminator 0.5.0 → 0.5.1
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/exercises/issue19.html +8 -0
- data/exercises/issue20.html +8 -0
- data/exercises/issue21.html +7 -0
- data/lib/code_terminator/html.rb +2 -2
- data/lib/code_terminator/version.rb +1 -1
- metadata +4 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab308a5201c42ee4c1f44b1453c10af4a82496f6
|
4
|
+
data.tar.gz: 5d42782b5504782fa275705b2c1d5189cb82588a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c43968b90f72c1648a136b6ffa5ba740f436d081d433684f3d2b1fb12bf70347ac3db4b38edc3d0b66b3ef0ef75b99d2ecca2568fa3bc16e229af35cd034660b
|
7
|
+
data.tar.gz: 53192b5c787a3577403285870f67eeda60fc315000c6a3c43ffec2105ca196ad59470bf65f39796c04a45219cae114e3b431253b325904fc64f0a793de5d2c95
|
data/lib/code_terminator/html.rb
CHANGED
@@ -313,7 +313,7 @@ class CodeTerminator::Html
|
|
313
313
|
@comment_found = true
|
314
314
|
end
|
315
315
|
|
316
|
-
if node_child.class == Nokogiri::XML::Text
|
316
|
+
if node_child.class == Nokogiri::XML::Text && item != "comment"
|
317
317
|
if node_child.text.strip != e[:content].strip
|
318
318
|
error330 = new_error(element: e, type: 330, description: "The text inside `<#{e[:parent]}>` should be #{e[:content]}")
|
319
319
|
else
|
@@ -342,7 +342,7 @@ class CodeTerminator::Html
|
|
342
342
|
|
343
343
|
#if comment not found, throw error
|
344
344
|
if !(defined? @comment_found).nil?
|
345
|
-
html_errors << new_error(element: e, type: 404, description: "Remember to add the
|
345
|
+
html_errors << new_error(element: e, type: 404, description: "Remember to add the comment tag") if !@comment_found
|
346
346
|
remove_instance_variable(:@comment_found)
|
347
347
|
end
|
348
348
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: code_terminator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evelin Ponce
|
@@ -163,6 +163,9 @@ files:
|
|
163
163
|
- exercises/issue16.html
|
164
164
|
- exercises/issue17.html
|
165
165
|
- exercises/issue18.html
|
166
|
+
- exercises/issue19.html
|
167
|
+
- exercises/issue20.html
|
168
|
+
- exercises/issue21.html
|
166
169
|
- exercises/new.html
|
167
170
|
- exercises/new2.html
|
168
171
|
- exercises/test.css
|