Sha256: a6a7e41a07125b24cd257737498024c9d48284c56a5a778bb58ce95402ff9655

Contents?: true

Size: 1.16 KB

Versions: 2

Compression:

Stored size: 1.16 KB

Contents

require 'rake'
require 'rake/rdoctask'

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gemspec|
    gemspec.name = "structured_warnings"
    gemspec.summary = "Provides structured warnings for Ruby, using an exception-like interface and hierarchy."
    gemspec.description = "This is an implementation of Daniel Berger's proposal of structured warnings for Ruby."
    gemspec.email = "ruby@schmidtwisser.de"
    gemspec.homepage = "http://github.com/schmidt/structured_warnings"
    gemspec.authors = ["Gregor Schmidt"]

    gemspec.add_development_dependency('rake')
    gemspec.add_development_dependency('jeweler', '>= 1.4.0')
  end

  Jeweler::GemcutterTasks.new
rescue LoadError
  puts "Jeweler not available. Install it with: sudo gem install jeweler"
end

desc "Run all tests"
task :test do 
  require 'rake/runtest'
  Rake.run_tests 'test/**/*_test.rb'
end

desc 'Generate documentation for the structured_warnings gem.'
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

task :default => :test

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
structured_warnings-0.1.3 Rakefile
structured_warnings-0.1.2 Rakefile