Skip to content
Browse files

Fixed rake task to work with latest rake.

  • Loading branch information...
1 parent b96b736 commit 594aa6c6a01f218581d79e15a76d0eeef350c070 @razielgn razielgn committed Nov 13, 2012
Showing with 9 additions and 2 deletions.
  1. +9 −2 rakelib/package.rake
View
11 rakelib/package.rake
@@ -1,4 +1,11 @@
-require 'rake/gempackagetask'
+begin
+ require 'rubygems'
+ require 'rubygems/package_task'
+rescue LoadError
+ require 'rake/packagetask'
+ require 'rake/gempackagetask'
+end
+
begin
require 'rake/extensiontask'
require 'rake/javaextensiontask'
@@ -12,7 +19,7 @@ rake-compiler gem seems to be missing. Please install it with
MSG
end
-Rake::GemPackageTask.new(GEMSPEC) do |pkg|
+Rake::PackageTask.new(GEMSPEC, EventMachine::VERSION) do |pkg|
end
if RUBY_PLATFORM =~ /java/

0 comments on commit 594aa6c

Please sign in to comment.
Something went wrong with that request. Please try again.