I got this working by removing the jdbc-postgres Gem, then specifically including the PostgreSQL JDBC JAR. I extracted the relative parts and left out the general error handling and functions.
require postgresql-9.3-1101.jdbc4.jar
Java::JavaClass.for_name "org.postgresql.Driver"
Java::JavaClass.for_name "java.util.Properties"
props = java.util.Properties.new
props.set_property :user, opts[:username]
props.set_property :password, opts[:password]
connection = org.postgresql.Driver.new.connect(get_jdbcurl(opts), props)