Sha256: 0f583e667341ae958abd182de0945c764f36a48e32252579a2cda05f5f73ac5e

Contents?: true

Size: 915 Bytes

Versions: 8

Compression:

Stored size: 915 Bytes

Contents

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

RSpec::Core::RakeTask.new :rspec do |task|
  task.verbose = false
end

RuboCop::RakeTask.new :rubocop do |task|
  task.verbose = false
end

task :generate_integration_docs do
  system './bin/generate_integration_docs'
  exit $?.exitstatus
end

RspecApiDocs::RakeTask.new do |task|
  task.verbose = false
  task.rspec_opts = [
    '--require ./spec/integration/json_helper.rb',
    '--format progress',
  ]
  task.pattern = 'spec/integration/rspec_api_docs_spec.rb'
  task.existing_file = 'spec/integration/output/json/index.json'
  task.verify = true
end

RspecApiDocs::RakeTask.new do |task|
  task.verbose = false
  task.rspec_opts = [
    '--format progress',
  ]
  task.pattern = 'spec/integration/rspec_api_docs_spec.rb'
end

task default: [:rspec, :rubocop, :generate_integration_docs]

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rspec-api-docs-1.1.0 Rakefile
rspec-api-docs-1.0.0 Rakefile
rspec-api-docs-0.14.0 Rakefile
rspec-api-docs-0.13.0 Rakefile
rspec-api-docs-0.12.0 Rakefile
rspec-api-docs-0.11.0 Rakefile
rspec-api-docs-0.10.0 Rakefile
rspec-api-docs-0.9.0 Rakefile