-
Notifications
You must be signed in to change notification settings - Fork 7
/
Rakefile
40 lines (36 loc) · 1.17 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
require 'rdoc/task'
desc 'Default: build gem'
task :default => :build
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "spdy"
gemspec.version = '0.1'
gemspec.summary = "SPDY daemon"
gemspec.description = gemspec.summary
gemspec.email = "romanbsd@yahoo.com"
gemspec.homepage = "http://github.com/romanbsd/spdy"
gemspec.authors = ["Roman Shterenzon"]
gemspec.add_dependency("eventmachine", "~> 0.12.10")
gemspec.add_dependency("daemons", "~> 1.1.3")
gemspec.add_dependency("em-http-request", "~> 0.3.0")
gemspec.executables = 'spdyd'
gemspec.files = `git ls-files`.split("\n")
gemspec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
gemspec.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
end
rescue LoadError
puts "Jeweler not available. Install it with: gem install jeweler"
end
Rake::RDocTask.new do |rd|
rd.rdoc_files.include("lib/**/*.rb", "ext/module.cc")
rd.rdoc_dir = 'doc'
end
begin
require 'yard'
YARD::Rake::YardocTask.new do |yard|
yard.options = ['--title', 'SPDY']
yard.files = Dir["ext/*.cc", "lib/**/*.rb"]
end
rescue LoadError
end