diff options
author | Bryan McLellan <btm@opscode.com> | 2012-06-07 13:18:56 -0700 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2012-06-07 13:18:56 -0700 |
commit | 1c52a3feedb3ae59ccbb1a0f1326aa8c5c27dfbf (patch) | |
tree | 6d6a7f707daa8ac80c19e5726307066de7983233 /Rakefile | |
parent | dc2a014305c197af8d15c1fe8a9cccf19b88d0db (diff) | |
download | mixlib-log-1c52a3feedb3ae59ccbb1a0f1326aa8c5c27dfbf.tar.gz |
Update Rakefile for deprecated methods
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1,11 +1,13 @@ require 'rake' -require 'rake/gempackagetask' -require 'rake/rdoctask' +require 'rubygems/package_task' +require 'rdoc/task' require 'yaml' gemspec = eval(IO.read('mixlib-log.gemspec')) -Rake::GemPackageTask.new(gemspec).define +Gem::PackageTask.new(gemspec) do |pkg| + pkg.gem_spec = gemspec +end begin require 'rubygems' @@ -22,8 +24,7 @@ end task :default => :spec - -Rake::RDocTask.new do |rdoc| +RDoc::Task.new do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = "mixlib-log #{Mixlib::Log::VERSION}" rdoc.rdoc_files.include('README*') |