Sha256: c9d73ad422ab40bf6f31799df5dfa582323cc450a8d421cd4d8d8a5746c1b49b
Contents?: true
Size: 1009 Bytes
Versions: 29
Compression:
Stored size: 1009 Bytes
Contents
# -*- encoding: utf-8 -*- # This code is free software; you can redistribute it and/or modify it under # the terms of the new BSD License. # # Copyright (c) 2011, Sebastian Staudt require 'bundler/gem_tasks' require 'rspec/core/rake_task' require 'rubygems/package_task' task :default => :spec task :test => :spec spec = Gem::Specification.load 'rbzip2.gemspec' Gem::PackageTask.new(spec) do |pkg| end RSpec::Core::RakeTask.new('spec') do |t| end begin require 'yard' YARD::Rake::YardocTask.new do |yardoc| yardoc.name = 'doc' yardoc.files = [ 'lib/**/*.rb', 'LICENSE', 'README.md' ] yardoc.options = [ '--private', '--title', 'RBzip2 — API Documentation' ] end rescue LoadError desc 'Generate YARD Documentation (not available)' task :doc do $stderr.puts 'You need YARD to build the documentation. Install it using `gem install yard`.' end end desc 'Clean documentation and package directories' task :clean do FileUtils.rm_rf 'doc' FileUtils.rm_rf 'pkg' end
Version data entries
29 entries across 29 versions & 2 rubygems