Rakefile in mkmf-lite-0.2.0 vs Rakefile in mkmf-lite-0.2.1

- old
+ new

@@ -1,16 +1,12 @@ require 'rake' +require 'rake/clean' require 'rake/testtask' -require 'rbconfig' +CLEAN.include("**/*.gem", "**/*.rbc") namespace 'gem' do - desc 'Remove any existing .gem files' - task :clean do - Dir['**/*.gem'].each{ |f| File.delete(f) } - end - desc 'Create the mkmf-lite gem.' task :create => [:clean] do spec = eval(IO.read('mkmf-lite.gemspec')) Gem::Builder.new(spec).build end @@ -24,5 +20,7 @@ Rake::TestTask.new do |t| t.verbose = true t.warning = true end + +task :default => :test