radiant_helper 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/radiant_helper_page.rb +5 -2
- data/lib/tasks/rubyforge_config.yml +1 -1
- metadata +6 -1
data/lib/radiant_helper_page.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'timeout'
|
1
2
|
module Radiant
|
2
3
|
module Helper
|
3
4
|
|
@@ -19,8 +20,10 @@ module Radiant
|
|
19
20
|
end
|
20
21
|
end
|
21
22
|
# pp url
|
22
|
-
|
23
|
-
|
23
|
+
Timeout::timeout(1) do
|
24
|
+
response = Net::HTTP.get_response(URI.parse(url))
|
25
|
+
return Radiant::Helper::Response.new(url, response.code, response.body)
|
26
|
+
end
|
24
27
|
rescue Radiant::Helper::InvalidConfigurationError => e
|
25
28
|
raise e
|
26
29
|
rescue Exception => e
|
metadata
CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: radiant_helper
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.0.
|
6
|
+
version: 1.0.4
|
7
7
|
date: 2007-10-16 00:00:00 -04:00
|
8
8
|
summary: radiant_helper
|
9
9
|
require_paths:
|
@@ -21,6 +21,11 @@ autorequire:
|
|
21
21
|
- radiant_helper_page
|
22
22
|
- radiant_helper_errors
|
23
23
|
- radiant_helper
|
24
|
+
- radiant_helper_text_helper
|
25
|
+
- radiant_helper_response
|
26
|
+
- radiant_helper_page
|
27
|
+
- radiant_helper_errors
|
28
|
+
- radiant_helper
|
24
29
|
default_executable:
|
25
30
|
bindir: bin
|
26
31
|
has_rdoc: false
|