Back to the previous version of Typhoeus & Ethon to avoid seg fault in rspec
This commit is contained in:
3
Gemfile
3
Gemfile
@@ -1,6 +1,7 @@
|
|||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
|
|
||||||
gem "typhoeus", ">=0.6.3"
|
gem "typhoeus", "=0.6.2"
|
||||||
|
gem "ethon", "=0.5.10"
|
||||||
gem "nokogiri"
|
gem "nokogiri"
|
||||||
gem "json"
|
gem "json"
|
||||||
|
|
||||||
|
|||||||
@@ -47,6 +47,20 @@ module Typhoeus
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
module Ethon
|
||||||
|
class Easy
|
||||||
|
module Options
|
||||||
|
def cookiejar=(value)
|
||||||
|
Curl.set_option(:cookiejar, value_for(value, :string), handle)
|
||||||
|
end
|
||||||
|
|
||||||
|
def cookiefile=(value)
|
||||||
|
Curl.set_option(:cookiefile, value_for(value, :string), handle)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Override for puts to enable logging
|
# Override for puts to enable logging
|
||||||
def puts(o = '')
|
def puts(o = '')
|
||||||
# remove color for logging
|
# remove color for logging
|
||||||
|
|||||||
Reference in New Issue
Block a user