capybara-typhoeus 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: edb8884b4c542041879eeda795a83633bbc167f3
4
- data.tar.gz: 43d6478d4c8376549bc606c21e2c6d7880e89be2
3
+ metadata.gz: fa2ce155490ae89049cd4968940057c04dcc3c81
4
+ data.tar.gz: f2124277bd493dc896806a69ca244b16eec74e2c
5
5
  SHA512:
6
- metadata.gz: 8f1bcf2f21aa51973fc86516d719c5c643435a0898e7efe2ca105c93c417f5d2f6012a6d0745386b742c7e147f5e57b1d0dbd0a276c0c3f02d8ce06dd3c8a0a2
7
- data.tar.gz: fa128e1af2746c0ff908f16d5d5e564b24c003d9d25a428b0c21648b199b3dd644d5ec6b27c5b650270e21d9375ac7d0a3c20ae434fba81172a0c4e684d82342
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, :client
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
- request = Typhoeus::Request.new uri.to_s, opts
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-typhoeus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph HALTER