Sha256: f40523b12650d4ae14310cec986e0723c76bb2c5fea7ba544e5a65443615d0da

Contents?: true

Size: 667 Bytes

Versions: 25

Compression:

Stored size: 667 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' (or 'umang-gruff' if you use 1.9x) 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

25 entries across 25 versions & 11 rubygems

Version Path
IPGlider-metric_fu-1.1.5.1.1 lib/graphs/grapher.rb
IPGlider-metric_fu-1.1.5.1 lib/graphs/grapher.rb
gforces-metric_fu-1.1.4 lib/graphs/grapher.rb
iain-metric_fu-0.1.0 lib/graphs/grapher.rb
iain-metric_fu-0.1.1 lib/graphs/grapher.rb
iain-metric_fu-0.1.2 lib/graphs/grapher.rb
jscruggs-metric_fu-1.1.3 lib/graphs/grapher.rb
jscruggs-metric_fu-1.1.4 lib/graphs/grapher.rb
jscruggs-metric_fu-1.1.5 lib/graphs/grapher.rb
kjeldahl-metric_fu-1.1.5.1 lib/graphs/grapher.rb
kjeldahl-metric_fu-1.1.5.2 lib/graphs/grapher.rb
kjeldahl-metric_fu-1.1.5.3 lib/graphs/grapher.rb
kjeldahl-metric_fu-1.1.5.4 lib/graphs/grapher.rb
kjeldahl-metric_fu-1.1.5 lib/graphs/grapher.rb
mattvanhorn-metric_fu-1.1.5.1 lib/graphs/grapher.rb
mattvanhorn-metric_fu-1.1.5.2 lib/graphs/grapher.rb
mtdewboy-metric_fu-1.1.5.1 lib/graphs/grapher.rb
mwilden-metric_fu-1.1.3 lib/graphs/grapher.rb
mwilden-metric_fu-1.1.5 lib/graphs/grapher.rb
pjstadig-metric_fu-1.1.4.2 lib/graphs/grapher.rb