lib/base/configuration.rb in metric_fu-1.1.6 vs lib/base/configuration.rb in metric_fu-1.2.0

- old
+ new

@@ -7,10 +7,11 @@ # be installed on the system. AVAILABLE_METRICS = [:churn, :flog, :flay, :reek, :roodi, :saikuro, :rcov] AVAILABLE_GRAPHS = [:flog, :flay, :reek, :roodi, :rcov] + AVAILABLE_GRAPH_ENGINES = [:gchart, :bluff] # The @@configuration class variable holds a global type configuration # object for any parts of the system to use. def self.configuration @@configuration ||= Configuration.new @@ -131,21 +132,10 @@ "--rails", "--exclude /gems/,/Library/,/usr/,spec"]} @file_globs_to_ignore = [] - @graph_theme = { :colors => %w(orange purple green white red blue pink yellow), - :marker_color => 'blue', - :background_colors => %w(white white)} - - relative_font_path = [File.dirname(__FILE__), '..', '..', 'vendor', '_fonts', 'monaco.ttf'] - @graph_font = File.expand_path(File.join(relative_font_path)) - @graph_size = "1000x400" - @graph_title_font_size = 12 - @graph_legend_box_size = 12 - @graph_legend_font_size = 10 - @graph_marker_font_size = 10 - + @graph_engine = :bluff # can be :bluff or :gchart end # Perform a simple check to try and guess if we're running # against a rails app. #