Please disable Adblockers and enable JavaScript for domain CEWebS.cs.univie.ac.at! We have NO ADS, but they may interfere with some of our course material.

Name: Rakefile 
1:
require 'rake'
2:
require 'rubygems/package_task'
3:
require 'rake/testtask'
4:
 
5:
Rake::TestTask.new do |t|
6:
  t.libs << "test"
7:
  t.test_files = FileList['./test/*/tc_*.rb']
8:
  t.verbose = false
9:
end
10:
 
11:
spec = eval(File.read('weel.gemspec'))
12:
Gem::PackageTask.new(spec) do |pkg|
13:
  pkg.need_zip = true
14:
  pkg.need_tar = true
15:
  `rm pkg/* -rf`
16:
  `ln -sf #{pkg.name}.gem pkg/weel.gem`
17:
end
18:
 
19:
task :push => :gem do |r|
20:
  `gem push pkg/weel.gem`
21:
end  
22:
 
23:
task :install => :gem do |r|
24:
  `sudo gem install pkg/weel.gem`
25:
end