forked from mconf/bigbluebutton-api-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
31 lines (27 loc) · 795 Bytes
/
Copy pathRakefile
File metadata and controls
31 lines (27 loc) · 795 Bytes
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
require 'rubygems'
require 'rake'
require 'rake/clean'
require 'rake/rdoctask'
require 'rake/testtask'
require 'rake/gempackagetask'
desc 'Default: run tests.'
task :default => :test
Rake::RDocTask.new do |rdoc|
files = ['README.rdoc', 'LICENSE', 'CHANGELOG.rdoc', 'lib/**/*.rb']
rdoc.rdoc_files.add(files)
rdoc.main = "README" # page to start on
rdoc.title = "bigbluebutton-api-ruby Docs"
rdoc.rdoc_dir = 'doc' # rdoc output folder
rdoc.options << '--line-numbers'
end
eval("$specification = begin; #{ IO.read('bigbluebutton-api-ruby.gemspec')}; end")
Rake::GemPackageTask.new $specification do |pkg|
pkg.need_tar = true
pkg.need_zip = true
end
desc 'Test the gem.'
Rake::TestTask.new(:test) do |t|
t.pattern = 'test/**/*test.rb'
t.verbose = true
t.libs << 'test'
end