Sha256: 01ae791c66abdd366867dfb537f4ebf9853bb38e896880e83d880748598cd48f

Contents?: true

Size: 1.16 KB

Versions: 1

Compression:

Stored size: 1.16 KB

Contents

require 'rake/rdoctask'
require 'rake/gempackagetask'
require 'rubygems'

GEOCODER_VERSION = "0.1.1"

PKG_FILES = FileList["lib/**/*", "bin/**/*", "[A-Z]*",
  "test/**/*"].exclude(/\b\.svn\b/)

desc "Run all tests"
task :default => [ :test ]

desc "Run all tests"
task :test do
  ruby "test/ts_geocoder.rb"
end

desc "Generate documentation"
task :docs do
  sh "rdoc -S -N -o doc -t \"Geocoder Documentation\" README TODO lib"
end

spec = Gem::Specification.new do |s|
  s.platform = Gem::Platform::RUBY
  s.summary = "Geocoding library and CLI."
  s.name = "geocoder"
  s.version = GEOCODER_VERSION
  s.requirements << "none"
  s.require_path = "lib"
  s.author = "Paul Smith"
  s.files = PKG_FILES
  s.autorequire = "geocoder"
  s.email = "paul@cnt.org"
  s.rubyforge_project = "geocoder"
  s.homepage = "http://geocoder.rubyforge.org"
  s.bindir = "bin"
  s.executables = ["geocode"]
end

Rake::GemPackageTask.new(spec) do |pkg|
  pkg.need_zip = true
  pkg.need_tar = true
end

desc "Install local gem"
task :install => [ :repackage ] do
  sh "sudo gem install -l pkg/geocoder-#{GEOCODER_VERSION}.gem"
end

desc "Uninstall gem"
task :uninstall do
  sh "sudo gem uninstall geocoder"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
geocoder-0.1.1 Rakefile