From 3040dfef15f8e9ffcaeea1d3fa9b040053ada9eb Mon Sep 17 00:00:00 2001 From: Fabio Lessa Date: Wed, 8 Jul 2009 23:26:50 +1000 Subject: [PATCH 1/1] Converting ActiveSupport value set in configuration to a simple int when returned by accessor. This should fix a bug where the builder is always reported as being down --- config/configuration.rb | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/config/configuration.rb b/config/configuration.rb index c099925..8d80e9a 100644 --- a/config/configuration.rb +++ b/config/configuration.rb @@ -19,7 +19,7 @@ class Configuration attr_reader :dashboard_url # non-published configuration options (obscure stuff, mostly useful for http://cruisecontrolrb.thoughtworks.com) - attr_accessor :sleep_after_build_loop_error, :default_page, :build_request_checking_interval + attr_accessor :sleep_after_build_loop_error, :default_page def dashboard_url=(value) @dashboard_url = remove_trailing_slash(value) @@ -29,6 +29,10 @@ class Configuration raise "projects directory may no longer be set, projects now live in ~/.cruise/projects by default.\n" + "To configure this, set the CRUISE_DATA_ROOT environment variable" end + + def build_request_checking_interval + @build_request_checking_interval.to_int + end private @@ -38,4 +42,4 @@ class Configuration end -end \ No newline at end of file +end -- 1.6.1.2