Sha256: 4ab0fe0ff3f1cc554b3f599852f353d1c7e3fd41c15ca48d46079b2937ae6312

Contents?: true

Size: 1.08 KB

Versions: 5

Compression:

Stored size: 1.08 KB

Contents

# require these first because others depend on them
MetricFu.reporting_require { 'report' }
MetricFu.metrics_require   { 'hotspots/hotspot' }
MetricFu.metrics_require   { 'generator' }
MetricFu.metrics_require   { 'graph' }
MetricFu.reporting_require { 'graphs/grapher' }
MetricFu.metrics_require   { 'hotspots/analysis/scoring_strategies' }

Dir.glob(File.join(MetricFu.lib_dir, '*.rb')).each do |file|
  require file
end
# 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
  MetricFu.tasks_load 'metric_fu.rake'
end
Dir.glob(File.join(MetricFu.data_structures_dir, '**/*.rb')).each do |file|
  require file
end
Dir.glob(File.join(MetricFu.logging_dir, '**/*.rb')).each do |file|
  require file
end
Dir.glob(File.join(MetricFu.errors_dir, '**/*.rb')).each do |file|
  require file
end
Dir.glob(File.join(MetricFu.metrics_dir, '**/*.rb')).each do |file|
  require(file) unless file =~ /init.rb/
end
Dir.glob(File.join(MetricFu.reporting_dir, '**/*.rb')).each do |file|
  require file
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
metric_fu-4.2.1 lib/metric_fu/load_files.rb
metric_fu-4.2.0 lib/metric_fu/load_files.rb
metric_fu-4.1.3 lib/metric_fu/load_files.rb
metric_fu-4.1.2 lib/metric_fu/load_files.rb
metric_fu-4.1.1 lib/metric_fu/load_files.rb