site_validator 1.0.3 → 1.0.4

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.
@@ -78,7 +78,7 @@ module SiteValidator
78
78
  scheme = u.scheme if u.scheme
79
79
  extension = u.path.split(".").last if u.path
80
80
 
81
- (scheme =~ /http[s]?/i) && (extension !~ /gif|jpg|jpeg|png|tiff|bmp|txt|pdf|doc|rtf|xml|xls|csv|wav|mp3|ogg|zip|rar|tar|gz/i)
81
+ (scheme =~ /http[s]?/i) && (extension !~ /gif|jpg|jpeg|png|tiff|bmp|txt|pdf|mobi|epub|doc|rtf|xml|xls|csv|wav|mp3|ogg|zip|rar|tar|gz/i)
82
82
  end
83
83
 
84
84
  def xml_locations
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  module SiteValidator
4
- VERSION = "1.0.3"
4
+ VERSION = "1.0.4"
5
5
  end
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
17
17
 
18
18
  gem.add_dependency 'w3c_validators', '~> 1.2'
19
19
  gem.add_dependency 'nokogiri', '~> 1.5.3'
20
- gem.add_dependency 'metainspector', '~> 1.10.1'
20
+ gem.add_dependency 'metainspector', '~> 1.10.2'
21
21
 
22
22
  gem.add_development_dependency 'rspec', '~> 2.5.0'
23
23
  gem.add_development_dependency 'mocha', '~> 0.11.4'
@@ -28,6 +28,8 @@ Via: 1.1 varnish
28
28
 
29
29
  <a href="/file.pdf">link</a><br />
30
30
  <a href="/file.txt">link</a><br />
31
+ <a href="/file.mobi">link</a><br />
32
+ <a href="/file.epub">link</a><br />
31
33
  <a href="/file.doc">link</a><br />
32
34
  <a href="/file.xls">link</a><br />
33
35
  <a href="/file.rtf">link</a><br />
@@ -42,6 +42,12 @@ Content-Type: text/xml
42
42
  <url>
43
43
  <loc>http://example.com/file.txt</loc>
44
44
  </url>
45
+ <url>
46
+ <loc>http://example.com/file.mobi</loc>
47
+ </url>
48
+ <url>
49
+ <loc>http://example.com/file.epub</loc>
50
+ </url>
45
51
  <url>
46
52
  <loc>http://example.com/file.doc</loc>
47
53
  </url>
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: site_validator
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 3
10
- version: 1.0.3
9
+ - 4
10
+ version: 1.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jaime Iniesta
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-11-16 00:00:00 Z
18
+ date: 2012-11-18 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: w3c_validators
@@ -56,12 +56,12 @@ dependencies:
56
56
  requirements:
57
57
  - - ~>
58
58
  - !ruby/object:Gem::Version
59
- hash: 61
59
+ hash: 59
60
60
  segments:
61
61
  - 1
62
62
  - 10
63
- - 1
64
- version: 1.10.1
63
+ - 2
64
+ version: 1.10.2
65
65
  type: :runtime
66
66
  version_requirements: *id003
67
67
  - !ruby/object:Gem::Dependency