Permalink
Browse files

Add support for JRuby

  • Loading branch information...
1 parent 301af3a commit 2fe79ea67a19bbdb381333788110f78de6a7ba1b @titanous titanous committed Sep 4, 2012
Showing with 5 additions and 0 deletions.
  1. +3 −0 .travis.yml
  2. +1 −0 Gemfile
  3. +1 −0 lib/tentd/model.rb
View
@@ -3,3 +3,6 @@ before_script:
- psql -c 'create database tentd_test;' -U postgres
env:
- TEST_DATABASE_URL=postgres://postgres@localhost/tentd_test
+rvm:
+ - 1.9.3
+ - jruby-19mode
View
@@ -6,3 +6,4 @@ gemspec
gem 'rack-test', :git => 'https://github.com/brynary/rack-test.git'
gem 'tent-client', :git => 'git@github.com:tent/tent-client-ruby.git', :branch => 'master'
gem 'rb-fsevent', '~> 0.9.1'
+gem 'do_jdbc', :platform => :jruby
View
@@ -1,3 +1,4 @@
+require 'jdbc/postgres' if RUBY_ENGINE == 'jruby'
require 'data_mapper'
require 'dm-ar-finders'
require 'tentd/datamapper/array_property'

0 comments on commit 2fe79ea

Please sign in to comment.