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 CHANGED
@@ -1 +1 @@
1
- 0.1.9
1
+ 0.1.15
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{html_acceptance}
8
- s.version = "0.1.9"
8
+ s.version = "0.1.15"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Eric Beland"]
@@ -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!(/line [0-9]+ column [0-9]+ - Warning: trimming empty <[a-zA-Z]+>/, '') # the messages about empty are overzealous, and not invalid
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: 9
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 9
10
- version: 0.1.9
9
+ - 15
10
+ version: 0.1.15
11
11
  platform: ruby
12
12
  authors:
13
13
  - Eric Beland