Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 54 lines (46 sloc) 1.444 kb
ef51a62 @freels embedded test server, basic host management commands
freels authored
1 ROOT_DIR = File.expand_path(File.dirname(__FILE__))
01888f7 Initial commit to gizzmo.
Kyle Maxwell authored
2 require 'rubygems'
3 require 'rake'
4
5 begin
6 require 'jeweler'
7 Jeweler::Tasks.new do |gem|
8 gem.name = "gizzmo"
cbbac91 cleanup
Kyle Maxwell authored
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.}
01888f7 Initial commit to gizzmo.
Kyle Maxwell authored
11 gem.email = "kmaxwell@twitter.com"
cbbac91 cleanup
Kyle Maxwell authored
12 gem.homepage = "http://github.com/twitter/gizzmo"
01888f7 Initial commit to gizzmo.
Kyle Maxwell authored
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
6c15e72 @freels add failing specs for setup_shards
freels authored
20
01888f7 Initial commit to gizzmo.
Kyle Maxwell authored
21 begin
ef51a62 @freels embedded test server, basic host management commands
freels authored
22 require 'spec/rake/spectask'
23 Spec::Rake::SpecTask.new(:spec) do |t|
555a500 @freels Merge branch 'integrated_setup_shards' into revised_manager
freels authored
24 spec_opts = File.expand_path('test/spec.opts', ROOT_DIR)
ef51a62 @freels embedded test server, basic host management commands
freels authored
25 if File.exist? spec_opts
26 t.spec_opts = ['--options', "\"#{spec_opts}\""]
27 end
28 t.spec_files = FileList['test/**/*_spec.rb']
01888f7 Initial commit to gizzmo.
Kyle Maxwell authored
29 end
30 rescue LoadError
ef51a62 @freels embedded test server, basic host management commands
freels authored
31 $stderr.puts "RSpec required to run tests."
fb8b493 rake test works
Kyle Maxwell authored
32 end
01888f7 Initial commit to gizzmo.
Kyle Maxwell authored
33
fb8b493 rake test works
Kyle Maxwell authored
34 task :test do
6c15e72 @freels add failing specs for setup_shards
freels authored
35 puts
fc52cb8 encouragement to RTFM
Kyle Maxwell authored
36 puts "=" * 79
37 puts "You might want to read the README before running tests."
38 puts "=" * 79
39 sleep 2
fb8b493 rake test works
Kyle Maxwell authored
40 exec File.join(File.dirname(__FILE__), "test", "test.sh")
41 end
01888f7 Initial commit to gizzmo.
Kyle Maxwell authored
42
ef51a62 @freels embedded test server, basic host management commands
freels authored
43 task :default => :spec
01888f7 Initial commit to gizzmo.
Kyle Maxwell authored
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.