2 require 'rake/testtask'
4 desc "Install the secretsharing package (non-gem)"
6 dest = File.join(Config::CONFIG['sitelibdir'], 'secretsharing')
7 Dir.mkdir(dest) unless File.exists? dest
8 cp 'lib/secretsharing/shamir.rb', dest, :verbose => true
11 desc 'Install the secretsharing package as a gem'
13 ruby 'secretsharing.gemspec'
14 file = Dir["*.gem"].first
15 sh "gem install #{file}"
18 Rake::TestTask.new do |t|
21 t.test_files = FileList['test/test_*']