sitemap-parser 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sitemap-parser.rb +2 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e1f45974fe39269287ae515e63e56d245dd0ff6
|
4
|
+
data.tar.gz: 99382aa0efafaccedf73189a741c6770ccf683a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 275725d0338f36502a147469b28a154e71e03af94d64d5f4947ef36d2a40dddb8707bdc83a97cbf2f582c9b17083a8160b023271754d67dafb76dc6cb6a83518
|
7
|
+
data.tar.gz: 1b000477be977c027646d887e7b5dc3595c029c01cf4467fbac8e79e92ceeae947259902b00761d071fbe656305deaeb8c3289063286a265fac44e3c27d32350
|
data/lib/sitemap-parser.rb
CHANGED
@@ -11,7 +11,8 @@ class SitemapParser
|
|
11
11
|
def raw_sitemap
|
12
12
|
@raw_sitemap ||= begin
|
13
13
|
if @url =~ /\Ahttp/i
|
14
|
-
|
14
|
+
request_options = @options.dup.tap { |opts| opts.delete(:recurse) }
|
15
|
+
request = Typhoeus::Request.new(@url, request_options)
|
15
16
|
request.on_complete do |response|
|
16
17
|
if response.success?
|
17
18
|
return response.body
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sitemap-parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Balter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -135,9 +135,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
135
|
version: '0'
|
136
136
|
requirements: []
|
137
137
|
rubyforge_project:
|
138
|
-
rubygems_version: 2.6.
|
138
|
+
rubygems_version: 2.6.11
|
139
139
|
signing_key:
|
140
140
|
specification_version: 4
|
141
141
|
summary: Ruby Gem to parse sitemaps.org compliant sitemaps
|
142
142
|
test_files: []
|
143
|
-
has_rdoc:
|