Sha256: 3293855114dded6a4c8d7e506e207b6878c13c2964ad07718888c5cb7a655795

Contents?: true

Size: 532 Bytes

Versions: 12

Compression:

Stored size: 532 Bytes

Contents

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'

RSpec::Core::RakeTask.new(:specs)

task default: %i[rubocop specs]

task :spec do
  Rake::Task['specs'].invoke
  Rake::Task['rubocop'].invoke
  Rake::Task['spec_docs'].invoke
end

desc 'Run RuboCop on the lib/specs directory'
RuboCop::RakeTask.new(:rubocop) do |task|
  task.patterns = ['lib/**/*.rb', 'spec/**/*.rb']
end

desc 'Ensure that the plugin passes `danger plugins lint`'
task :spec_docs do
  sh 'bundle exec danger plugins lint'
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
danger-changelog-0.7.1 Rakefile
danger-changelog-0.7.0 Rakefile
danger-changelog-0.6.1 Rakefile
danger-toc-0.2.0 Rakefile
danger-changelog-0.6.0 Rakefile
danger-changelog-0.5.0 Rakefile
danger-changelog-0.4.2 Rakefile
danger-changelog-0.4.1 Rakefile
danger-changelog-0.4.0 Rakefile
danger-toc-0.1.3 Rakefile
danger-changelog-0.3.0 Rakefile
danger-toc-0.1.0 Rakefile