Rakefile in gis-distance-1.0.2 vs Rakefile in gis-distance-1.1.0

- old
+ new

@@ -1,30 +1,27 @@ require 'rake' require 'rake/clean' -require 'rake/testtask' require 'rbconfig' -include RbConfig +require 'rspec/core/rake_task' CLEAN.include('**/*.gem', '**/*.log') namespace 'gem' do desc 'Create the gis-distance gem' task :create => [:clean] do require 'rubygems/package' spec = eval(IO.read('gis-distance.gemspec')) spec.signing_key = File.join(Dir.home, '.ssh', 'gem-private_key.pem') - Gem::Package.build(spec, true) + Gem::Package.build(spec) end desc 'Install the gis-distance gem' task :install => [:create] do file = Dir["*.gem"].first sh "gem install -l #{file}" end end -Rake::TestTask.new do |t| - t.warning = true - t.verbose = true -end +desc "Run the test suite" +RSpec::Core::RakeTask.new(:spec) -task :default => :test +task :default => :spec