site_validator 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/lib/site_validator/sitemap.rb +1 -1
- data/lib/site_validator/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5db31e64964278cb573177e07d828c103d810afc
|
4
|
+
data.tar.gz: 67edb4ea4a2b96b2848b7dc9b653354e31530f73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6ef6c5d084fc50ea1e8867175d74c935183ecab26f30218a857390f2b3f194226e009a33885017f2b50e55e10c1f5ba0986f289510390ad8f28d48a4efaf654
|
7
|
+
data.tar.gz: 7ab5a8a2388373f95691a18bde77547610266135e27435087ce1b287a4a43858b69bdcefb7b25be5433efb70dbc564d528ce893cd9196cb27bcbd95f6e69dcb3
|
data/.travis.yml
CHANGED
@@ -75,7 +75,7 @@ module SiteValidator
|
|
75
75
|
def looks_like_html?(url)
|
76
76
|
u = URI.parse(URI.encode(url))
|
77
77
|
scheme = u.scheme if u.scheme
|
78
|
-
extension = u.path.split(".").last if u.path
|
78
|
+
extension = u.path.split(".").last if u.path && u.path.split(".").size > 1
|
79
79
|
|
80
80
|
(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)
|
81
81
|
rescue URI::InvalidURIError
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: site_validator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jaime Iniesta
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: w3c_validators
|