Skip to content

Travis-CI support and a slight change to the rake task #381

Merged
merged 4 commits into from Nov 19, 2012
View
12 .travis.yml
@@ -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
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/
Something went wrong with that request. Please try again.