Added the Gruff library to the lib/ directory of the the rails folder, and the
[selectricity] / lib / gruff-0.2.8 / Rakefile
1 require 'rubygems'
2 require 'hoe'
3 $:.unshift(File.dirname(__FILE__) + "/lib")
4 require 'gruff'
5
6 Hoe.new('Gruff', Gruff::VERSION) do |p|
7   p.name = "gruff"
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']
14 end
15
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"
21   end
22 end
23
24 ##
25 # Catch unmatched tasks and run them as a unit test.
26 #
27 # Makes it possible to do
28 #  
29 #  rake pie
30 #
31 # To run the +test/test_pie+ file.
32
33 rule '' do |t|
34   system "ruby test/test_#{t.name}.rb"
35 end

Benjamin Mako Hill || Want to submit a patch?