Sha256: 2319f8565f5e090304ba6d951a4fcf8787d7098f075a1b291e913e3416c294c1

Contents?: true

Size: 1.72 KB

Versions: 2

Compression:

Stored size: 1.72 KB

Contents

# gravaty
# Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019  Marco Bresciani
#
# 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 <http://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.to_s
  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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gravaty-9.0.1 Rakefile
gravaty-9.0.0 Rakefile