p8-metric_fu 0.8.4.6 → 0.8.4.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/tasks/flog.rake +3 -3
- metadata +1 -1
data/lib/tasks/flog.rake
CHANGED
@@ -2,9 +2,9 @@ begin
|
|
2
2
|
|
3
3
|
def flog(output, directory)
|
4
4
|
Dir.glob("#{directory}/**/*.rb").each do |filename|
|
5
|
-
output_dir = "#{FLOG_DIR}/#{filename.split("/")[0..-2].join("/")}"
|
5
|
+
output_dir = "#{MetricFu::FLOG_DIR}/#{filename.split("/")[0..-2].join("/")}"
|
6
6
|
mkdir_p(output_dir, :verbose => false) unless File.directory?(output_dir)
|
7
|
-
puts `flog #{filename} > #{FLOG_DIR}/#{filename.split('.')[0]}.txt` if MetricFu::MD5Tracker.file_changed?(filename, FLOG_DIR)
|
7
|
+
puts `flog #{filename} > #{MetricFu::FLOG_DIR}/#{filename.split('.')[0]}.txt` if MetricFu::MD5Tracker.file_changed?(filename, MetricFu::FLOG_DIR)
|
8
8
|
end
|
9
9
|
end
|
10
10
|
|
@@ -15,7 +15,7 @@ begin
|
|
15
15
|
|
16
16
|
namespace :flog do
|
17
17
|
desc "Delete aggregate flog data."
|
18
|
-
task(:clean) { rm_rf(FLOG_DIR, :verbose => false) }
|
18
|
+
task(:clean) { rm_rf(MetricFu::FLOG_DIR, :verbose => false) }
|
19
19
|
|
20
20
|
desc "Flog code in app/models"
|
21
21
|
task :models do
|