Rakefile in patron-0.8.0 vs Rakefile in patron-0.9.1

- old
+ new

@@ -22,21 +22,21 @@ ## ## ------------------------------------------------------------------- require 'rake/clean' require 'rake/extensiontask' require 'rspec/core/rake_task' -require 'bundler' +require "bundler/gem_tasks" require 'yard' +RSpec::Core::RakeTask.new(:spec) + Rake::ExtensionTask.new do |ext| ext.name = 'session_ext' # indicate the name of the extension. ext.ext_dir = 'ext/patron' # search for 'hello_world' inside it. ext.lib_dir = 'lib/patron' # put binaries into this folder. end -Bundler::GemHelper.install_tasks - CLEAN.include FileList["ext/patron/*"].exclude(/^.*\.(rb|c|h)$/) CLOBBER.include %w( doc coverage pkg ) desc "Start an IRB shell" task :shell => :compile do @@ -48,14 +48,7 @@ t.files = ['lib/**/*.rb', 'ext/**/*.c' ] t.options = ['--markup markdown'] t.stats_options = ['--list-undoc'] end -desc "Run specs" -RSpec::Core::RakeTask.new do |t| - t.rspec_opts = %w( --colour --format progress ) - t.pattern = 'spec/**/*_spec.rb' -end - -task :spec => [:compile] - -task :default => :spec +task :default => [:clobber, :compile, :spec] +task :build => [:clobber] # Make sure no binaries end up in the gem