Sha256: 72efcd6cbab6ff067bb88ff9c55b7fc4077b42ad5a6c585a58d4dd76d0a533d6

Contents?: true

Size: 630 Bytes

Versions: 1

Compression:

Stored size: 630 Bytes

Contents

module MetricFu
  class Grapher
    def initialize
      self.class.require_gruff
    end
    
    def self.require_gruff
      require 'gruff'
    rescue LoadError
      puts "#"*99 + "\n" +
           "If you want to use metric_fu's graphing features then you'll need to install the gems 'topfunky-gruff' and 'rmagick' "+
           "(and rmagick requires ImageMagick).  "+
           "If you don't want to deal with that, then make sure you set config.graphs = [] (see the metric_fu's homepage for more details) "+
           "to indicate that you don't want graphing." +
           "\n" + "#"*99 
      raise
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jscruggs-metric_fu-1.1.2 lib/graphs/grapher.rb