.fttemplates/Create RubyGem project structure/Rakefile
# frozen_string_literal: true
require 'bundler/gem_tasks'
task default: [:test]
def name
Jekyll::<Company | pascalcase>::<Project | pascalcase>::RUBYGEM_NAME
end
def version
Jekyll::<Company | pascalcase>::<Project | pascalcase>::VERSION
end
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/*_test.rb'
test.verbose = true
end
require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "#{name} #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end