lib/jdbc/h2.rb in jdbc-h2-1.3.154 vs lib/jdbc/h2.rb in jdbc-h2-1.3.170
- old
+ new
@@ -1,11 +1,21 @@
module Jdbc
module H2
- VERSION = "1.3.153"
- VERSION = "1.3.154"
+ VERSION = "1.3.170"
+
+ def self.driver_jar
+ "h2-#{VERSION}.jar"
+ end
+
+ def self.load_driver(method = :load)
+ send method, driver_jar
+ end
+
+ def self.driver_name
+ 'org.h2.Driver'
+ end
end
end
-if RUBY_PLATFORM =~ /java/
- require "h2-#{Jdbc::H2::VERSION}.jar"
-else
- warn "jdbc-h2 is only for use with JRuby"
+
+if $VERBOSE && (JRUBY_VERSION.nil? rescue true)
+ warn "Jdbc-H2 is only for use with JRuby"
end