From 542387d2374ca3e23b070972828e43901a4056b6 Mon Sep 17 00:00:00 2001 From: Daniel DeLeo Date: Thu, 1 Dec 2011 11:57:54 -0800 Subject: cleanup Rakefile and add gem pkg task --- Rakefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 1fb8520..93c73e3 100644 --- a/Rakefile +++ b/Rakefile @@ -1,10 +1,12 @@ require 'rspec/core/rake_task' +require 'rubygems/package_task' -ROOT = File.expand_path(File.dirname(__FILE__)) +gemspec = eval(IO.read('mixlib-shellout.gemspec')) +Gem::PackageTask.new(gemspec).define desc "Run all specs in spec directory" RSpec::Core::RakeTask.new(:spec) do |t| t.pattern = FileList['spec/**/*_spec.rb'] end -task :default => :spec \ No newline at end of file +task :default => :spec -- cgit v1.2.1