From 3b26977b9e18b59c147b6e51abd4a43dbb65dcce Mon Sep 17 00:00:00 2001 From: Ivan Hinojal Date: Sat, 6 Jun 2015 00:14:23 +0200 Subject: [PATCH] Added jRuby support To be used this gem in jRuby we will be using activerecord-jdbcpostgresql-adapter or maybe another adapter like activerecord-postgis-adapter. They all both support hstore because they run over postgres anyway. --- .travis.yml | 2 ++ multilang-hstore.gemspec | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e4366c5..2b1fd50 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,3 +2,5 @@ language: ruby rvm: - 1.9.3 - ruby-head + - jruby-1.7 + - jruby-9.0.4.0 diff --git a/multilang-hstore.gemspec b/multilang-hstore.gemspec index 25b0679..bb8cda3 100644 --- a/multilang-hstore.gemspec +++ b/multilang-hstore.gemspec @@ -19,7 +19,9 @@ Gem::Specification.new do |s| "spec/schema.rb", "spec/spec_helper.rb" ] - s.add_dependency 'pg', '~> 0.0' s.add_dependency 'activerecord', '~> 4.0' + s.add_dependency 'activerecord-jdbcpostgresql-adapter', :platform => :jruby + s.add_dependency 'pg', '~> 0.0', :platform => :ruby + end end