html-proofer 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 523fc0b1a42fe853158c68c1a830e8a0c740aff8
4
- data.tar.gz: 14df17b4cd0ac8eccf03d276ca8c8ac61c4fc1f0
3
+ metadata.gz: 82825927f1730ea04245db859aa3fb25f20843d5
4
+ data.tar.gz: b0f8ed372c1a5b2c0ec7e52e5d0096351efd7d91
5
5
  SHA512:
6
- metadata.gz: dfd41a8480554880f71e761a5d74689b40edc4e28f7087f7ff51bb9908d6ebaaf683d629b9ea0956897ab8683c5bd10991915c41014fcaa513ed22fac1fe692e
7
- data.tar.gz: a6b5b3fed29a7464af9569542df5025cf0f58263763b6cbc033fdfbd5e0bdf45b3032044af896e7ab32e89c09940b03b4f070fc89d876dad4233f3fec30ece58
6
+ metadata.gz: f4baee97f59fc19632854b731ca42629f317990d15bf254e6089a8942c356f2ea283a97a9dc7408ef1a7333b2b00e1bb07299fbc83541630cdd9864d9b43e5a5
7
+ data.tar.gz: 094d5a13e510277cf7976c8d79a4d8309d5392f7af4887d95384bcd950bb9dca78b66efefbb123594f6ac9de1a10046c10e9ca77a2cca161a75cdfdb078fa5e8
data/html-proofer.gemspec CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |gem|
5
5
  gem.name = "html-proofer"
6
- gem.version = "1.1.2"
6
+ gem.version = "1.1.3"
7
7
  gem.authors = ["Garen Torikian"]
8
8
  gem.email = ["gjtorikian@gmail.com"]
9
9
  gem.description = %q{Test your rendered HTML files to make sure they're accurate.}
data/lib/html/proofer.rb CHANGED
@@ -46,7 +46,7 @@ module HTML
46
46
 
47
47
  get_checks.each do |klass|
48
48
  logger.debug "Checking #{klass.to_s.downcase} on #{path} ...".blue
49
- check = klass.new(@src, path, html, @options)
49
+ check = Object.const_get(klass).new(@src, path, html, @options)
50
50
  check.run
51
51
  external_urls.merge!(check.external_urls)
52
52
  @failed_tests.concat(check.issues) if check.issues.length > 0
@@ -150,8 +150,8 @@ module HTML
150
150
  end
151
151
 
152
152
  def get_checks
153
- checks = HTML::Proofer::Checks::Check.subclasses
154
- checks.delete("Favicon") unless @options[:favicon]
153
+ checks = HTML::Proofer::Checks::Check.subclasses.map { |c| c.name }
154
+ checks.delete("Favicons") unless @options[:favicon]
155
155
  checks
156
156
  end
157
157
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html-proofer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian