Use Typhoeus master instead of 0.6.1

This commit is contained in:
erwanlr
2013-02-21 11:49:36 +01:00
parent 8b9aec468a
commit 88e33c5b4e
4 changed files with 6 additions and 8 deletions

View File

@@ -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"

View File

@@ -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'

View File

@@ -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|

View File

@@ -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'