html_acceptance 0.1.16 → 0.1.17

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.16
1
+ 0.1.17
@@ -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.16"
8
+ s.version = "0.1.17"
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"]
@@ -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
- str.gsub!(/^line.*trimming empty.*\n/, '') # 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
79
79
 
80
- def validate
81
- results=''
82
- Open3.popen3(tidy_command) do |stdin, stdout, stderr, wait_thr|
83
- stdin.puts @html
84
- stdin.close
85
- results=stderr.read
86
- end
87
- results
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.16
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: 3196192247928734117
100
+ hash: -1459436124537514502
101
101
  segments:
102
102
  - 0
103
103
  version: "0"