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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c9d992e9e6883862b84e74336b84e2b965d7a8c2
4
- data.tar.gz: f6cbbbb846d20919254474c1a829486b360a3500
3
+ metadata.gz: 5db31e64964278cb573177e07d828c103d810afc
4
+ data.tar.gz: 67edb4ea4a2b96b2848b7dc9b653354e31530f73
5
5
  SHA512:
6
- metadata.gz: 8a6f0e6f72e7671b78af2d317767e89001e839162243482c789c0443f161ba4e6b5781e0532b38aaebf84d5808347078918f420ebf70c5690d3dc4387742c129
7
- data.tar.gz: 50aa7ae1f4a896b7d32dba355c2b96619ec9df9754d6abc6b3c5792ee845bb477a84d839257471e2de76d8194fdc8ac4679128cee9269890f41d91580681cf62
6
+ metadata.gz: c6ef6c5d084fc50ea1e8867175d74c935183ecab26f30218a857390f2b3f194226e009a33885017f2b50e55e10c1f5ba0986f289510390ad8f28d48a4efaf654
7
+ data.tar.gz: 7ab5a8a2388373f95691a18bde77547610266135e27435087ce1b287a4a43858b69bdcefb7b25be5433efb70dbc564d528ce893cd9196cb27bcbd95f6e69dcb3
@@ -1,3 +1,5 @@
1
1
  rvm:
2
2
  - 2.0.0
3
3
  - 2.1.3
4
+ before_install:
5
+ - gem install bundler
@@ -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
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  module SiteValidator
4
- VERSION = "2.1.1"
4
+ VERSION = "2.1.2"
5
5
  end
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.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: 2015-08-31 00:00:00.000000000 Z
11
+ date: 2016-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: w3c_validators