Rakefile in interpolate-0.2.4 vs Rakefile in interpolate-0.3.0

- old
+ new

@@ -1,35 +1,21 @@ -require 'jeweler' -require 'rake' +$LOAD_PATH.unshift File.expand_path('../lib', __FILE__) +require 'interpolate' -require './lib/interpolate/interpolation' +desc 'Build the gem' +task :build do + system 'gem build interpolate.gemspec' +end -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 +desc 'Release the gem' +task :release => :build do + system "gem push interpolate-#{Interpolation::VERSION}" end 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') +Rake::TestTask.new do |t| + t.libs << 'test' end +task :default => :test