Skip to content

Commit

Permalink
Use new PackageTask from rubygems
Browse files Browse the repository at this point in the history
  • Loading branch information
flori committed Jun 14, 2011
1 parent 7438136 commit 1363331
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
begin
require 'rake/gempackagetask'
require 'rubygems/package_task'
rescue LoadError
end

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1363331

Please sign in to comment.