Sha256: e50041b0080b0abe1ab72371bae8f2db9e1d3f9ee00dcac0debff2e3abcc570a

Contents?: true

Size: 1.32 KB

Versions: 22

Compression:

Stored size: 1.32 KB

Contents

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']
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']
tasks_to_run << :yard if ENV['YARD']

task default: tasks_to_run

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
vedeu-0.6.54 Rakefile
vedeu-0.6.53 Rakefile
vedeu-0.6.52 Rakefile
vedeu-0.6.51 Rakefile
vedeu-0.6.50 Rakefile
vedeu-0.6.49 Rakefile
vedeu-0.6.48 Rakefile
vedeu-0.6.47 Rakefile
vedeu-0.6.46 Rakefile
vedeu-0.6.45 Rakefile
vedeu-0.6.44 Rakefile
vedeu-0.6.43 Rakefile
vedeu-0.6.42 Rakefile
vedeu-0.6.41 Rakefile
vedeu-0.6.40 Rakefile
vedeu-0.6.39 Rakefile
vedeu-0.6.38 Rakefile
vedeu-0.6.37 Rakefile
vedeu-0.6.36 Rakefile
vedeu-0.6.35 Rakefile