aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2018-04-19 15:36:23 -0400
committerGitHub <noreply@github.com>2018-04-19 15:36:23 -0400
commitfca08b8167c7e3cca2a2ed62657970f52bbd4c6a (patch)
treed88b406c80983bb8f15546f02ff619b125649b36
parentc2f203dcdb74be163d86c3442b463355e234944d (diff)
parent6aaeb8ef10725ae43247ead117ee25c9e250491a (diff)
downloadrails-fca08b8167c7e3cca2a2ed62657970f52bbd4c6a.tar.gz
rails-fca08b8167c7e3cca2a2ed62657970f52bbd4c6a.tar.bz2
rails-fca08b8167c7e3cca2a2ed62657970f52bbd4c6a.zip
Merge pull request #32636 from yhirano55/improve_line_tasks
Improve redundancy in line tasks
-rw-r--r--actionpack/Rakefile2
-rw-r--r--actionview/Rakefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/Rakefile b/actionpack/Rakefile
index 4dd7c59ce8..e99eb1723a 100644
--- a/actionpack/Rakefile
+++ b/actionpack/Rakefile
@@ -28,7 +28,7 @@ namespace :test do
end
task :lines do
- load File.expand_path("..", __dir__) + "/tools/line_statistics"
+ load File.expand_path("../tools/line_statistics", __dir__)
files = FileList["lib/**/*.rb"]
CodeTools::LineStatistics.new(files).print_loc
end
diff --git a/actionview/Rakefile b/actionview/Rakefile
index 9542b626d1..bdfd96c141 100644
--- a/actionview/Rakefile
+++ b/actionview/Rakefile
@@ -131,7 +131,7 @@ namespace :assets do
end
task :lines do
- load File.join(File.expand_path("..", __dir__), "/tools/line_statistics")
+ load File.expand_path("../tools/line_statistics", __dir__)
files = FileList["lib/**/*.rb"]
CodeTools::LineStatistics.new(files).print_loc
end