Permalink
Browse files

Merge pull request #381 from razielgn/master

Travis-CI support and a slight change to the rake task
  • Loading branch information...
2 parents b96b736 + 5993b6d commit 1aeb8a93e072ac06b4fc326680dbae1595bdd30c @tmm1 tmm1 committed Nov 19, 2012
Showing with 21 additions and 2 deletions.
  1. +12 −0 .travis.yml
  2. +9 −2 rakelib/package.rake
View
@@ -0,0 +1,12 @@
+script: rake compile test
+language: ruby
+rvm:
+ - 1.8.7
+ - 1.9.3
+ - rbx-18mode
+ - rbx-19mode
+ - jruby
+matrix:
+ allow_failures:
+ - rvm: rbx-18mode
+ - rvm: rbx-19mode
View
@@ -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 1aeb8a9

Please sign in to comment.