-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathRakefile
38 lines (31 loc) · 811 Bytes
/
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
require 'bundler/gem_tasks'
require 'rake'
task default: :spec
desc 'Run all specs'
begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
rescue LoadError
end
desc 'Run all specs and generate html spec document'
namespace :spec do
RSpec::Core::RakeTask.new :html do |t|
t.rspec_opts = ['--format html --out spec.html']
end
end
require 'rdoc/task'
Rake::RDocTask.new do |t|
t.rdoc_dir = 'doc'
t.rdoc_files.include 'lib/**/*.rb'
t.rdoc_files.include 'README'
t.title = 'ruby-vnc documentation'
t.options += %w[--line-numbers --inline-source --tab-width 2]
t.main = 'README'
end
require 'rubygems/package_task'
spec = eval File.read('ruby-vnc.gemspec')
Gem::PackageTask.new(spec) do |pkg|
pkg.need_tar = false
pkg.need_zip = false
pkg.package_dir = 'build'
end