lib/load_files.rb in metric_fu-2.1.3.5 vs lib/load_files.rb in metric_fu-2.1.3.6
- old
+ new
@@ -1,20 +1,19 @@
# require these first because others depend on them
MetricFu.reporting_require { 'report' }
MetricFu.metrics_require { 'generator' }
MetricFu.metrics_require { 'graph' }
MetricFu.reporting_require { 'graphs/grapher' }
-MetricFu.lib_require { 'scoring_strategies' }
+MetricFu.metrics_require { 'hotspots/analysis/scoring_strategies' }
+# Now load everything else that's in the directory
+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
-
-# Now load everything else that's in the directory
-Dir.glob(File.join(MetricFu.lib_dir, '*.rb')).each do |file|
- require file
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|