code_terminator 0.2.4 → 0.2.5
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/code_terminator-0.2.4.gem +0 -0
- data/exercises/test.html +1 -5
- data/lib/code_terminator/html.rb +9 -6
- data/lib/code_terminator/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7334a3f361f3189eecb60336d40da9508c4e086b
|
|
4
|
+
data.tar.gz: 6bee9d20453dd1b59600e386bb8a0928ce45229e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0274f810102df8e3ff8f94423d60fa733fd984dc2351a345887d123b9a4cd5e6aa43b11f812ce45a4ec4e5832d914de21c0d5ab99579b4c2fb8b570fa37d42f3
|
|
7
|
+
data.tar.gz: b595909e2023b80cdaef6543e63d00cd303fb54e5b1ddf3b0757fe79eadded1e5a8387b5071c4b03d7d285bce23fd9585c44b41b861cdda885efdef4f9e7a4db
|
|
Binary file
|
data/exercises/test.html
CHANGED
data/lib/code_terminator/html.rb
CHANGED
|
@@ -189,14 +189,17 @@ class CodeTerminator::Html
|
|
|
189
189
|
|
|
190
190
|
elements.each do |e|
|
|
191
191
|
item = e[:tag]
|
|
192
|
+
|
|
192
193
|
if item=="text"
|
|
194
|
+
|
|
193
195
|
if !e[:content].nil?
|
|
194
196
|
if code.css(e[:parent]).text != e[:content]
|
|
195
197
|
html_errors << e[:parent] + " haven't the same text " + e[:content]
|
|
196
198
|
end
|
|
197
|
-
e[:content] == code.css()
|
|
198
|
-
|
|
199
|
-
|
|
199
|
+
#e[:content] == code.css()
|
|
200
|
+
|
|
201
|
+
end
|
|
202
|
+
|
|
200
203
|
else
|
|
201
204
|
if code.css(e[:tag]).length > 0
|
|
202
205
|
|
|
@@ -216,9 +219,9 @@ class CodeTerminator::Html
|
|
|
216
219
|
|
|
217
220
|
else
|
|
218
221
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
+
if code.at_css(e[:tag]).nil?
|
|
223
|
+
html_errors << e[:tag] + " not exist in " + e[:parent]
|
|
224
|
+
end
|
|
222
225
|
|
|
223
226
|
end
|
|
224
227
|
|
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.2.
|
|
4
|
+
version: 0.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Evelin Ponce
|
|
@@ -78,6 +78,7 @@ files:
|
|
|
78
78
|
- code_terminator-0.2.1.gem
|
|
79
79
|
- code_terminator-0.2.2.gem
|
|
80
80
|
- code_terminator-0.2.3.gem
|
|
81
|
+
- code_terminator-0.2.4.gem
|
|
81
82
|
- code_terminator.gemspec
|
|
82
83
|
- exe/code_terminator
|
|
83
84
|
- exercises/new.html
|