Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 54 lines (46 sloc) 1.378 kB
01888f7 Initial commit to gizzmo.
Kyle Maxwell authored
1 require 'rubygems'
2 require 'rake'
3
4 begin
5 require 'jeweler'
6 Jeweler::Tasks.new do |gem|
7 gem.name = "gizzmo"
cbbac91 cleanup
Kyle Maxwell authored
8 gem.summary = %Q{Gizzmo is a command-line client for managing gizzard clusters.}
9 gem.description = %Q{Gizzmo is a command-line client for managing gizzard clusters.}
01888f7 Initial commit to gizzmo.
Kyle Maxwell authored
10 gem.email = "kmaxwell@twitter.com"
cbbac91 cleanup
Kyle Maxwell authored
11 gem.homepage = "http://github.com/twitter/gizzmo"
01888f7 Initial commit to gizzmo.
Kyle Maxwell authored
12 gem.authors = ["Kyle Maxwell"]
13 end
14 Jeweler::GemcutterTasks.new
15 rescue LoadError
16 puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
17 end
18
19 require 'rake/testtask'
20 Rake::TestTask.new(:test) do |test|
21 test.libs << 'lib' << 'test'
22 test.pattern = 'test/**/test_*.rb'
23 test.verbose = true
24 end
25
26 begin
27 require 'rcov/rcovtask'
28 Rcov::RcovTask.new do |test|
29 test.libs << 'test'
30 test.pattern = 'test/**/test_*.rb'
31 test.verbose = true
32 end
33 rescue LoadError
34 task :rcov do
35 abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
36 end
37 end
38
fb8b493 rake test works
Kyle Maxwell authored
39 task :test do
40 exec File.join(File.dirname(__FILE__), "test", "test.sh")
41 end
01888f7 Initial commit to gizzmo.
Kyle Maxwell authored
42
43 task :default => :test
44
45 require 'rake/rdoctask'
46 Rake::RDocTask.new do |rdoc|
47 version = File.exist?('VERSION') ? File.read('VERSION') : ""
48
49 rdoc.rdoc_dir = 'rdoc'
50 rdoc.title = "gizzmo #{version}"
51 rdoc.rdoc_files.include('README*')
52 rdoc.rdoc_files.include('lib/**/*.rb')
53 end
Something went wrong with that request. Please try again.