Rakefile in fluent-plugin-sflow-0.1.0 vs Rakefile in fluent-plugin-sflow-0.2.0

- old
+ new

@@ -1,12 +1,15 @@ -require "bundler" require "bundler/gem_tasks" +require "rake/extensiontask" require "rake/testtask" -Rake::TestTask.new(:test) do |t| - t.libs << "test" - t.libs << "lib" - t.test_files = FileList['test/**/test_*.rb'] - #t.verbose = true +task :build => :compile + +Rake::ExtensionTask.new("sflowtool") do |ext| + ext.lib_dir = "lib/sflowtool" end -task :default => :test +Rake::TestTask.new do |t| + t.verbose = true +end + +task :default => [:compile, :test]