lib/whirled_peas/config.rb in whirled_peas-0.11.1 vs lib/whirled_peas/config.rb in whirled_peas-0.12.0
- old
+ new
@@ -1,12 +1,9 @@
require 'logger'
module WhirledPeas
class Config
- # Refreshed rate measured in frames per second
- DEFAULT_REFRESH_RATE = 30
-
DEFAULT_LOG_LEVEL = Logger::INFO
DEFAULT_LOG_FILE = 'whirled_peas.log'
# This formatter expects a loggers to send `progname` in each log call. This value
# should be an all uppercase version of the module or class that is invoking the
@@ -33,11 +30,11 @@
msg = %Q(#{msg.class}: #{msg.to_s}\n #{msg.backtrace.join("\n ")})
end
"[#{severity}] #{datetime.strftime('%Y-%m-%dT%H:%M:%S.%L')} (#{progname}) - #{msg}\n"
end
- attr_writer :application, :template_factory, :refresh_rate, :log_level, :log_formatter, :log_file
+ attr_writer :application, :template_factory, :log_level, :log_formatter, :log_file
def application
unless @application
raise ConfigurationError, 'application must be configured'
end
@@ -47,13 +44,9 @@
def template_factory
unless @template_factory
raise ConfigurationError, 'template_factory must be configured'
end
@template_factory
- end
-
- def refresh_rate
- @refresh_rate || DEFAULT_REFRESH_RATE
end
def log_level
@log_level || DEFAULT_LOG_LEVEL
end