code_terminator 0.1.2 → 0.1.3
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.1.1.gem +0 -0
- data/code_terminator-0.1.2.gem +0 -0
- data/exercises/new2.html +1 -0
- data/exercises/test.html +1 -0
- data/lib/code_terminator/html.rb +2 -2
- data/lib/code_terminator/version.rb +1 -1
- metadata +5 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bb222ada4193c60d08123b1900f179726f553925
|
|
4
|
+
data.tar.gz: fc52fc8bf422eecbecbd7280cde9112bb1f74d5a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6570122173a590de2f18728120685cc9714309e704f125f0b9753cccd0b24aecce99bd7b61f804a3b8eb0bb41a0353827ad243f4fe0ddbccc51f1a60a126319b
|
|
7
|
+
data.tar.gz: 9d1b5f40d43e1bac788a4dcdf0ce59c25720a6c61a9808c0782a0a6af8ad79776adb93b159d4125832473e50c847ef3b135b9f43865abfb38cb3395b3b128529
|
|
Binary file
|
|
Binary file
|
data/exercises/new2.html
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<h2>hola</h2>
|
data/exercises/test.html
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<h2>hola test</h2>
|
data/lib/code_terminator/html.rb
CHANGED
|
@@ -66,7 +66,7 @@ class CodeTerminator::Html
|
|
|
66
66
|
errors = Array.new
|
|
67
67
|
|
|
68
68
|
begin
|
|
69
|
-
|
|
69
|
+
Nokogiri::XML(code) { |config| config.strict }
|
|
70
70
|
|
|
71
71
|
#validate if html follow w3, uncomment when check all the page
|
|
72
72
|
#"<!DOCTYPE html>
|
|
@@ -108,7 +108,7 @@ class CodeTerminator::Html
|
|
|
108
108
|
end
|
|
109
109
|
fileHtml.close
|
|
110
110
|
rescue
|
|
111
|
-
text =
|
|
111
|
+
text = false
|
|
112
112
|
ensure
|
|
113
113
|
#fileHtml.close unless fileHtml.nil?
|
|
114
114
|
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.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Evelin Ponce
|
|
@@ -71,9 +71,13 @@ files:
|
|
|
71
71
|
- bin/console
|
|
72
72
|
- bin/setup
|
|
73
73
|
- code_terminator-0.1.0.gem
|
|
74
|
+
- code_terminator-0.1.1.gem
|
|
75
|
+
- code_terminator-0.1.2.gem
|
|
74
76
|
- code_terminator.gemspec
|
|
75
77
|
- exe/code_terminator
|
|
76
78
|
- exercises/new.html
|
|
79
|
+
- exercises/new2.html
|
|
80
|
+
- exercises/test.html
|
|
77
81
|
- lib/code_terminator.rb
|
|
78
82
|
- lib/code_terminator/html.rb
|
|
79
83
|
- lib/code_terminator/version.rb
|