Sha256: 7abbc88c92c1b87d3819a3d94b7f2f5697a6b1b857c9ebd95e8d8b5fa5410695

Contents?: true

Size: 1.71 KB

Versions: 1

Compression:

Stored size: 1.71 KB

Contents

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

$VERBOSE = nil

spec = Gem::Specification.new do |s|
  s.name = 'yahoo-geocode'
  s.version = '1.1.0'
  s.summary = 'A Ruby Yahoo Geocoder Library'
  s.description = 'An interface to Yahoo\'s Geocoder service.

http://developer.yahoo.com/maps/rest/V1/geocode.html'

  s.author = 'Eric Hodel'
  s.email = 'eric@robotcoop.com'

  s.has_rdoc = true
  s.files = File.read('Manifest.txt').split($/)
  s.require_path = 'lib'

  s.add_dependency 'yahoo', '>= 1.1.0'
end

desc 'Run tests'
task :default => [ :test ]

Rake::TestTask.new('test') do |t|
  t.libs << 'test'
  t.libs << '../yahoo/lib'
  t.libs << '../rc-rest/lib'
  t.pattern = 'test/test_*.rb'
  t.verbose = true
end

desc 'Update Manifest.txt'
task :update_manifest do
  sh "find . -type f | sed -e 's%./%%' | egrep -v 'svn|swp|~' | egrep -v '^(doc|pkg)/' | sort > Manifest.txt"
end

desc 'Generate RDoc'
Rake::RDocTask.new :rdoc do |rd|
  rd.rdoc_dir = 'doc'
  rd.rdoc_files.add 'lib', 'README', 'LICENSE'
  rd.main = 'README'
  rd.options << '-d' if `which dot` =~ /\/dot/
  rd.options << '-t Yahoo Maps Web Services Geocoding API'
end

desc 'Generate RDoc for dev.robotcoop.com'
Rake::RDocTask.new :dev_rdoc do |rd|
  rd.rdoc_dir = '../../../www/trunk/dev/html/Libraries/yahoo-geocode'
  rd.rdoc_files.add 'lib', 'README', 'LICENSE'
  rd.main = 'README'
  rd.options << '-d' if `which dot` =~ /\/dot/
  rd.options << '-t Yahoo Maps Web Services Geocoding API'
end

desc 'Build Gem'
Rake::GemPackageTask.new spec do |pkg|
  pkg.need_tar = true
end

desc 'Clean up'
task :clean => [ :clobber_rdoc, :clobber_package ]

desc 'Clean up'
task :clobber => [ :clean ]

# vim: syntax=Ruby

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yahoo-geocode-1.1.0 Rakefile