Sha256: 29f80dfd8ff393d3e8a1a53a1e3d700a2c9232918459edd1955702c12f1afe0b

Contents?: true

Size: 930 Bytes

Versions: 2

Compression:

Stored size: 930 Bytes

Contents

# frozen_string_literal: true

require "bundler/gem_tasks"
require "rake/testtask"
require "rdoc/task"

# Test task configuration
Rake::TestTask.new(:test) do |t|
  t.libs << "test"
  t.libs << "lib"
  t.test_files = FileList["test/**/*_test.rb"]
end

# RDoc task configuration
RDoc::Task.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'doc'
  rdoc.title    = 'CalInvite Documentation'
  rdoc.main     = 'README.md'

  # Configure RDoc options
  rdoc.options << '--line-numbers'
  rdoc.options << '--charset' << 'UTF-8'
  rdoc.options << '--markup' << 'markdown'
  rdoc.options << '--all'
  rdoc.options << '--exclude' << '^(test|spec|features)/'

  # Include files to document
  rdoc.rdoc_files.include('README.md', 'LICENSE.txt', 'lib/**/*.rb')
  rdoc.rdoc_files.exclude('lib/cal_invite/version.rb')
end

# Define a task to clean documentation
task 'rdoc:clean' do
  rm_rf 'doc'
end

# Keep test as the default task
task default: :test

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cal-invite-0.1.5 Rakefile
cal-invite-0.1.4 Rakefile