Rakefile in interpolate-0.2.3 vs Rakefile in interpolate-0.2.4

- old
+ new

@@ -1,19 +1,35 @@ -require 'rubygems' -require 'hoe' -$:.unshift(File.dirname(__FILE__) + "/lib") -require 'interpolate' +require 'jeweler' +require 'rake' -Hoe.new('Interpolate', Interpolation::VERSION) do |p| - p.name = "interpolate" - p.author = "Adam Collins" - p.email = 'adam.w.collins@gmail.com' - p.url = "http://interpolate.rubyforge.org" - p.description = File.read('README.txt').delete("\r").split(/^== /)[2].chomp.chomp - p.summary = p.description - p.changes = File.read('History.txt').delete("\r").split(/^== /)[1].chomp - p.remote_rdoc_dir = '' # Release to root +require './lib/interpolate/interpolation' + +Jeweler::Tasks.new do |g| + doc_sections = File.read('README.md').delete("\r").split(/^## /) + + g.name = 'interpolate' + g.summary = 'Create linear interpolations from key points and values' + g.description = doc_sections[2].chomp.chomp # mmmm... tasty! + g.email = 'adam@m104.us' + g.homepage = "http://github.com/m104/interpolate" + g.authors = ["Adam Collins"] + g.version = Interpolation::VERSION end -desc "Release and publish documentation" -task :repubdoc => [:release, :publish_docs] +require 'rake/testtask' +Rake::TestTask.new(:test) do |test| + test.test_files = FileList.new('test/test_*.rb') do |list| + list.exclude 'test/test_helper.rb' + end + test.libs << 'test' + test.verbose = true +end + +require 'rake/rdoctask' +Rake::RDocTask.new do |rdoc| + rdoc.rdoc_dir = 'rdoc' + rdoc.title = 'interpolate' + rdoc.rdoc_files.include('README.markdown') + rdoc.rdoc_files.include('lib/**/*.rb') +end +