Rakefile in afurmanov-clicase-0.1.5 vs Rakefile in afurmanov-clicase-0.1.6

- old
+ new

@@ -1,18 +1,29 @@ 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' - Jeweler::Tasks.new do |gemspec| - gemspec.name = "clicase" - gemspec.summary = "Macros for testing Ruby command line apps with Shoulda or Test::Unit." - gemspec.email = "afurmanov@rushpost.com" - gemspec.homepage = "http://github.com/afurmanov/clicase" - gemspec.description = <<END + 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 - gemspec.authors = ["Aleksandr Furmanov"] + 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