tasks/gem.rake in makura-2011.01.21 vs tasks/gem.rake in makura-2012.01
- old
+ new
@@ -1,7 +1,5 @@
-require 'rake/gempackagetask'
-
task :gemspec => [:manifest, :changelog] do
gemspec_file = "#{GEMSPEC.name}.gemspec"
File.open(gemspec_file, 'w+'){|gs| gs.puts(GEMSPEC.to_ruby) }
end
@@ -14,9 +12,8 @@
desc "uninstall the gem"
task :uninstall => [:clean] do
sh %{gem uninstall -x #{GEMSPEC.name}}
end
-Rake::GemPackageTask.new(GEMSPEC) do |p|
- p.need_tar = true
- p.need_zip = true
+Gem::PackageTask.new(GEMSPEC) do |pkg|
+ pkg.need_tar = true
end