sitemaps_parser 0.2.1 → 0.2.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: 48e74e772cd689a18f735341f9cc1272494e26b8
4
- data.tar.gz: 12737b00e5a24ae20ccb17c079b3fc3621e555c8
3
+ metadata.gz: 7ba72de307e8ad869330f8577085aeb085f9d374
4
+ data.tar.gz: bd1a8740911500318dd227ee311fa31f2e457f81
5
5
  SHA512:
6
- metadata.gz: 98d19dfb44b860c00401bcf2318e6a077101cd27a11fa7665d8d4b2d1a5bcbdfe11d0bd43e9b1da1e5e378dbe9eb92898b8132f2e6fe883e4df5fc0a0ae94138
7
- data.tar.gz: e966d408e8edb14f66fce1ad6ce4f3053a53667a9e56ef26d3d3375311b3b4b83a794da859b174c67532dddaa4d01e6fb22cb0d5ec97bd0c856f2190bd0e4fb9
6
+ metadata.gz: 8b504a926a9e51611258f93ba88a85db5664e0939f6bc5337599887b6f258738d8560140f20521bbc2698b0322ec2e3d67abfbd57d02f01258875954f6664a5a
7
+ data.tar.gz: 2a92c0b888363b473a1cb3d981c3533b4fafe15eacdf7c920aa35e131c8a4a9db2284cef13958b73e52886110c8556b61acf61a6d7272c1e3c375434540a702d
@@ -1,3 +1,3 @@
1
1
  module Sitemaps
2
- VERSION = "0.2.1".freeze
2
+ VERSION = "0.2.2".freeze
3
3
  end
data/lib/sitemaps.rb CHANGED
@@ -171,7 +171,7 @@ module Sitemaps
171
171
  robotsurl.path = "/robots.txt"
172
172
  robotstxt = fetcher.call(robotsurl)
173
173
 
174
- discovered = robotstxt.scan(/^Sitemap: (.+)$/).flatten.reverse.map { |u| URI.parse(u) }
174
+ discovered = robotstxt.scan(/^Sitemap: (.+)$/).flatten.reverse.map { |u| URI.parse(u.strip) }
175
175
  discovered.empty? ? nil : discovered
176
176
  rescue
177
177
  nil
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sitemaps_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Raphaelson