3 $:.unshift(File.dirname(__FILE__) + "/lib")
6 Hoe.new('Gruff', Gruff::VERSION) do |p|
8 p.author = "Geoffrey Grosenbach"
9 p.description = "Beautiful graphs for one or multiple datasets. Can be used on websites or in documents."
10 p.email = 'boss@topfunky.com'
11 p.summary = "Beautiful graphs for one or multiple datasets."
12 p.url = "http://nubyonrails.com/pages/gruff"
13 p.clean_globs = ['test/output/*.png']
16 desc "Simple test on packaged files to make sure they are all there"
17 task :verify => :package do
18 # An error message will be displayed if files are missing
19 if system %(ruby -e "require 'pkg/gruff-#{Gruff::VERSION}/lib/gruff'")
20 puts "\nThe library files are present"
25 # Catch unmatched tasks and run them as a unit test.
27 # Makes it possible to do
31 # To run the +test/test_pie+ file.
34 system "ruby test/test_#{t.name}.rb"