Rakefile in cobench-0.0.30 vs Rakefile in cobench-0.0.31
- old
+ new
@@ -29,11 +29,11 @@
def version
Gem::Specification.load(Dir['*.gemspec'].first).version
end
-task default: %i[clean test features rubocop copyright]
+task default: %i[clean test features rubocop xcop copyright]
require 'rake/testtask'
desc 'Run all unit tests'
Rake::TestTask.new(:test) do |test|
Rake::Cleaner.cleanup_files(['coverage'])
@@ -55,9 +55,16 @@
desc 'Run RuboCop on all directories'
RuboCop::RakeTask.new(:rubocop) do |task|
task.fail_on_error = true
task.requires << 'rubocop-rspec'
task.options = ['--display-cop-names']
+end
+
+require 'xcop/rake_task'
+Xcop::RakeTask.new(:xcop) do |task|
+ task.license = 'LICENSE.txt'
+ task.includes = ['**/*.xml', '**/*.xsl', '**/*.xsd', '**/*.html']
+ task.excludes = ['cobench/**', 'coverage/**']
end
require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:features) do
Rake::Cleaner.cleanup_files(['coverage'])