Use Typhoeus master instead of 0.6.1
This commit is contained in:
2
Gemfile
2
Gemfile
@@ -1,6 +1,6 @@
|
||||
source "https://rubygems.org"
|
||||
|
||||
gem "typhoeus", "~>0.6.1"
|
||||
gem "typhoeus", :git => "https://github.com/typhoeus/typhoeus.git"
|
||||
gem "nokogiri"
|
||||
gem "json"
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
begin
|
||||
# Standard libs
|
||||
require 'rubygems'
|
||||
require 'bundler/setup'
|
||||
require 'getoptlong'
|
||||
require 'optparse' # Will replace getoptlong
|
||||
require 'uri'
|
||||
@@ -33,6 +34,7 @@ begin
|
||||
require 'rbconfig'
|
||||
require 'pp'
|
||||
# Third party libs
|
||||
#gem 'typhoeus', :git => "https://github.com/typhoeus/typhoeus.git"
|
||||
require 'typhoeus'
|
||||
require 'json'
|
||||
require 'nokogiri'
|
||||
|
||||
@@ -55,7 +55,7 @@ class WpEnumerator
|
||||
targets.each do |target|
|
||||
url = target.get_full_url
|
||||
|
||||
request = enum_browser.forge_request(url, { cache_ttl: 0, followlocation: true })
|
||||
request = enum_browser.forge_request(url, cache_ttl: 0, followlocation: true)
|
||||
request_count += 1
|
||||
|
||||
request.on_complete do |response|
|
||||
|
||||
@@ -20,15 +20,11 @@
|
||||
# https://github.com/bblimke/webmock
|
||||
# https://github.com/colszowka/simplecov
|
||||
|
||||
# Code Coverage (only works with ruby >= 1.9)
|
||||
if RUBY_VERSION >= '1.9'
|
||||
require 'simplecov'
|
||||
end
|
||||
|
||||
require File.expand_path(File.dirname(__FILE__) + '/../lib/common/common_helper')
|
||||
|
||||
#gem 'webmock', '=1.8.11'
|
||||
require 'webmock/rspec'
|
||||
# Code Coverage (only works with ruby >= 1.9)
|
||||
require 'simplecov' if RUBY_VERSION >= '1.9'
|
||||
|
||||
SPEC_DIR = ROOT_DIR + '/spec'
|
||||
SPEC_LIB_DIR = SPEC_DIR + '/lib'
|
||||
|
||||
Reference in New Issue
Block a user