Sha256: 73f8c9f4ba89af87c748738c4ecfc6b781ad13e69beb1ac0c82e3653c01fb503

Contents?: true

Size: 1.38 KB

Versions: 18

Compression:

Stored size: 1.38 KB

Contents

# frozen_string_literal: true

require 'bundler/gem_tasks'
require 'rake/testtask'
require 'yard'
require 'rubocop/rake_task'

Rake::TestTask.new(:test) do |task|
  task.libs.push 'lib'
  task.libs.push 'test'
  task.pattern = 'test/**/*_test.rb'
  task.verbose = false
  task.warning = true if ENV['WARNINGS'].to_i == 1
end

YARD::Rake::YardocTask.new(:yard) do |task|
  task.files = [
    'lib/**/*.rb',
    '-',
    'docs/api.md',
    'docs/borders.md',
    'docs/buffer.md',
    'docs/configuration.md',
    'docs/cursors.md',
    'docs/dsl.md',
    'docs/events.md',
    'docs/geometry.md',
    'docs/getting_started.md',
    'docs/group.md',
    'docs/interfaces.md',
    'docs/keymaps.md',
    'docs/object_graph.md',
    'docs/view.md',
    'docs/events/application.md',
    'docs/events/document.md',
    'docs/events/drb.md',
    'docs/events/focus.md',
    'docs/events/menu.md',
    'docs/events/movement.md',
    'docs/events/refresh.md',
    'docs/events/system.md',
    'docs/events/view.md',
    'docs/events/visibility.md',
  ]
  task.options = ['highlight']
  task.stats_options = ['--list-undoc']
end

RuboCop::RakeTask.new(:rubocop) do |task|
  task.patterns = ['lib/**/*.rb']
  task.formatters = ['simple']
  task.fail_on_error = false
end

tasks_to_run = [:test]
tasks_to_run << :rubocop if ENV['RUBOCOP'].to_i == 1
tasks_to_run << :yard if ENV['YARD'].to_i == 1

task default: tasks_to_run

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
vedeu-0.8.32 Rakefile
vedeu-0.8.31 Rakefile
vedeu-0.8.30 Rakefile
vedeu-0.8.29 Rakefile
vedeu-0.8.28 Rakefile
vedeu-0.8.27 Rakefile
vedeu-0.8.26 Rakefile
vedeu-0.8.25 Rakefile
vedeu-0.8.24 Rakefile
vedeu-0.8.23 Rakefile
vedeu-0.8.22 Rakefile
vedeu-0.8.21 Rakefile
vedeu-0.8.20 Rakefile
vedeu-0.8.19 Rakefile
vedeu-0.8.18 Rakefile
vedeu-0.8.17 Rakefile
vedeu-0.8.16 Rakefile
vedeu-0.8.15 Rakefile