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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/sitemap-parser.rb +2 -1
  3. metadata +3 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1315feae0e6664ba1047dca9682663ab2854c9d9
4
- data.tar.gz: 345c43faad3c00fce3bec650da8e0b1b9bc7903a
3
+ metadata.gz: 5e1f45974fe39269287ae515e63e56d245dd0ff6
4
+ data.tar.gz: 99382aa0efafaccedf73189a741c6770ccf683a3
5
5
  SHA512:
6
- metadata.gz: b9656163ef064c3789b062deb5bff162676a426aa022a3bafe7926c4cb513207f2360920df1a81f5279cb352e6a0709a707d38cefa094ff6c038ba6a7714d15b
7
- data.tar.gz: c8b3f196785154496d6cfa6966b0930ccd9afe115b665e962bc41042cd53de8430f03924055e4c01dd493ef0d46542075c8b636d9b9c6f989d49e5c117504da5
6
+ metadata.gz: 275725d0338f36502a147469b28a154e71e03af94d64d5f4947ef36d2a40dddb8707bdc83a97cbf2f582c9b17083a8160b023271754d67dafb76dc6cb6a83518
7
+ data.tar.gz: 1b000477be977c027646d887e7b5dc3595c029c01cf4467fbac8e79e92ceeae947259902b00761d071fbe656305deaeb8c3289063286a265fac44e3c27d32350
@@ -11,7 +11,8 @@ class SitemapParser
11
11
  def raw_sitemap
12
12
  @raw_sitemap ||= begin
13
13
  if @url =~ /\Ahttp/i
14
- request = Typhoeus::Request.new(@url, followlocation: @options[:followlocation])
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.3.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: 2016-04-28 00:00:00.000000000 Z
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.2
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: