forked from topfunky/sparklines
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
32 lines (26 loc) · 1021 Bytes
/
Rakefile
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
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 = '[email protected]'
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