sitemap_checker 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sitemap_checker/path.rb +1 -1
- data/lib/sitemap_checker/version.rb +1 -1
- metadata +2 -3
data/lib/sitemap_checker/path.rb
CHANGED
@@ -13,7 +13,7 @@ module SitemapChecker
|
|
13
13
|
|
14
14
|
def status
|
15
15
|
begin
|
16
|
-
@status ||= open(@url, "Accept"=> 'text/html').status[0]
|
16
|
+
@status ||= open(@url, "Accept" => @url[/\.xml$/] ? 'application/xml' : 'text/html').status[0]
|
17
17
|
rescue RuntimeError => e
|
18
18
|
e
|
19
19
|
rescue OpenURI::HTTPError => e
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sitemap_checker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
@@ -86,4 +86,3 @@ test_files:
|
|
86
86
|
- spec/fixtures/sitemap.xsd
|
87
87
|
- spec/sitemap_checker_spec.rb
|
88
88
|
- spec/spec_helper.rb
|
89
|
-
has_rdoc:
|