radiant_helper 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,6 +19,10 @@ module Radiant
19
19
  get_config_param(:default_cms_layout)
20
20
  end
21
21
 
22
+ def self.radiant_server_time_out
23
+ get_config_param(:radiant_server_time_out)
24
+ end
25
+
22
26
  def self.logger
23
27
  if const_defined?("RAILS_DEFAULT_LOGGER")
24
28
  return RAILS_DEFAULT_LOGGER
@@ -20,7 +20,7 @@ module Radiant
20
20
  end
21
21
  end
22
22
  # pp url
23
- Timeout::timeout(1) do
23
+ Timeout::timeout(Radiant::Helper.radiant_server_time_out) do
24
24
  response = Net::HTTP.get_response(URI.parse(url))
25
25
  return Radiant::Helper::Response.new(url, response.code, response.body)
26
26
  end
@@ -2,4 +2,4 @@
2
2
  gem_name: radiant_helper
3
3
  package: radiant_helper
4
4
  project: magrathea
5
- version: 1.0.5
5
+ version: 1.0.6
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.5
6
+ version: 1.0.6
7
7
  date: 2007-10-17 00:00:00 -04:00
8
8
  summary: radiant_helper
9
9
  require_paths: