Rakefile in jsonschema-2.0.1 vs Rakefile in jsonschema-2.0.2
- old
+ new
@@ -1,13 +1,12 @@
# vim: fileencoding=utf-8
require 'rubygems'
require 'rake'
require 'rake/clean'
require 'rake/testtask'
-require 'rake/packagetask'
-require 'rake/gempackagetask'
-require 'rake/rdoctask'
+require 'rubygems/package_task'
+require 'rake/task'
require 'rake/contrib/rubyforgepublisher'
require 'rake/contrib/sshpublisher'
require 'fileutils'
require './lib/jsonschema'
include FileUtils
@@ -56,19 +55,12 @@
# s.add_dependency(dep, ver)
# end
s.files = %w(README.rdoc Rakefile) + Dir["{bin,test,lib}/**/*"]
end
-Rake::GemPackageTask.new(spec) do |p|
+Gem::PackageTask.new(spec) do |p|
p.need_tar = true
p.gem_spec = spec
-end
-
-Rake::RDocTask.new do |rdoc|
- rdoc.rdoc_dir = 'doc'
- rdoc.options += $rdoc_opts
-# rdoc.template = 'resh'
- rdoc.rdoc_files.include("README.rdoc", "lib/**/*.rb", "ext/**/*.c")
end
desc "gem spec"
task :gemspec do
File.open("#{$github_name}.gemspec", "wb") do |f|