Skip to content
This repository
Newer
Older
100644 61 lines (53 sloc) 1.591 kb
01888f79 »
2010-06-24 Initial commit to gizzmo.
1 require 'rubygems'
2 require 'rake'
6c15e72d »
2010-08-31 add failing specs for setup_shards
3 require 'spec/rake/spectask'
01888f79 »
2010-06-24 Initial commit to gizzmo.
4
5 begin
6 require 'jeweler'
7 Jeweler::Tasks.new do |gem|
8 gem.name = "gizzmo"
cbbac915 »
2010-06-24 cleanup
9 gem.summary = %Q{Gizzmo is a command-line client for managing gizzard clusters.}
10 gem.description = %Q{Gizzmo is a command-line client for managing gizzard clusters.}
01888f79 »
2010-06-24 Initial commit to gizzmo.
11 gem.email = "kmaxwell@twitter.com"
cbbac915 »
2010-06-24 cleanup
12 gem.homepage = "http://github.com/twitter/gizzmo"
01888f79 »
2010-06-24 Initial commit to gizzmo.
13 gem.authors = ["Kyle Maxwell"]
14 end
15 Jeweler::GemcutterTasks.new
16 rescue LoadError
17 puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
18 end
19
6c15e72d »
2010-08-31 add failing specs for setup_shards
20 Spec::Rake::SpecTask.new(:spec) do |t|
21 spec_opts = File.expand_path('spec/spec.opts')
22 if File.exist? spec_opts
23 t.spec_opts = ['--options', "\"#{spec_opts}\""]
24 end
25 t.spec_files = FileList['spec/**/*_spec.rb']
26 end
27
01888f79 »
2010-06-24 Initial commit to gizzmo.
28 begin
29 require 'rcov/rcovtask'
30 Rcov::RcovTask.new do |test|
31 test.libs << 'test'
32 test.pattern = 'test/**/test_*.rb'
33 test.verbose = true
34 end
35 rescue LoadError
36 task :rcov do
37 abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
38 end
39 end
40
fb8b493a »
2010-06-30 rake test works
41 task :test do
6c15e72d »
2010-08-31 add failing specs for setup_shards
42 puts
fc52cb82 »
2010-06-30 encouragement to RTFM
43 puts "=" * 79
44 puts "You might want to read the README before running tests."
45 puts "=" * 79
46 sleep 2
fb8b493a »
2010-06-30 rake test works
47 exec File.join(File.dirname(__FILE__), "test", "test.sh")
48 end
01888f79 »
2010-06-24 Initial commit to gizzmo.
49
50 task :default => :test
51
52 require 'rake/rdoctask'
53 Rake::RDocTask.new do |rdoc|
54 version = File.exist?('VERSION') ? File.read('VERSION') : ""
55
56 rdoc.rdoc_dir = 'rdoc'
57 rdoc.title = "gizzmo #{version}"
58 rdoc.rdoc_files.include('README*')
59 rdoc.rdoc_files.include('lib/**/*.rb')
60 end
Something went wrong with that request. Please try again.