mad_mimi_two 0.6.9 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mad_mimi_two/mad_mimi_mailer.rb +2 -1
- metadata +3 -3
@@ -2,6 +2,7 @@ require 'cgi'
|
|
2
2
|
require 'rubygems'
|
3
3
|
gem 'httpclient'
|
4
4
|
require 'httpclient'
|
5
|
+
require 'httpclient/timeout'
|
5
6
|
gem 'nokogiri'
|
6
7
|
require 'nokogiri'
|
7
8
|
class Hash
|
@@ -24,7 +25,7 @@ module MadMimiTwo
|
|
24
25
|
def send_cmd(url)
|
25
26
|
begin
|
26
27
|
client= HTTPClient.new
|
27
|
-
client.
|
28
|
+
client.receive_timeout(60)
|
28
29
|
res=client.get_content(url)
|
29
30
|
rescue HTTPClient::BadResponseError
|
30
31
|
res="problem retrieving status: #{res.inspect}"
|