Rakefile in quality-1.3.0 vs Rakefile in quality-1.3.1
- old
+ new
@@ -1,34 +1,34 @@
require 'rake/clean'
-require "bundler/gem_tasks"
+require 'bundler/gem_tasks'
require 'quality/rake/task'
-$:.unshift File.dirname(__FILE__) + '/lib'
+$LOAD_PATH.unshift File.dirname(__FILE__) + '/lib'
PROJECT_NAME = 'quality'
-BUILD_DIR = 'build'; directory BUILD_DIR
-PKG_DIR = "#{BUILD_DIR}/pkg"; directory PKG_DIR
+BUILD_DIR = 'build'
+directory BUILD_DIR
-GEM_MANIFEST = "Manifest.txt"
+PKG_DIR = "#{BUILD_DIR}/pkg"
+directory PKG_DIR
+
+GEM_MANIFEST = 'Manifest.txt'
VERSION_FILE = 'lib/quality.rb'
CLOBBER.include("#{BUILD_DIR}/*")
Dir['tasks/**/*.rake'].each { |t| load t }
Quality::Rake::Task.new do |t|
t.skip_tools = ['reek']
end
-task :clear_metrics do |t|
+task :clear_metrics do |_t|
puts Time.now
- ret =
- system("git checkout coverage/.last_run.json *_high_water_mark")
- if !ret
- fail
- end
+ ret = system('git checkout coverage/.last_run.json *_high_water_mark')
+ fail unless ret
end
-task :localtest => [:clear_metrics, :test, :quality]
+task localtest: [:clear_metrics, :test, :quality]
-task :default => [:localtest]
+task default: [:localtest]