public
Rubygem
Description: Sparkline library for Ruby
Homepage: http://sparklines.rubyforge.org
Clone URL: git://github.com/topfunky/sparklines.git
sparklines / Rakefile
100644 33 lines (26 sloc) 1.021 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
require 'rubygems'
require 'hoe'
$:.unshift(File.dirname(__FILE__) + "/lib")
require 'sparklines'
 
Hoe.new('Sparklines', Sparklines::VERSION) do |p|
  p.name = "sparklines"
  p.author = "Geoffrey Grosenbach"
  p.description = "Tiny graphs."
  p.email = 'boss@topfunky.com'
  p.summary = "Tiny graphs."
  p.url = "http://nubyonrails.com/pages/sparklines"
  p.clean_globs = ['test/actual', 'email.txt'] # Remove this directory on "rake clean"
  p.remote_rdoc_dir = '' # Release to root
  p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
  # * extra_deps - An array of rubygem dependencies.
end
 
desc "Release and publish documentation"
task :repubdoc => [:release, :publish_docs]
 
 
desc "Simple require on packaged files to make sure they are all there"
task :verify => :package do
  # An error message will be displayed if files are missing
  if system %(ruby -e "require 'pkg/sparklines-#{Sparklines::VERSION}/lib/sparklines'")
    puts "\nThe library files are present"
  end
end
 
task :release => :verify