-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathRakefile
More file actions
34 lines (25 loc) · 730 Bytes
/
Copy pathRakefile
File metadata and controls
34 lines (25 loc) · 730 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
32
33
34
task :default => :test
require 'rake/clean'
CLEAN.include '*.plist', '*.gch'
desc 'Startup an IRb console with screen_recorder loaded'
task :console => [:compile] do
sh 'irb -Ilib -rscreen_recorder'
end
# @todo trololol
require 'rake/testtask'
Rake::TestTask.new do |t|
t.libs << '.'
t.pattern = 'test/*_test.rb'
end
task :test => :compile
# Gem stuff
require 'rubygems/package_task'
SPEC = Gem::Specification.load('screen_recorder.gemspec')
Gem::PackageTask.new(SPEC) { }
desc 'Build and install gem (not including deps)'
task :install => :gem do
require 'rubygems/installer'
Gem::Installer.new("pkg/#{SPEC.file_name}").install
end
require 'rake/extensiontask'
Rake::ExtensionTask.new('screen_recorder', SPEC)