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"
|
source "https://rubygems.org"
|
||||||
|
|
||||||
gem "typhoeus", "~>0.6.1"
|
gem "typhoeus", :git => "https://github.com/typhoeus/typhoeus.git"
|
||||||
gem "nokogiri"
|
gem "nokogiri"
|
||||||
gem "json"
|
gem "json"
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
begin
|
begin
|
||||||
# Standard libs
|
# Standard libs
|
||||||
require 'rubygems'
|
require 'rubygems'
|
||||||
|
require 'bundler/setup'
|
||||||
require 'getoptlong'
|
require 'getoptlong'
|
||||||
require 'optparse' # Will replace getoptlong
|
require 'optparse' # Will replace getoptlong
|
||||||
require 'uri'
|
require 'uri'
|
||||||
@@ -33,6 +34,7 @@ begin
|
|||||||
require 'rbconfig'
|
require 'rbconfig'
|
||||||
require 'pp'
|
require 'pp'
|
||||||
# Third party libs
|
# Third party libs
|
||||||
|
#gem 'typhoeus', :git => "https://github.com/typhoeus/typhoeus.git"
|
||||||
require 'typhoeus'
|
require 'typhoeus'
|
||||||
require 'json'
|
require 'json'
|
||||||
require 'nokogiri'
|
require 'nokogiri'
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ class WpEnumerator
|
|||||||
targets.each do |target|
|
targets.each do |target|
|
||||||
url = target.get_full_url
|
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_count += 1
|
||||||
|
|
||||||
request.on_complete do |response|
|
request.on_complete do |response|
|
||||||
|
|||||||
@@ -20,15 +20,11 @@
|
|||||||
# https://github.com/bblimke/webmock
|
# https://github.com/bblimke/webmock
|
||||||
# https://github.com/colszowka/simplecov
|
# 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')
|
require File.expand_path(File.dirname(__FILE__) + '/../lib/common/common_helper')
|
||||||
|
|
||||||
#gem 'webmock', '=1.8.11'
|
|
||||||
require 'webmock/rspec'
|
require 'webmock/rspec'
|
||||||
|
# Code Coverage (only works with ruby >= 1.9)
|
||||||
|
require 'simplecov' if RUBY_VERSION >= '1.9'
|
||||||
|
|
||||||
SPEC_DIR = ROOT_DIR + '/spec'
|
SPEC_DIR = ROOT_DIR + '/spec'
|
||||||
SPEC_LIB_DIR = SPEC_DIR + '/lib'
|
SPEC_LIB_DIR = SPEC_DIR + '/lib'
|
||||||
|
|||||||
Reference in New Issue
Block a user