klepto 0.6.5 → 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -60,8 +60,12 @@ EOS
60
60
  @config.status_handler(status).each {|sh| sh.call(status, @browser) }
61
61
  end
62
62
 
63
+ # This is here to debug, having a weird issue with getting a 200 and sometimes
64
+ # returning @browser.failure? => true
65
+ cached_browser_status = @browser.status
66
+
63
67
  # If the page was not a failure or if not aborting, structure that bad boy.
64
- if (@browser.failure? && @config.abort_on_failure?)
68
+ if (cached_browser_status != 200 && @config.abort_on_failure?)
65
69
  @config.after_handlers[:abort].each {|ah| ah.call(@browser) }
66
70
  else
67
71
  @structure = __structure(@browser.page)
@@ -1,3 +1,3 @@
1
1
  module Klepto
2
- VERSION = "0.6.5"
2
+ VERSION = "0.6.6"
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.5
4
+ version: 0.6.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-08 00:00:00.000000000 Z
12
+ date: 2013-07-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: poltergeist