Sha256: 541d7b7d2b20ac0117b5ea226ca25a02a12c6bc52782c3065d9d55c2dc6a0340
Contents?: true
Size: 844 Bytes
Versions: 2
Compression:
Stored size: 844 Bytes
Contents
require 'rubygems' require 'bundler' Bundler.setup require 'rake' require 'yard' require 'rspec/core/rake_task' require 'cucumber/rake/task' require 'rubocop/rake_task' Bundler::GemHelper.install_tasks RSpec::Core::RakeTask.new(:spec) { |_spec| } Cucumber::Rake::Task.new(:cucumber, 'Run all cucumber features') do |t| t.fork = false end RuboCop::RakeTask.new YARD::Rake::YardocTask.new { |_t| } namespace :yard do desc 'Validate yard coverage' task :validate do log = StringIO.new YARD::Logger.instance(log) doc = YARD::CLI::Yardoc.new doc.use_document_file = false doc.use_yardopts_file = false doc.generate = false doc.run('--list-undoc') output = log.string puts output exit(1) unless output.include?('100.00% documented') end end task default: %i[rubocop yard:validate spec cucumber]
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
howitzer-2.1.1 | Rakefile |
howitzer-2.1.0 | Rakefile |