Sha256: 84c947d0ca9d610e1433fd753de8b27178204a259e218fbefe694fe3ac30d563

Contents?: true

Size: 666 Bytes

Versions: 4

Compression:

Stored size: 666 Bytes

Contents

require "bundler/gem_tasks"

require "yard"
require "yard-tomdoc"
require "cane/rake_task"
require "rspec/core/rake_task"

desc "Ready check"
task default: [:quality, :coverage, :doc]

RSpec::Core::RakeTask.new(:coverage) do |rspec|
  ENV["COVERAGE"] = "true"
end

Cane::RakeTask.new(:quality) do |cane|
  cane.abc_max = 15
  cane.abc_glob = cane.style_glob = cane.doc_glob = "{lib}/abak-flow/*.rb"
  cane.style_exclude = %w({lib}/abak-flow/request.rb)
  cane.style_measure = 120
  cane.parallel = false
end

YARD::Rake::YardocTask.new(:doc) do |yard|
  yard.files   = %w({apps,models,lib}/**/*.rb)
  yard.options = %w(--embed-mixins --protected --plugin tomdoc)
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
abak-flow-1.0.3 Rakefile
abak-flow-1.0.2 Rakefile
abak-flow-1.0.1 Rakefile
abak-flow-1.0.0 Rakefile