Sha256: 65f61070003fc686ecceaf9bdd481b9de7de177c6b714dccc4a8bfa7afb87110
Contents?: true
Size: 1.17 KB
Versions: 2
Compression:
Stored size: 1.17 KB
Contents
require 'rake' require 'rake/clean' require 'rake/testtask' CLEAN.include('**/*.gem', '**/*.rbx', '**/*.rbc') namespace :gem do desc "Create the structured_warnings gem" task :create => [:clean] do spec = eval(IO.read('structured_warnings.gemspec')) Gem::Builder.new(spec).build end desc "Install the structured_warnings gem" task :install => [:create] do file = Dir['*.gem'].first sh "gem install #{file}" end end Rake::TestTask.new do |t| t.verbose = true t.warning = true t.test_files = Dir['test/*.rb'] end task :default => :test begin require 'rdoc/task' Rake::RDocTask.new(:doc) do |doc| doc.rdoc_dir = 'doc' doc.title = 'structured_warnings' doc.options << '--line-numbers' << '--inline-source' doc.rdoc_files.include('README.rdoc') doc.rdoc_files.include('lib/**/*.rb') end rescue LoadError desc 'Remove RDoc HTML files' task :clobber_doc => :rdoc_warning desc 'Build RDoc HTML files' task :doc => :rdoc_warning desc 'Rebuild RDoc HTML files' task :redoc => :rdoc_warning task :rdoc_warning do puts "To run the rdoc task, you need to install the rdoc gem" puts " gem install rdoc" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
structured_warnings-0.2.0 | Rakefile |
structured_warnings-0.1.4 | Rakefile |