Rakefile in syck-1.0.5 vs Rakefile in syck-1.1.0

- old
+ new

@@ -1,31 +1,14 @@ -# -*- ruby -*- +require 'bundler/gem_tasks' +require 'rake/extensiontask' +require 'rake/testtask' -require 'rubygems' -require 'hoe' +CLEAN = Rake::FileList["lib/syck.bundle", "tmp"] -Hoe.plugins.delete :rubyforge -Hoe.plugin :gemspec # `gem install hoe-gemspec` -Hoe.plugin :git # `gem install hoe-git` - -gem 'rake-compiler', '>= 0.4.1' -require "rake/extensiontask" - -Hoe.spec 'syck' do - developer('Aaron Patterson', 'aaron@tenderlovemaking.com') - self.readme_file = 'README.rdoc' - self.history_file = 'CHANGELOG.rdoc' - self.extra_rdoc_files = FileList['*.rdoc'] - - extra_dev_deps << ['rake-compiler', '>= 0.4.1'] - - self.spec_extras = { - :extensions => ["ext/syck/extconf.rb"], - :required_ruby_version => '>= 2.0.0' - } - - Rake::ExtensionTask.new "syck", spec do |ext| - ext.lib_dir = File.join(*['lib', ENV['FAT_DIR']].compact) - end +Rake::TestTask.new(:test) do |t| + t.libs << "test" + t.libs << "lib" + t.test_files = FileList['test/**/test_*.rb'] end +Rake::ExtensionTask.new('syck') -# vim: syntax=ruby +task :default => [:compile, :test]