html_acceptance 0.1.16 → 0.1.17
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 +9 -9
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.17
|
data/html_acceptance.gemspec
CHANGED
@@ -72,19 +72,19 @@ 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
|
-
|
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
|
79
79
|
|
80
|
-
def validate
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
80
|
+
def validate
|
81
|
+
stdin, stdout, stderr = Open3.popen3(tidy_command)
|
82
|
+
stdin.puts @html
|
83
|
+
stdin.close
|
84
|
+
stdout.close
|
85
|
+
result=stderr.read
|
86
|
+
stderr.close
|
87
|
+
result
|
88
88
|
end
|
89
89
|
|
90
90
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: html_acceptance
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.17
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Eric Beland
|
@@ -97,7 +97,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
97
97
|
requirements:
|
98
98
|
- - ">="
|
99
99
|
- !ruby/object:Gem::Version
|
100
|
-
hash:
|
100
|
+
hash: -1459436124537514502
|
101
101
|
segments:
|
102
102
|
- 0
|
103
103
|
version: "0"
|