Permalink
Browse files

Use new PackageTask from rubygems

  • Loading branch information...
flori committed Jun 14, 2011
1 parent 7438136 commit 1363331e4b4a8d36b5cfad636e3671005017d7f0
Showing with 4 additions and 4 deletions.
  1. +4 −4 Rakefile
View
@@ -1,5 +1,5 @@
begin
- require 'rake/gempackagetask'
+ require 'rubygems/package_task'
rescue LoadError
end
@@ -76,7 +76,7 @@ else
task :install => :install_ext
end
-if defined?(Gem) and defined?(Rake::GemPackageTask)
+if defined?(Gem) and defined?(Gem::PackageTask)
spec_pure = Gem::Specification.new do |s|
s.name = 'json_pure'
s.version = PKG_VERSION
@@ -111,7 +111,7 @@ if defined?(Gem) and defined?(Rake::GemPackageTask)
end
end
- Rake::GemPackageTask.new(spec_pure) do |pkg|
+ Gem::PackageTask.new(spec_pure) do |pkg|
pkg.need_tar = true
pkg.package_files = PKG_FILES
end
@@ -154,7 +154,7 @@ if defined?(Gem) and defined?(Rake::GemPackageTask)
end
end
- Rake::GemPackageTask.new(spec_ext) do |pkg|
+ Gem::PackageTask.new(spec_ext) do |pkg|
pkg.need_tar = true
pkg.package_files = PKG_FILES
end

0 comments on commit 1363331

Please sign in to comment.