klepto 0.6.6 → 0.6.7

Sign up to get free protection for your applications and to get access to all the features.
data/lib/klepto/bot.rb CHANGED
@@ -62,10 +62,10 @@ EOS
62
62
 
63
63
  # This is here to debug, having a weird issue with getting a 200 and sometimes
64
64
  # returning @browser.failure? => true
65
- cached_browser_status = @browser.status
65
+ sleep 1
66
66
 
67
67
  # If the page was not a failure or if not aborting, structure that bad boy.
68
- if (cached_browser_status != 200 && @config.abort_on_failure?)
68
+ if (@browser.failure? && @config.abort_on_failure?)
69
69
  @config.after_handlers[:abort].each {|ah| ah.call(@browser) }
70
70
  else
71
71
  @structure = __structure(@browser.page)
@@ -1,3 +1,3 @@
1
1
  module Klepto
2
- VERSION = "0.6.6"
2
+ VERSION = "0.6.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: klepto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.6
4
+ version: 0.6.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: