From feb67dd1761feb45d13e6bbee1961706556f9663 Mon Sep 17 00:00:00 2001 From: Greg Swallow Date: Fri, 31 May 2013 12:13:00 -0400 Subject: [PATCH] Rake 10.0.4 or whatever breaks this rakefile. --- Rakefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 54fdc210..ad5d03ec 100644 --- a/Rakefile +++ b/Rakefile @@ -1,8 +1,10 @@ -require 'rake/gempackagetask' +require 'rubygems/package_task' require 'fileutils' +GEMSPEC = eval(File.read('knife-vsphere.gemspec')) + spec = Gem::Specification.load(Dir['*.gemspec'].first) -gem = Rake::GemPackageTask.new(spec) +gem = Gem::PackageTask.new(GEMSPEC) gem.define desc "Push gem to rubygems.org"