# frozen_string_literal: true
#– # gravaty # rubocop:disable Style/AsciiComments # © 2013 Marco Bresciani # rubocop:enable Style/AsciiComments # # This file is part of gravaty. # # gravaty is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation, either version 3 of the License, or (at your # option) any later version. # # gravaty is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # for more details. # # You should have received a copy of the GNU General Public License # along with gravaty. If not, see <www.gnu.org/licenses/>. #++
require 'rake' require 'rake/clean' require 'rake/testtask' require 'rdoc/task' require 'rubygems/package_task'
gravaty = Gem::Specification.load 'gravaty.gemspec'
desc “Build the gem (Task 'rake package')” Rake::PackageTask.new gravaty do |package|
package.name = gravaty.name package.need_tar = true package.need_tar_bz2 = true package.need_tar_gz = true package.need_zip = true package.package_files = gravaty.files package.version = gravaty.version
end
desc “Build the RDoc gem documentation (task 'rake rdoc')” Rake::RDocTask.new do |rdoc|
rdoc.rdoc_files.add gravaty.files rdoc.title = "#{gravaty.name} #{gravaty.version}" rdoc.main = 'README.md' rdoc.options += %w[-e UTF-8 --hyperlink-all --line-numbers]
end
desc “Run the gem unit tests (task 'rake test')” Rake::TestTask.new do |test_task|
test_task.libs << 'test' test_task.test_files = FileList['test/**/test_*.rb'] test_task.verbose = true test_task.warning = true
end