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 CHANGED
@@ -1 +1 @@
1
- 0.1.18
1
+ 0.1.19
@@ -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.18"
8
+ s.version = "0.1.19"
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"]
@@ -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.18
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: -2658959921504484896
100
+ hash: -2482538201365824346
101
101
  segments:
102
102
  - 0
103
103
  version: "0"