Sha256: ff3570681c0f4b3a310dc5ee44063e18ae73dc8cb9cea388999955371b368596

Contents?: true

Size: 653 Bytes

Versions: 1

Compression:

Stored size: 653 Bytes

Contents

require 'rake'
require 'rake/clean'
require 'rake/testtask'
require 'rbconfig'
include RbConfig

CLEAN.include('**/*.gem', '**/*.log')

namespace 'gem' do
  desc 'Create the gis-distance gem'
  task :create => [:clean] do
    require 'rubygems/package'
    spec = eval(IO.read('gis-distance.gemspec'))
    spec.signing_key = File.join(Dir.home, '.ssh', 'gem-private_key.pem')
    Gem::Package.build(spec, true)
  end

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

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

task :default => :test

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gis-distance-1.0.2 Rakefile