Sha256: d463c504b23dc4a0abb8ddeff465ee75000957f26d9ff7b9803c34222b54ba69

Contents?: true

Size: 737 Bytes

Versions: 2

Compression:

Stored size: 737 Bytes

Contents

#!/usr/bin/env rake
require "bundler/gem_tasks"
require "rdoc/task"
require "rubocop/rake_task"
require "rspec/core/rake_task"

RuboCop::RakeTask.new

namespace :spec do
  desc 'Clean all generated reports'
  task :clean do
    system('rm -rf spec/reports')
  end

  RSpec::Core::RakeTask.new(all: :clean) do |config|
    options  = %w(--color)
    options += %w(--format documentation)
    options += %w(--format html --out spec/reports/unit-test-report.html)

    config.rspec_opts = options
  end
end

Rake::RDocTask.new do |rdoc|
  rdoc.rdoc_dir = 'doc'
  rdoc.main = 'README.md'
  rdoc.title = "DataAccessible #{DataAccessible::VERSION}"
  rdoc.rdoc_files.include('README*', 'lib/**/*.rb')
end

task default: ['spec:all', :rubocop]

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
data_accessible-1.0.2 Rakefile
data_accessible-1.0.1 Rakefile