Sha256: 5cafd6ddc4ff4168b234180568082c95acf96a03282e9db1b426eab2b56d430d

Contents?: true

Size: 833 Bytes

Versions: 1

Compression:

Stored size: 833 Bytes

Contents

require 'rake'
require 'rake/testtask'
include Config

desc "Install the crypt-fog package (non-gem) and the fogenc program"
task :install do
   dest = File.join(CONFIG['sitelibdir'], 'crypt')
   Dir.mkdir(dest) unless File.exists? dest
   cp 'lib/crypt/fog.rb', dest, :verbose => true
   cp 'bin/fogenc', CONFIG['bindir'], :verbose => true
end

desc "Install the crypt-fog library (non-gem) only"
task :install_lib do
   dest = File.join(CONFIG['sitelibdir'], 'crypt')
   Dir.mkdir(dest) unless File.exists? dest
   cp 'lib/crypt/fog.rb', dest, :verbose => true
end

desc "Install the crypt-fog package as a gem"
task :install_gem do
   ruby 'crypt-fog.gemspec'
   file = Dir["*.gem"].first
   sh "gem install #{file}"
end

Rake::TestTask.new do |t|
   t.libs << 'lib'
   t.warning = true
   t.test_files = FileList['test/tc*']
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
crypt-fog-1.0.1 Rakefile