robotstxt-parser 0.1.0 → 0.1.1

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: ab84cf493844dcbd92489c277344cf25746adff2
4
- data.tar.gz: 285a77121e447cbec3f192eed1a3a7de03bc1bdc
3
+ metadata.gz: fec9087c0cf406df79a6188389c9c245b0cb0db4
4
+ data.tar.gz: 07e62e35eb1a7ed8d132bf0344b5d7a79e7825a4
5
5
  SHA512:
6
- metadata.gz: 567cff3966ac583e462b7e8ab337d27695f76a20a015ddb2ca42c8052823fb5cef03b80000974ce39b2bcbc42d4ad707a826dd87cd2b1468f02fa996a3a4dcee
7
- data.tar.gz: 054054c786da1d87adc3f853c4cfa0fc6a24238c2dbd2cb47ce6d3e25babb2bb315e59625cfacfd2d97e2aaad55e39d116f24670ebb09eb1ccdc20f48af625cd
6
+ metadata.gz: 8c9a07082970793cfa87df01dc965cd1dec8754f9fc09a698a5ebef8b9e2fdd6e100f8a64c68100c4dfa98cbbff61eafd0b753873858c0de75d98ba80b36e513
7
+ data.tar.gz: 447d4dec8e7f0aee6b07e94210116a7252160a57b69f97a399464639e0e8274e1b7b7cfbc4b536dd5c70f29c1edec31614ebbc3fa23dd61c6f51ed054cb0f83c
@@ -69,7 +69,7 @@ module Robotstxt
69
69
  # In the case that we can't decode, Ruby's laissez faire attitude to encoding
70
70
  # should mean that we have a reasonable chance of working anyway.
71
71
  def decode_body(response)
72
- return nil if response.body.nil?
72
+ return "" if response.body.blank? || response.body.nil?
73
73
  Robotstxt.ultimate_scrubber(response.body)
74
74
  end
75
75
 
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |gem|
5
5
  gem.name = "robotstxt-parser"
6
- gem.version = "0.1.0"
6
+ gem.version = "0.1.1"
7
7
  gem.authors = ["Garen Torikian"]
8
8
  gem.email = ["gjtorikian@gmail.com"]
9
9
  gem.description = %q{Robotstxt-Parser allows you to the check the accessibility of URLs and get other data. Full support for the robots.txt RFC, wildcards and Sitemap: rules.}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: robotstxt-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian