html_acceptance 0.1.18 → 0.1.19
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.rb +1 -1
- data/lib/tasks/html_acceptance.rake +3 -0
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.19
|
data/html_acceptance.gemspec
CHANGED
data/lib/html_acceptance.rb
CHANGED
@@ -43,7 +43,7 @@ class HTMLAcceptance
|
|
43
43
|
def each_exception
|
44
44
|
Dir.chdir(@data_folder)
|
45
45
|
Dir.glob("*.exceptions.txt").each do |file|
|
46
|
-
if File.open(file, 'r').read != ''
|
46
|
+
if File.open(File.join(@data_folder, file), 'r').read != ''
|
47
47
|
yield HTMLAcceptanceResult.load_from_files(file.gsub('.exceptions.txt',''))
|
48
48
|
end
|
49
49
|
end
|
@@ -1,6 +1,7 @@
|
|
1
1
|
|
2
2
|
desc 'Accept HTML validation exceptions results'
|
3
3
|
task :html_acceptance, :data_path do |t, args|
|
4
|
+
$stdout.puts "Managing acceptance for stored results in output folder: #{args.data_path}"
|
4
5
|
|
5
6
|
HTMLAcceptance.new(args.data_path).each_exception do |result|
|
6
7
|
$stdout.puts "Validation Exceptions for #{result.resource}:\n#{result.exceptions}"
|
@@ -9,7 +10,9 @@ task :html_acceptance, :data_path do |t, args|
|
|
9
10
|
result.accept! if sin.first.downcase == 'y'
|
10
11
|
exit if sin.downcase == 'exit'
|
11
12
|
end
|
13
|
+
$stdout.puts "HTML Validation Acceptance completed"
|
12
14
|
|
13
15
|
end
|
14
16
|
|
15
17
|
|
18
|
+
|
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.19
|
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: -2482538201365824346
|
101
101
|
segments:
|
102
102
|
- 0
|
103
103
|
version: "0"
|