code_terminator 0.5.0 → 0.5.1

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
  SHA1:
3
- metadata.gz: 8d82edb81884a6b638e866c4e0d76ad85fca7d63
4
- data.tar.gz: bed0a57860cb02b6e4335a9be299858f8a870f0d
3
+ metadata.gz: ab308a5201c42ee4c1f44b1453c10af4a82496f6
4
+ data.tar.gz: 5d42782b5504782fa275705b2c1d5189cb82588a
5
5
  SHA512:
6
- metadata.gz: 29ccbd2cd7d53dd0838a62848ba2372b100e4a125b27e4f1487c908a13a1b75d2ebf2fe364ce478b3bc1a71b96d460924a106fb3cd9f681bee00431bba3c36a4
7
- data.tar.gz: ef8fefbc5477d093d10faa05963af43b61346a67ecfacc27d2ecbf3cb860454031c569a34ff0043b90468c14515129ba340ff3de2351ae600db62da6ae1ceb60
6
+ metadata.gz: c43968b90f72c1648a136b6ffa5ba740f436d081d433684f3d2b1fb12bf70347ac3db4b38edc3d0b66b3ef0ef75b99d2ecca2568fa3bc16e229af35cd034660b
7
+ data.tar.gz: 53192b5c787a3577403285870f67eeda60fc315000c6a3c43ffec2105ca196ad59470bf65f39796c04a45219cae114e3b431253b325904fc64f0a793de5d2c95
@@ -0,0 +1,8 @@
1
+ <html>
2
+ <head>
3
+ </head>
4
+ <body>
5
+ <img src="">
6
+ <img src="">
7
+ </body>
8
+ </html>
@@ -0,0 +1,8 @@
1
+ <html>
2
+ <head>
3
+ </head>
4
+ <body>
5
+ <!-- this is comment -->
6
+ <h1>test</h1>
7
+ </body>
8
+ </html>
@@ -0,0 +1,7 @@
1
+ <html>
2
+ <head>
3
+ </head>
4
+ <body>
5
+ <!-- this is a comment -->
6
+ </body>
7
+ </html>
@@ -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 `<#{e[:tag]}>` tag") if !@comment_found
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
 
@@ -1,3 +1,3 @@
1
1
  module CodeTerminator
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
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.0
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