diff --git a/.travis.yml b/.travis.yml index 4339ac6..cb1a119 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,8 @@ language: ruby rvm: - 1.8.7 + - rbx-1.3 + - rbx-2 + - 1.8.7 + - 2.0.0 + - 2.1.2 script: rake compile:libxslt_ruby && rake test diff --git a/ext/libxslt/extconf.rb b/ext/libxslt/extconf.rb index 6cd38e5..af89db6 100755 --- a/ext/libxslt/extconf.rb +++ b/ext/libxslt/extconf.rb @@ -130,8 +130,12 @@ def crash(str) "#{gem_spec.full_gem_path}/lib/#{minor_version}", "#{gem_spec.full_gem_path}/ext/libxml"] +is_osx = RbConfig::CONFIG['host_os'].match(/darwin/) +is_rbx = defined?(RUBY_ENGINE) && (RUBY_ENGINE == "rbx") + # No need to link xml_ruby on OS X -unless RbConfig::CONFIG['host_os'].match(/darwin/) +# Also do not link on rubinius +unless (is_osx or is_rbx) # Hack to make sure ruby library is *after* xml_ruby library $LIBS = "#{$LIBRUBYARG_STATIC} #{$LIBS}" diff --git a/libxslt-ruby.gemspec b/libxslt-ruby.gemspec index e821967..87de130 100644 --- a/libxslt-ruby.gemspec +++ b/libxslt-ruby.gemspec @@ -1,4 +1,5 @@ # encoding: utf-8 +require 'date' # Determine the current version of the software version = File.read('ext/libxslt/version.h').match(/\s*RUBY_LIBXSLT_VERSION\s*['"](\d.+)['"]/)[1]