Rakefile in qfill-0.0.4 vs Rakefile in qfill-0.1.0
- old
+ new
@@ -1,23 +1,46 @@
-require "bundler/gem_tasks"
+# frozen_string_literal: true
+
+require 'bundler/gem_tasks'
+
+begin
+ require 'rspec/core/rake_task'
+ RSpec::Core::RakeTask.new(:spec)
+rescue LoadError
+ task :spec do
+ warn 'RSpec is disabled'
+ end
+end
+task test: :spec
+
+begin
+ require 'rubocop/rake_task'
+ RuboCop::RakeTask.new
+rescue LoadError
+ task :rubocop do
+ warn 'RuboCop is disabled'
+ end
+end
+
+task default: [:test]