capybara-typhoeus 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capybara/typhoeus/browser.rb +2 -10
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa2ce155490ae89049cd4968940057c04dcc3c81
|
4
|
+
data.tar.gz: f2124277bd493dc896806a69ca244b16eec74e2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef1232530347496677f8d8b49d18bc07594c491aee3082c9d5bd620b6d3400be5c77da31ad0a535da757bdab83d249cf62e45463924e0fdf8f1f6aa3300d498a
|
7
|
+
data.tar.gz: 3bdc295d0084bf574a4dfae1971a7e7d7f38395d12b9bb2d80aa7bf36c868216301d97ff1d02893731bb2769211b5480d4cb2f5f5d8cc96ba930a14118ebaf04
|
@@ -13,12 +13,7 @@ end
|
|
13
13
|
class Capybara::Typhoeus::Browser < Capybara::RackTest::Browser
|
14
14
|
|
15
15
|
attr_accessor :request_body
|
16
|
-
attr_reader :last_response
|
17
|
-
|
18
|
-
def initialize(driver)
|
19
|
-
@client = Typhoeus::Hydra.new
|
20
|
-
super
|
21
|
-
end
|
16
|
+
attr_reader :last_response
|
22
17
|
|
23
18
|
def reset_cache!
|
24
19
|
@xml = nil
|
@@ -81,10 +76,7 @@ class Capybara::Typhoeus::Browser < Capybara::RackTest::Browser
|
|
81
76
|
opts[:body] = request_body
|
82
77
|
@request_body = nil
|
83
78
|
end
|
84
|
-
|
85
|
-
client.queue request
|
86
|
-
client.run
|
87
|
-
@last_response = request.response
|
79
|
+
@last_response = Typhoeus::Request.send method, uri.to_s, opts
|
88
80
|
if last_response.timed_out?
|
89
81
|
$stderr.puts "#{method.to_s.upcase} #{uri.to_s}: time out" if $DEBUG
|
90
82
|
elsif last_response.code==0
|