Sha256: c7a4dc988642a750f792e67afe4f7ba2830a39e2498953fa7680800dbbd0daca

Contents?: true

Size: 1.17 KB

Versions: 23

Compression:

Stored size: 1.17 KB

Contents

require 'rake'
require 'yaml'
# Load a few things to make our lives easier elsewhere.
module MetricFu
  LIB_ROOT = File.dirname(__FILE__)
end
base_dir = File.join(MetricFu::LIB_ROOT, 'base')
generator_dir = File.join(MetricFu::LIB_ROOT, 'generators')
template_dir  = File.join(MetricFu::LIB_ROOT, 'templates')
graph_dir     = File.join(MetricFu::LIB_ROOT, 'graphs')

# We need to require these two things first because our other classes
# depend on them.
require File.join(base_dir, 'report') 
require File.join(base_dir, 'generator')
require File.join(base_dir, 'graph')

# prevent the task from being run multiple times.
unless Rake::Task.task_defined? "metrics:all"
  # Load the rakefile so users of the gem get the default metric_fu task
  load File.join(MetricFu::LIB_ROOT, '..', 'tasks', 'metric_fu.rake')
end

# Now load everything else that's in the directory
Dir[File.join(base_dir, '*.rb')].each{|l| require l }
Dir[File.join(generator_dir, '*.rb')].each {|l| require l }
Dir[File.join(template_dir, 'standard/*.rb')].each {|l| require l}
Dir[File.join(template_dir, 'awesome/*.rb')].each {|l| require l}
require graph_dir + "/grapher"
Dir[File.join(graph_dir, '*.rb')].each {|l| require l}

Version data entries

23 entries across 23 versions & 10 rubygems

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