require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'

Rake::TestTask.new do |t|
  t.libs << "test"
  t.test_files = FileList['test/shoulda/cli_test.rb', 'test/unit/cli_test.rb']
  t.verbose = true
end

begin
  require 'jeweler'
  gemspec = Gem::Specification.new do |s|

    s.name = "clicase"
    s.summary = "Macros for testing Ruby command line apps with Shoulda or Test::Unit."
    s.email = "afurmanov@rushpost.com"
    s.homepage = "http://github.com/afurmanov/clicase"
    s.description = <<END
CliCase extends TestCase with macros simplifying testing command line apps written in Ruby. These macros allow
to specify command line entry point, run command line and assert execution results. Works with Test::Unit or with Shoulda.
END
    s.authors = ["Aleksandr Furmanov"]
    s.test_files = ['test/shoulda/cli_test.rb', 'test/unit/cli_test.rb']
  end
  Jeweler::Tasks.new gemspec
rescue LoadError
  puts "Jeweler not available. Install it with: sudo gem install jeweler"
end