forked from starling/starling
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
56 lines (46 loc) · 1.67 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
require 'rubygems'
require 'rake/rdoctask'
require 'spec/rake/spectask'
require File.join("lib", "starling", "server")
task :default => :spec
task :install do
sh %{gem build starling.gemspec}
sh %{sudo gem install starling-*.gem}
end
Spec::Rake::SpecTask.new do |t|
t.ruby_opts = ['-rtest/unit']
t.spec_files = FileList['spec/*_spec.rb']
t.fail_on_error = true
end
Rake::RDocTask.new do |rd|
rd.main = "README.rdoc"
rd.rdoc_files.include("README.rdoc", "lib/**/*.rb")
rd.rdoc_dir = 'doc'
end
desc "Generate a gemspec"
task :gemspec do
gemspec =<<-EOF
# this file is automatically generated
Gem::Specification.new do |s|
s.name = "starling"
s.version = "#{StarlingServer::VERSION}"
s.authors = ["Blaine Cook", "Chris Wanstrath", "Britt Selvitelle", "Glenn Rempe", "Abdul-Rahman Advany", "Seth Fitzsimmons"]
s.homepage = "http://github.com/starling/starling/"
s.summary = "Starling is a lightweight, transactional, distributed queue server"
s.description = s.summary
s.files = #{Dir.glob("**/*").select { |f| File.file?(f) }.inspect}
s.executables = ["starling", "starling_top"]
s.require_paths = ["lib"]
s.has_rdoc = true
s.rdoc_options = ["--quiet", "--title", "starling documentation", "--opname", "index.html", "--line-numbers", "--main", "README.rdoc", "--inline-source"]
s.extra_rdoc_files = ["README.rdoc", "CHANGELOG", "LICENSE"]
s.add_dependency 'fiveruns-memcache-client'
s.add_dependency 'eventmachine', [">= 0.12.0"]
end
EOF
open("starling.gemspec", "w") do |f|
f << gemspec
end
puts "gemspec successfully created."
end