forked from cosmo0920/windows-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
31 lines (26 loc) · 657 Bytes
/
Rakefile
File metadata and controls
31 lines (26 loc) · 657 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 'rake'
require 'rake/clean'
require 'rake/testtask'
CLEAN.include("**/*.gem", "**/*.rbc")
namespace :gem do
desc 'Create the windows-api gem'
task :create => [:clean] do
spec = eval(IO.read('windows-api.gemspec'))
if Gem::VERSION < "2.0"
Gem::Builder.new(spec).build
else
require 'rubygems/package'
Gem::Package.build(spec)
end
end
desc 'Install the windows-api gem'
task :install => [:create] do
file = Dir["*.gem"].first
sh "gem install -l #{file}"
end
end
Rake::TestTask.new do |test|
test.warning = true
test.verbose = true
end
task :default => :test