Sha256: cb7e66f2758dbeefb0d428a26f307a5e6ccecca957880f5bdb2e8f5441287f4c

Contents?: true

Size: 610 Bytes

Versions: 1

Compression:

Stored size: 610 Bytes

Contents

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

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

desc 'Build the gis-distance gem'
task :gem do
   spec = eval(IO.read('gis-distance.gemspec'))
   Gem::Builder.new(spec).build
end

desc 'Install the gis-distance library as a gem'
task :install_gem => [:gem] do
   file = Dir["*.gem"].first
   sh "gem install #{file}"
end

Rake::TestTask.new do |t|
   t.warning = true
   t.verbose = true
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gis-distance-1.0.0 Rakefile