html_acceptance 0.1.9 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/html_acceptance.gemspec +1 -1
- data/lib/html_acceptance/html_acceptance_result.rb +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.15
|
data/html_acceptance.gemspec
CHANGED
@@ -27,7 +27,7 @@ class HTMLAcceptanceResult
|
|
27
27
|
def valid?
|
28
28
|
@exceptions = validate
|
29
29
|
File.delete(data_path("accepted.txt")) if File.exists?(data_path("accepted.txt")) if @exceptions == ''
|
30
|
-
valid=(@exceptions == '' or accepted?(@exceptions))
|
30
|
+
valid=(filter(@exceptions) == '' or accepted?(@exceptions))
|
31
31
|
save_html_and_exceptions
|
32
32
|
valid
|
33
33
|
end
|
@@ -72,7 +72,7 @@ class HTMLAcceptanceResult
|
|
72
72
|
# if the errors change position in the file (up or down b/c you add or remove code),
|
73
73
|
# accepted exception strings will remain valid.
|
74
74
|
def filter(str)
|
75
|
-
str.gsub!(
|
75
|
+
str.gsub!(/^line.*trimming empty.*\n/, '') # the messages about empty are overzealous, and not invalid
|
76
76
|
str.gsub(/line [0-9]+ column [0-9]+ -/, '')
|
77
77
|
# /line [0-9]+ column [0-9]+ - / + =~ "line 1 column 1 - Warning: missing <!DOCTYPE> declaration"
|
78
78
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: html_acceptance
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 15
|
10
|
+
version: 0.1.15
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Eric Beland
|