site_validator 1.0.2 → 1.0.3

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/i)
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)
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.2"
4
+ VERSION = "1.0.3"
5
5
  end
@@ -38,6 +38,11 @@ Via: 1.1 varnish
38
38
  <a href="/file.mp3">link</a><br />
39
39
  <a href="/file.ogg">link</a><br />
40
40
 
41
+ <a href="/file.zip">link</a><br />
42
+ <a href="/file.rar">link</a><br />
43
+ <a href="/file.tar">link</a><br />
44
+ <a href="/file.gz">link</a><br />
45
+
41
46
  <a href="mailto:user@example.com">link</a><br />
42
47
  <a href="ftp://user:password@example.com">link</a><br />
43
48
  <a href="telnet://user:password@example.com">link</a><br />
@@ -66,6 +66,18 @@ Content-Type: text/xml
66
66
  <url>
67
67
  <loc>http://example.com/file.ogg</loc>
68
68
  </url>
69
+ <url>
70
+ <loc>http://example.com/file.zip</loc>
71
+ </url>
72
+ <url>
73
+ <loc>http://example.com/file.rar</loc>
74
+ </url>
75
+ <url>
76
+ <loc>http://example.com/file.tar</loc>
77
+ </url>
78
+ <url>
79
+ <loc>http://example.com/file.gz</loc>
80
+ </url>
69
81
  <url>
70
82
  <loc>mailto:user@example.com</loc>
71
83
  </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: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 2
10
- version: 1.0.2
9
+ - 3
10
+ version: 1.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jaime Iniesta